aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_mpm.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2014-11-15 01:35:26 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-16 17:43:11 (GMT)
commit9204e738312b55b7c01e884a853f33aa73f0ece6 (patch)
tree434dbad3e34d8e869b914da98f59e93d1db8f4d9 /wpa_supplicant/mesh_mpm.c
parentedfefaed3c89c48a9694173ee1bf902bb94c3769 (diff)
downloadhostap-9204e738312b55b7c01e884a853f33aa73f0ece6.zip
hostap-9204e738312b55b7c01e884a853f33aa73f0ece6.tar.gz
hostap-9204e738312b55b7c01e884a853f33aa73f0ece6.tar.bz2
mesh: Fix 11N capability in Self-protected Action frame
mesh_ht_mode default value is CHAN_UNDEFINED. So previous code set 11N capability even though 11N is not used. Signed-off-by: Natsuki Itaya <Natsuki.Itaya@jp.sony.com> Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/mesh_mpm.c')
-rw-r--r--wpa_supplicant/mesh_mpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c
index 322c96c..4600672 100644
--- a/wpa_supplicant/mesh_mpm.c
+++ b/wpa_supplicant/mesh_mpm.c
@@ -315,7 +315,7 @@ static void mesh_mpm_send_plink_action(struct wpa_supplicant *wpa_s,
#ifdef CONFIG_IEEE80211N
if (type != PLINK_CLOSE &&
- wpa_s->current_ssid->mesh_ht_mode != CHAN_NO_HT) {
+ wpa_s->current_ssid->mesh_ht_mode > CHAN_NO_HT) {
pos = hostapd_eid_ht_capabilities(bss, ht_capa_oper);
pos = hostapd_eid_ht_operation(bss, pos);
wpabuf_put_data(buf, ht_capa_oper, pos - ht_capa_oper);