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.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -2315,6 +2315,15 @@ enum nl80211_commands { · 2314 unmodified lines | ||
| 2315 | 2315 | * @NL80211_ATTR_AIRTIME_WEIGHT: Station's weight when scheduled by the airtime |
| 2316 | 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 | 2327 | * @NUM_NL80211_ATTR: total number of nl80211_attrs available |
| 2319 | 2328 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 2320 | 2329 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| @@ -2765,6 +2774,8 @@ enum nl80211_attrs { · 444 unmodified lines | ||
| 2765 | 2774 | NL80211_ATTR_PEER_MEASUREMENTS, |
| 2766 | 2775 | |
| 2767 | 2776 | NL80211_ATTR_AIRTIME_WEIGHT, |
| 2777 | + NL80211_ATTR_STA_TX_POWER_SETTING, | |
| 2778 | + NL80211_ATTR_STA_TX_POWER, | |
| 2768 | 2779 | |
| 2769 | 2780 | /* add attributes here, update the policy in nl80211.c */ |
| 2770 | 2781 | |
| @@ -5391,6 +5402,9 @@ enum nl80211_feature_flags { · 2620 unmodified lines | ||
| 5391 | 5402 | * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports |
| 5392 | 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 | 5408 | * @NUM_NL80211_EXT_FEATURES: number of extended features. |
| 5395 | 5409 | * @MAX_NL80211_EXT_FEATURES: highest extended feature index. |
| 5396 | 5410 | */ |
| @@ -5434,6 +5448,7 @@ enum nl80211_ext_feature_index { · 37 unmodified lines | ||
| 5434 | 5448 | NL80211_EXT_FEATURE_AP_PMKSA_CACHING, |
| 5435 | 5449 | NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD, |
| 5436 | 5450 | NL80211_EXT_FEATURE_EXT_KEY_ID, |
| 5451 | + NL80211_EXT_FEATURE_STA_TX_PWR, | |
| 5437 | 5452 | |
| 5438 | 5453 | /* add new features before the definition below */ |
| 5439 | 5454 | NUM_NL80211_EXT_FEATURES, |