History

cfg80211: Add support to set tx power for a station associated

This patch adds support to set transmit power setting type and transmit power level attributes to NL80211_CMD_SET_STATION in order to facilitate adjusting the transmit power level of a station associated to the AP. The added attributes allow selection of automatic and limited transmit power level, with the level defined in dBm format.

Ashok Raj Nagarajan committed 7 years ago

Commit e96d1cd1 parent dbd50a83 files · +80 −0Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+15−0
@@ -2315,6 +2315,15 @@ enum nl80211_commands { · 2314 unmodified lines
2315 * @NL80211_ATTR_AIRTIME_WEIGHT: Station's weight when scheduled by the airtime2315 * @NL80211_ATTR_AIRTIME_WEIGHT: Station's weight when scheduled by the airtime
2316 * scheduler.2316 * scheduler.
2317 *2317 *
2318 * @NL80211_ATTR_STA_TX_POWER_SETTING: Transmit power setting type (u8) for
2319 * station associated with the AP. See &enum nl80211_tx_power_setting for
2320 * possible values.
2321 * @NL80211_ATTR_STA_TX_POWER: Transmit power level (s16) in dBm units. This
2322 * allows to set Tx power for a station. If this attribute is not included,
2323 * the default per-interface tx power setting will be overriding. Driver
2324 * should be picking up the lowest tx power, either tx power per-interface
2325 * or per-station.
2326 *
2318 * @NUM_NL80211_ATTR: total number of nl80211_attrs available2327 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
2319 * @NL80211_ATTR_MAX: highest attribute number currently defined2328 * @NL80211_ATTR_MAX: highest attribute number currently defined
2320 * @__NL80211_ATTR_AFTER_LAST: internal use2329 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2765,6 +2774,8 @@ enum nl80211_attrs { · 444 unmodified lines
2765 NL80211_ATTR_PEER_MEASUREMENTS,2774 NL80211_ATTR_PEER_MEASUREMENTS,
2766 2775
2767 NL80211_ATTR_AIRTIME_WEIGHT,2776 NL80211_ATTR_AIRTIME_WEIGHT,
2777 NL80211_ATTR_STA_TX_POWER_SETTING,
2778 NL80211_ATTR_STA_TX_POWER,
2768 2779
2769 /* add attributes here, update the policy in nl80211.c */2780 /* add attributes here, update the policy in nl80211.c */
2770 2781
@@ -5391,6 +5402,9 @@ enum nl80211_feature_flags { · 2620 unmodified lines
5391 * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports5402 * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports
5392 * filtering of sched scan results using band specific RSSI thresholds.5403 * filtering of sched scan results using band specific RSSI thresholds.
5393 *5404 *
5405 * @NL80211_EXT_FEATURE_STA_TX_PWR: This driver supports controlling tx power
5406 * to a station.
5407 *
5394 * @NUM_NL80211_EXT_FEATURES: number of extended features.5408 * @NUM_NL80211_EXT_FEATURES: number of extended features.
5395 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.5409 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
5396 */5410 */
@@ -5434,6 +5448,7 @@ enum nl80211_ext_feature_index { · 37 unmodified lines
5434 NL80211_EXT_FEATURE_AP_PMKSA_CACHING,5448 NL80211_EXT_FEATURE_AP_PMKSA_CACHING,
5435 NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD,5449 NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD,
5436 NL80211_EXT_FEATURE_EXT_KEY_ID,5450 NL80211_EXT_FEATURE_EXT_KEY_ID,
5451 NL80211_EXT_FEATURE_STA_TX_PWR,
5437 5452
5438 /* add new features before the definition below */5453 /* add new features before the definition below */
5439 NUM_NL80211_EXT_FEATURES,5454 NUM_NL80211_EXT_FEATURES,