hostapd/src
Hu Wang bcaa1ea084 HE: Disable HE in hostapd_set_freq_params() if driver does not support
Existing logic to disable HE in hostapd_set_freq_params() is to check
he_cap != NULL, but this is not correct as he_cap is defined as a stack
member of hostapd_hw_modes which can't be NULL. Add one more check
!he_cap->he_supported to make sure HE can be disabled if the driver not
support it.

This fixes a case where a driver does not support HE, but hostapd.conf
enables HE/HT40 on the 2.4 GHz band and hostapd failed to start with
error '40 MHz channel width is not supported in 2.4 GHz'.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2021-10-07 23:43:16 +03:00
..
ap HE: Use a random BSS Color if not defined in the config file 2021-09-28 11:04:08 +03:00
common HE: Disable HE in hostapd_set_freq_params() if driver does not support 2021-10-07 23:43:16 +03:00
crypto openssl: Support private_key blob in PEM encoded PKCS#8 format 2021-08-19 17:40:58 +03:00
drivers DSCP: Parsing and processing of DSCP Policy Request frames 2021-09-29 00:20:42 +03:00
eap_common EAP-SIM/AKA: Fix check for anonymous decorated identity 2021-03-20 16:28:44 +02:00
eap_peer EAP peer: Make EAP-Success handling more robust against race conditions 2021-03-15 00:45:20 +02:00
eap_server P2P: Use SAE+PMF for P2P connection in 6 GHz 2021-06-14 20:24:37 +03:00
eapol_auth build: Make more library things common 2020-10-12 20:20:35 +03:00
eapol_supp build: Make more library things common 2020-10-12 20:20:35 +03:00
fst FST: Convert Boolean to C99 bool 2020-04-24 17:06:50 +03:00
l2_packet build: Make more library things common 2020-10-12 20:20:35 +03:00
p2p P2P: Make p2p_check_pref_chan_no_recv() easier for static analyzers 2021-09-30 18:27:37 +03:00
pae MACsec: Convert Boolean to C99 bool 2020-04-24 17:06:50 +03:00
radius RADIUS client: Fix void-pointer-to-enum-cast warning 2021-08-19 11:19:37 +03:00
rsn_supp TDLS: Support TDLS operations in HE mode for 6 GHz 2021-07-29 20:07:25 +03:00
tls TLS: Fix highest TLS version disabling with internal TLS client 2021-03-14 13:08:04 +02:00
utils utils: FreeBSD supports fdatasync(2) 2021-08-25 16:20:17 +03:00
wps P2P: Use SAE+PMF for P2P connection in 6 GHz 2021-06-14 20:24:37 +03:00
build.rules build: Rebuild libs all the time 2020-10-12 20:18:02 +03:00
lib.rules build: lib.rules: Add common-clean 2020-10-16 12:51:12 +03:00
Makefile build: Add a common-clean target 2020-10-10 12:48:41 +03:00
objs.mk build: Fix dependency file inclusion 2020-10-12 11:05:16 +03:00