aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2016-08-05 08:35:28 (GMT)
committerJouni Malinen <j@w1.fi>2016-08-18 17:33:39 (GMT)
commita1431ef8df30eb7ede9a0a95693f17c45ca5fd39 (patch)
treed1ab9eb06751f086a44eaa042d801a9fe5ee3fc1 /src
parent548d280162c08be11a8bcd6179507acbc5d93878 (diff)
downloadhostap-a1431ef8df30eb7ede9a0a95693f17c45ca5fd39.zip
hostap-a1431ef8df30eb7ede9a0a95693f17c45ca5fd39.tar.gz
hostap-a1431ef8df30eb7ede9a0a95693f17c45ca5fd39.tar.bz2
mesh: Move max_peer_links parameter to appropriate struct
Accoding to the comment of struct wpa_driver_mesh_bss_params, the max_peer_links parameter should be under that struct. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver.h2
-rw-r--r--src/drivers/driver_nl80211.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index cf49847..4dd731f 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -1125,6 +1125,7 @@ struct wpa_driver_mesh_bss_params {
*/
unsigned int flags;
int peer_link_timeout;
+ int max_peer_links;
};
struct wpa_driver_mesh_join_params {
@@ -1136,7 +1137,6 @@ struct wpa_driver_mesh_join_params {
struct hostapd_freq_params freq;
int beacon_int;
int dtim_period;
- int max_peer_links;
struct wpa_driver_mesh_bss_params conf;
#define WPA_DRIVER_MESH_FLAG_USER_MPM 0x00000001
#define WPA_DRIVER_MESH_FLAG_DRIVER_MPM 0x00000002
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 61e641e..f27b149 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -8465,7 +8465,7 @@ static int nl80211_join_mesh(struct i802_bss *bss,
nla_put_u32(msg, NL80211_MESHCONF_AUTO_OPEN_PLINKS, 0))
goto fail;
if (nla_put_u16(msg, NL80211_MESHCONF_MAX_PEER_LINKS,
- params->max_peer_links))
+ params->conf.max_peer_links))
goto fail;
/*