From: Chandrasekaran, Manishekar Date: Mon, 5 May 2014 09:21:37 +0000 (+0530) Subject: nl80211: Use max associated STAs information in AP mode X-Git-Tag: hostap_2_2~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea40a575ae73d204d37262a1105294bfb08833e2;p=thirdparty%2Fhostap.git 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 --- 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; }