]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Use max associated STAs information in AP mode
authorChandrasekaran, Manishekar <cmshekar@qti.qualcomm.com>
Mon, 5 May 2014 09:21:37 +0000 (14:51 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 9 May 2014 14:12:19 +0000 (17:12 +0300)
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 <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c

index 9cbe6f35b4d2f6d53835dbbbca5530a192ef6f02..5895efabb65205c442e583767ed92deb309bdc1a 100644 (file)
@@ -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;
 }