aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2012-04-11 13:24:03 (GMT)
committerJouni Malinen <j@w1.fi>2012-04-11 13:24:03 (GMT)
commit5cbf5fd9bdddf57071c5b85d8e30f3cd622dc777 (patch)
treeb99e3d166d969130c773cc45e3aeac90246a3b83 /wpa_supplicant/ap.c
parenta625ff6059c9de153891a9754642086e21d509bd (diff)
downloadhostap-5cbf5fd9bdddf57071c5b85d8e30f3cd622dc777.zip
hostap-5cbf5fd9bdddf57071c5b85d8e30f3cd622dc777.tar.gz
hostap-5cbf5fd9bdddf57071c5b85d8e30f3cd622dc777.tar.bz2
Allow disable_ht to override 11n configuration in AP mode
This is being done only for station mode, extend it to AP mode as well. Signed-hostap: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index d0fb1b0..386e2a4 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -81,14 +81,23 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
*/
if (wpa_s->hw.modes) {
struct hostapd_hw_modes *mode = NULL;
- int i;
+ int i, no_ht = 0;
for (i = 0; i < wpa_s->hw.num_modes; i++) {
if (wpa_s->hw.modes[i].mode == conf->hw_mode) {
mode = &wpa_s->hw.modes[i];
break;
}
}
- if (mode && mode->ht_capab) {
+
+#ifdef CONFIG_HT_OVERRIDES
+ if (ssid->disable_ht) {
+ conf->ieee80211n = 0;
+ conf->ht_capab = 0;
+ no_ht = 1;
+ }
+#endif /* CONFIG_HT_OVERRIDES */
+
+ if (!no_ht && mode && mode->ht_capab) {
conf->ieee80211n = 1;
/*