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>
This commit is contained in:
Masashi Honma 2014-11-15 10:35:26 +09:00 committed by Jouni Malinen
parent edfefaed3c
commit 9204e73831

View file

@ -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);