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
23152315 * @NL80211_ATTR_AIRTIME_WEIGHT: Station's weight when scheduled by the airtime
23162316 * scheduler.
23172317 *
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+ *
23182327 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
23192328 * @NL80211_ATTR_MAX: highest attribute number currently defined
23202329 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2765,6 +2774,8 @@ enum nl80211_attrs { · 444 unmodified lines
27652774 NL80211_ATTR_PEER_MEASUREMENTS,
27662775
27672776 NL80211_ATTR_AIRTIME_WEIGHT,
2777+ NL80211_ATTR_STA_TX_POWER_SETTING,
2778+ NL80211_ATTR_STA_TX_POWER,
27682779
27692780 /* add attributes here, update the policy in nl80211.c */
27702781
@@ -5391,6 +5402,9 @@ enum nl80211_feature_flags { · 2620 unmodified lines
53915402 * @NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD: Driver supports
53925403 * filtering of sched scan results using band specific RSSI thresholds.
53935404 *
5405+ * @NL80211_EXT_FEATURE_STA_TX_PWR: This driver supports controlling tx power
5406+ * to a station.
5407+ *
53945408 * @NUM_NL80211_EXT_FEATURES: number of extended features.
53955409 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
53965410 */
@@ -5434,6 +5448,7 @@ enum nl80211_ext_feature_index { · 37 unmodified lines
54345448 NL80211_EXT_FEATURE_AP_PMKSA_CACHING,
54355449 NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD,
54365450 NL80211_EXT_FEATURE_EXT_KEY_ID,
5451+ NL80211_EXT_FEATURE_STA_TX_PWR,
54375452
54385453 /* add new features before the definition below */
54395454 NUM_NL80211_EXT_FEATURES,