aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Abinader <eabinader@ocedo.com>2016-01-21 10:26:35 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-05 15:52:47 (GMT)
commit236053e532d10c29947269d23830bb794951cb23 (patch)
treecf07ce13c7cd2d6bf2b485497d6764003340d7a1
parentc599ddd1246f56dd5bb05cf4eb62237b74cca9a7 (diff)
downloadhostap-236053e532d10c29947269d23830bb794951cb23.zip
hostap-236053e532d10c29947269d23830bb794951cb23.tar.gz
hostap-236053e532d10c29947269d23830bb794951cb23.tar.bz2
Make fallback from HT40 to HT20 work
Ensure that if it is not possible to configure an allowed 20 MHz channel pair, hostapd falls back to a single 20 MHz channel. Signed-off-by: Eduardo Abinader <eabinader@ocedo.com>
-rw-r--r--src/ap/hw_features.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index 3607066..16887ac 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -329,6 +329,7 @@ static void ieee80211n_check_scan(struct hostapd_iface *iface)
res = ieee80211n_allowed_ht40_channel_pair(iface);
if (!res) {
iface->conf->secondary_channel = 0;
+ res = 1;
wpa_printf(MSG_INFO, "Fallback to 20 MHz");
}