History

cfg80211: Advertise maximum associated STAs in AP mode

This allows drivers to advertise the maximum number of associated stations they support in AP mode (including P2P GO). User space applications can use this for cleaner way of handling the limit (e.g., hostapd rejecting IEEE 802.11 authentication without manual configuration of the limit) or to figure out what type of use cases can be executed with multiple devices before trying and failing.

Jouni Malinen committed 12 years ago

Commit b43504c1 parent 1df4a513 files · +22 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+9−0
@@ -1568,6 +1568,13 @@ enum nl80211_commands { · 1567 unmodified lines
15681568 * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS
15691569 * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS
15701570 *
1571+ * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many
1572+ * associated stations are supported in AP mode (including P2P GO); u32.
1573+ * Since drivers may not have a fixed limit on the maximum number (e.g.,
1574+ * other concurrent operations may affect this), drivers are allowed to
1575+ * advertise values that cannot always be met. In such cases, an attempt
1576+ * to add a new station entry with @NL80211_CMD_NEW_STATION may fail.
1577+ *
15711578 * @NL80211_ATTR_MAX: highest attribute number currently defined
15721579 * @__NL80211_ATTR_AFTER_LAST: internal use
15731580 */
@@ -1899,6 +1906,8 @@ enum nl80211_attrs { · 325 unmodified lines
18991906 NL80211_ATTR_MAC_HINT,
19001907 NL80211_ATTR_WIPHY_FREQ_HINT,
19011908
1909+ NL80211_ATTR_MAX_AP_ASSOC_STA,
1910+
19021911 /* add attributes here, update the policy in nl80211.c */
19031912
19041913 __NL80211_ATTR_AFTER_LAST,