aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_mpm.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2017-02-15 10:07:01 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-19 14:01:17 (GMT)
commit84ea61cffefaa85b63b5a8db6f9c02818a7594e3 (patch)
treea11c09d14e5da7a42b37a47707a103a14e545875 /wpa_supplicant/mesh_mpm.c
parent025c6a47fb7936599661efc4e0e61da61ed08ab3 (diff)
downloadhostap-84ea61cffefaa85b63b5a8db6f9c02818a7594e3.zip
hostap-84ea61cffefaa85b63b5a8db6f9c02818a7594e3.tar.gz
hostap-84ea61cffefaa85b63b5a8db6f9c02818a7594e3.tar.bz2
mesh: Use correct rate in HT and legacy mixed environment
Let mesh STA A be a STA which has config disable_ht=1. Let mesh STA B be a STA which has config disable_ht=0. The mesh STA A and B was connected. Previously, the mesh STA A sent frame with HT rate even though its HT was disabled. This commit fixes the issue by checking the local BSS HT configuration. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/mesh_mpm.c')
-rw-r--r--wpa_supplicant/mesh_mpm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c
index 1a0fd5f..f152044 100644
--- a/wpa_supplicant/mesh_mpm.c
+++ b/wpa_supplicant/mesh_mpm.c
@@ -684,7 +684,8 @@ static struct sta_info * mesh_mpm_add_peer(struct wpa_supplicant *wpa_s,
oper = (struct ieee80211_ht_operation *) elems->ht_operation;
if (oper &&
- !(oper->ht_param & HT_INFO_HT_PARAM_STA_CHNL_WIDTH)) {
+ !(oper->ht_param & HT_INFO_HT_PARAM_STA_CHNL_WIDTH) &&
+ sta->ht_capabilities) {
wpa_msg(wpa_s, MSG_DEBUG, MACSTR
" does not support 40 MHz bandwidth",
MAC2STR(sta->addr));