From ea40a575ae73d204d37262a1105294bfb08833e2 Mon Sep 17 00:00:00 2001 From: "Chandrasekaran, Manishekar" Date: Mon, 5 May 2014 14:51:37 +0530 Subject: [PATCH] nl80211: Use max associated STAs information in AP mode Propagate max associated STAs in AP mode advertised by the driver to core wpa_supplicant implemantion. This allows wpa_supplicant to update the P2P GO group limit information automatically without having to configure this limit manually. The information (if available) is also used in the generic AP implementation to control maximum number of STA entries. Signed-off-by: Jouni Malinen --- src/drivers/driver_nl80211.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 9cbe6f35b..5895efabb 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -3852,6 +3852,10 @@ static int wiphy_info_handler(struct nl_msg *msg, void *arg) wiphy_info_wowlan_triggers(capa, tb[NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED]); + if (tb[NL80211_ATTR_MAX_AP_ASSOC_STA]) + capa->max_stations = + nla_get_u32(tb[NL80211_ATTR_MAX_AP_ASSOC_STA]); + return NL_SKIP; }