aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2016-06-12 02:52:08 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-12 18:49:05 (GMT)
commit7a69fad7aded13fff654282134e9d98de7dafdfd (patch)
tree93421472563a3c17f4b4db8ca192695d7c08f91e
parenta3bd53273e5b9b098b88eeb3285a7825e756612b (diff)
downloadhostap-7a69fad7aded13fff654282134e9d98de7dafdfd.zip
hostap-7a69fad7aded13fff654282134e9d98de7dafdfd.tar.gz
hostap-7a69fad7aded13fff654282134e9d98de7dafdfd.tar.bz2
mesh: Sync max peer links with kernel
Set max peer links to kernel even when wpa_supplicant MPM is used. This sets the correct value for the "Accepting Additional Mesh Peerings bit" in "Mesh Capability field" in "Mesh Configuration element" in the Beacon frame. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
-rw-r--r--src/drivers/driver_nl80211.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 8e716eb..e7a818a 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -8427,8 +8427,7 @@ static int nl80211_join_mesh(struct i802_bss *bss,
if (!(params->conf.flags & WPA_DRIVER_MESH_CONF_FLAG_AUTO_PLINKS) &&
nla_put_u32(msg, NL80211_MESHCONF_AUTO_OPEN_PLINKS, 0))
goto fail;
- if ((params->conf.flags & WPA_DRIVER_MESH_FLAG_DRIVER_MPM) &&
- nla_put_u16(msg, NL80211_MESHCONF_MAX_PEER_LINKS,
+ if (nla_put_u16(msg, NL80211_MESHCONF_MAX_PEER_LINKS,
params->max_peer_links))
goto fail;