History

cfg80211: Add support to notify station's opmode change to userspace

ht/vht action frames will be sent to AP from station to notify change of its ht/vht opmode(max bandwidth, smps mode or nss) modified values. Currently these valuse used by driver/firmware for rate control algorithm. This patch introduces NL80211_CMD_STA_OPMODE_CHANGED command to notify those modified/current supported values(max bandwidth, smps mode, max nss) to userspace application. This will be useful for the application like steering, which closely monitoring station's capability changes. Since the application has taken these values during station association.

tamizhr@codeaurora.org committed 8 years ago

Commit 466b9931 parent 25b0ba73 files · +110 −0Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+12−0
@@ -1013,6 +1013,11 @@ · 1012 unmodified lines
10131013 * user space through the connect result as the user space would have
10141014 * initiated the connection through the connect request.
10151015 *
1016+ * @NL80211_CMD_STA_OPMODE_CHANGED: An event that notify station's
1017+ * ht opmode or vht opmode changes using any of &NL80211_ATTR_SMPS_MODE,
1018+ * &NL80211_ATTR_CHANNEL_WIDTH,&NL80211_ATTR_NSS attributes with its
1019+ * address(specified in &NL80211_ATTR_MAC).
1020+ *
10161021 * @NL80211_CMD_MAX: highest used command number
10171022 * @__NL80211_CMD_AFTER_LAST: internal use
10181023 */
@@ -1221,6 +1226,8 @@ enum nl80211_commands { · 202 unmodified lines
12211226
12221227 NL80211_CMD_EXTERNAL_AUTH,
12231228
1229+ NL80211_CMD_STA_OPMODE_CHANGED,
1230+
12241231 /* add new commands above here */
12251232
12261233 /* used to define NL80211_CMD_MAX below */
@@ -2186,6 +2193,9 @@ enum nl80211_commands { · 959 unmodified lines
21862193 * authentication processing to user space if this capability is indicated
21872194 * in NL80211_CMD_CONNECT requests from the user space.
21882195 *
2196+ * @NL80211_ATTR_NSS: Station's New/updated RX_NSS value notified using this
2197+ * u8 attribute. This is used with %NL80211_CMD_STA_OPMODE_CHANGED.
2198+ *
21892199 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
21902200 * @NL80211_ATTR_MAX: highest attribute number currently defined
21912201 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2615,6 +2625,8 @@ enum nl80211_attrs { · 423 unmodified lines
26152625 NL80211_ATTR_EXTERNAL_AUTH_ACTION,
26162626 NL80211_ATTR_EXTERNAL_AUTH_SUPPORT,
26172627
2628+ NL80211_ATTR_NSS,
2629+
26182630 /* add attributes here, update the policy in nl80211.c */
26192631
26202632 __NL80211_ATTR_AFTER_LAST,