diff options
| author | Arik Nemtsov <arik@wizery.com> | 2011-08-01 19:55:29 +0300 |
|---|---|---|
| committer | Keith Deacon <kdeacon@ti.com> | 2011-11-15 20:45:51 -0600 |
| commit | b0b157fe82770a6ed43c9883d6a5a04fee1bfa25 (patch) | |
| tree | f7a915cb3e139e5180d21c019ce22f2f5f1c5150 | |
| parent | a85b77f9e2abe263f05c3c882f21f0d5c252b03b (diff) | |
| download | android_external_wpa_supplicant_8-b0b157fe82770a6ed43c9883d6a5a04fee1bfa25.tar.gz android_external_wpa_supplicant_8-b0b157fe82770a6ed43c9883d6a5a04fee1bfa25.tar.bz2 android_external_wpa_supplicant_8-b0b157fe82770a6ed43c9883d6a5a04fee1bfa25.zip | |
hostap: set ht_capab from wiphy when in P2P GO mode
Set the HT capabilities of a P2P GO according to the supported ones in
wiphy. In addition enable WMM when 802.11n is enabled.
Change-Id: I21b2a8a923b4f6760d64b81b88de9ba9420dfc01
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Vishal Mahaveer <a0271468@ti.com>
| -rw-r--r-- | wpa_supplicant/ap.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 6d9037af..2bc3c992 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -87,9 +87,10 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s, #ifdef CONFIG_IEEE80211N /* - * Enable HT20 if the driver supports it, by setting conf->ieee80211n. + * Enable HT20 if the driver supports it, by setting conf->ieee80211n + * and conf->ht_capab. * Using default config settings for: conf->ht_op_mode_fixed, - * conf->ht_capab, conf->secondary_channel, conf->require_ht + * conf->secondary_channel, conf->require_ht */ modes = wpa_drv_get_hw_feature_data(wpa_s, &num_modes, &flags); if (modes) { @@ -101,8 +102,11 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s, break; } } - if (mode && mode->ht_capab) + if (mode && mode->ht_capab) { + bss->wmm_enabled = 1; conf->ieee80211n = 1; + conf->ht_capab = mode->ht_capab; + } ieee80211_sta_free_hw_features(modes, num_modes); modes = NULL; } |
