aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/qca-vendor.h
diff options
context:
space:
mode:
authorPeng Xu <pxu@qca.qualcomm.com>2015-11-05 00:47:04 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-19 09:34:31 (GMT)
commit9a8d9f7c6211fcf37ecd76d27eb5948350d6537b (patch)
tree685806f109ab32ff3b4d653ba7a8d30cd1d97b57 /src/common/qca-vendor.h
parent4f524e99d22873f042789a0ecee9539b97e72f4c (diff)
downloadhostap-9a8d9f7c6211fcf37ecd76d27eb5948350d6537b.zip
hostap-9a8d9f7c6211fcf37ecd76d27eb5948350d6537b.tar.gz
hostap-9a8d9f7c6211fcf37ecd76d27eb5948350d6537b.tar.bz2
Assign QCA vendor command and attribute for Tx power reduction in dB
Assign nl80211 vendor command QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB and corresponding attributes. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/common/qca-vendor.h')
-rw-r--r--src/common/qca-vendor.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h
index 32cda88..a3ee91d 100644
--- a/src/common/qca-vendor.h
+++ b/src/common/qca-vendor.h
@@ -161,6 +161,7 @@ enum qca_nl80211_vendor_subcmds {
QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
/* 110..114 - reserved for QCA */
+ QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
};
@@ -445,4 +446,20 @@ enum qca_vendor_attr_txpower_scale {
QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
};
+/**
+ * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
+ *
+ * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
+ */
+enum qca_vendor_attr_txpower_decr_db {
+ QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
+ /* 8-bit unsigned value to indicate the reduction of TX power in dB for
+ * a virtual interface. */
+ QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
+ /* keep last */
+ QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
+ QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
+ QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
+};
+
#endif /* QCA_VENDOR_H */