aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-02-01 14:09:26 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-01 14:09:26 (GMT)
commit7615078caf48287df056abf77dcb5e3537bef978 (patch)
tree6c4713b9f857187f854c2772b9a03be5bf8238c3 /src
parent1b4d3793662a974147290dbca5ec09d5b3c032e1 (diff)
downloadhostap-7615078caf48287df056abf77dcb5e3537bef978.zip
hostap-7615078caf48287df056abf77dcb5e3537bef978.tar.gz
hostap-7615078caf48287df056abf77dcb5e3537bef978.tar.bz2
AP: Make sure ieee80211n_allowed_ht40_channel_pair() gets called
We need to call this function after having completed the neighboring channel scan to figure out whether HT40 can be used and if so, which channel is the secondary channel.
Diffstat (limited to 'src')
-rw-r--r--src/ap/hw_features.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index 0895162..9b4c2a9 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -424,6 +424,7 @@ static void ieee80211n_check_scan(struct hostapd_iface *iface)
{
struct wpa_scan_results *scan_res;
int oper40;
+ int res;
/* Check list of neighboring BSSes (from scan) to see whether 40 MHz is
* allowed per IEEE 802.11n/D7.0, 11.14.3.2 */
@@ -452,7 +453,8 @@ static void ieee80211n_check_scan(struct hostapd_iface *iface)
iface->conf->ht_capab &= ~HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET;
}
- hostapd_setup_interface_complete(iface, 0);
+ res = ieee80211n_allowed_ht40_channel_pair(iface);
+ hostapd_setup_interface_complete(iface, !res);
}