Message ID | 1415079413-3048-5-git-send-email-masashi.honma@gmail.com |
---|---|
State | Superseded |
Headers | show |
On Tue, Nov 04, 2014 at 02:36:46PM +0900, Masashi Honma wrote: > mesh_ht_mode default value is CHAN_UNDEFINED. > So previous code set 11N capability even though 11N is not used. > @@ -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); Aha, this is the patch that actually reduces the non-11n frame size :)
diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c index 4a11d88..07ab963 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);