mesh: Make maximum number of peer links configurable
Maximum number of peer links is maximum number of connecting mesh peers at the same time. This value is 0..255 based on the dot11MeshNumberOfPeerings range. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
8b2600329f
commit
4b4093686b
7 changed files with 24 additions and 1 deletions
|
@ -953,6 +953,7 @@ struct wpa_driver_mesh_join_params {
|
|||
int ie_len;
|
||||
int freq;
|
||||
int beacon_int;
|
||||
int max_peer_links;
|
||||
enum ht_mode ht_mode;
|
||||
struct wpa_driver_mesh_bss_params conf;
|
||||
#define WPA_DRIVER_MESH_FLAG_USER_MPM 0x00000001
|
||||
|
|
|
@ -7801,6 +7801,10 @@ wpa_driver_nl80211_join_mesh(void *priv,
|
|||
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,
|
||||
params->max_peer_links))
|
||||
goto fail;
|
||||
nla_nest_end(msg, container);
|
||||
|
||||
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue