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
1013 * user space through the connect result as the user space would have1013 * user space through the connect result as the user space would have
1014 * initiated the connection through the connect request.1014 * initiated the connection through the connect request.
1015 *1015 *
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 *
1016 * @NL80211_CMD_MAX: highest used command number1021 * @NL80211_CMD_MAX: highest used command number
1017 * @__NL80211_CMD_AFTER_LAST: internal use1022 * @__NL80211_CMD_AFTER_LAST: internal use
1018 */1023 */
@@ -1221,6 +1226,8 @@ enum nl80211_commands { · 202 unmodified lines
1221 1226
1222 NL80211_CMD_EXTERNAL_AUTH,1227 NL80211_CMD_EXTERNAL_AUTH,
1223 1228
1229 NL80211_CMD_STA_OPMODE_CHANGED,
1230
1224 /* add new commands above here */1231 /* add new commands above here */
1225 1232
1226 /* used to define NL80211_CMD_MAX below */1233 /* used to define NL80211_CMD_MAX below */
@@ -2186,6 +2193,9 @@ enum nl80211_commands { · 959 unmodified lines
2186 * authentication processing to user space if this capability is indicated2193 * authentication processing to user space if this capability is indicated
2187 * in NL80211_CMD_CONNECT requests from the user space.2194 * in NL80211_CMD_CONNECT requests from the user space.
2188 *2195 *
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 *
2189 * @NUM_NL80211_ATTR: total number of nl80211_attrs available2199 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
2190 * @NL80211_ATTR_MAX: highest attribute number currently defined2200 * @NL80211_ATTR_MAX: highest attribute number currently defined
2191 * @__NL80211_ATTR_AFTER_LAST: internal use2201 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2615,6 +2625,8 @@ enum nl80211_attrs { · 423 unmodified lines
2615 NL80211_ATTR_EXTERNAL_AUTH_ACTION,2625 NL80211_ATTR_EXTERNAL_AUTH_ACTION,
2616 NL80211_ATTR_EXTERNAL_AUTH_SUPPORT,2626 NL80211_ATTR_EXTERNAL_AUTH_SUPPORT,
2617 2627
2628 NL80211_ATTR_NSS,
2629
2618 /* add attributes here, update the policy in nl80211.c */2630 /* add attributes here, update the policy in nl80211.c */
2619 2631
2620 __NL80211_ATTR_AFTER_LAST,2632 __NL80211_ATTR_AFTER_LAST,