diff mbox series

[v2] hostapd: Always allow HE AP with a 20MHz channel width

Message ID 20210430064826.25054-1-cedric.izoard@ceva-dsp.com
State Accepted
Headers show
Series [v2] hostapd: Always allow HE AP with a 20MHz channel width | expand

Commit Message

Cedric Izoard April 30, 2021, 6:48 a.m. UTC
Skip test of HE PHY capability bit "Support for a 40 MHz and 80 MHz
channel width" when starting an AP with a 20MHz channel on the 5G band.

Signed-off-by: Cedric Izoard <cedric.izoard@ceva-dsp.com>
---
v2: add signed-off-by
---
 src/common/hw_features_common.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

2.17.0

Comments

Jouni Malinen Aug. 26, 2021, 1:38 p.m. UTC | #1
On Fri, Apr 30, 2021 at 08:48:26AM +0200, Cedric Izoard wrote:
> Skip test of HE PHY capability bit "Support for a 40 MHz and 80 MHz
> channel width" when starting an AP with a 20MHz channel on the 5G band.

Thanks, applied.
diff mbox series

Patch

diff --git a/src/common/hw_features_common.c b/src/common/hw_features_common.c
index ad2aebfef..304139e46 100644
--- a/src/common/hw_features_common.c
+++ b/src/common/hw_features_common.c
@@ -491,8 +491,10 @@  int hostapd_set_freq_params(struct hostapd_freq_params *data,

 	if (data->he_enabled) switch (oper_chwidth) {
 	case CHANWIDTH_USE_HT:
-		if (mode == HOSTAPD_MODE_IEEE80211G && sec_channel_offset) {
+		if (sec_channel_offset == 0)
+			break;
+
+		if (mode == HOSTAPD_MODE_IEEE80211G) {
 			if (!(he_cap->phy_cap[HE_PHYCAP_CHANNEL_WIDTH_SET_IDX] &
 			      HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_IN_2G)) {
 				wpa_printf(MSG_ERROR,
--