From: Eduardo Abinader Date: Thu, 21 Jan 2016 10:26:35 +0000 (+0100) Subject: Make fallback from HT40 to HT20 work X-Git-Tag: hostap_2_6~957 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=236053e532d10c29947269d23830bb794951cb23;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c index 360706684..16887acdf 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"); }