Fix QCA vendor command values for SAR power limits
Commit c79238b6a4
('Define a QCA vendor
command to configure SAR Power limits') had a mismatch between the enum
qca_vendor_attr_sar_limits_selections documentations and actual values.
The BDF SAR profiles are 0-based, so rename the enum values and reorder
the values keep the actual values more convenient. While this changes
values over the interface, this is justifiable since the new command was
introduced only recently and it had not been released in any driver.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
d283f7aeac
commit
c313c8a5d8
1 changed files with 5 additions and 5 deletions
|
@ -2223,9 +2223,6 @@ enum qca_wlan_vendor_tdls_trigger_mode {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
|
* enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
|
||||||
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
|
|
||||||
* source of SAR power limits, thereby disabling the SAR power
|
|
||||||
* limit feature.
|
|
||||||
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
|
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
|
||||||
* that is hard-coded in the Board Data File (BDF).
|
* that is hard-coded in the Board Data File (BDF).
|
||||||
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
|
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
|
||||||
|
@ -2236,6 +2233,9 @@ enum qca_wlan_vendor_tdls_trigger_mode {
|
||||||
* that is hard-coded in the Board Data File (BDF).
|
* that is hard-coded in the Board Data File (BDF).
|
||||||
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
|
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
|
||||||
* that is hard-coded in the Board Data File (BDF).
|
* that is hard-coded in the Board Data File (BDF).
|
||||||
|
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
|
||||||
|
* source of SAR power limits, thereby disabling the SAR power
|
||||||
|
* limit feature.
|
||||||
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
|
* @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
|
||||||
* limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
|
* limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
|
||||||
*
|
*
|
||||||
|
@ -2244,12 +2244,12 @@ enum qca_wlan_vendor_tdls_trigger_mode {
|
||||||
* the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command.
|
* the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command.
|
||||||
*/
|
*/
|
||||||
enum qca_vendor_attr_sar_limits_selections {
|
enum qca_vendor_attr_sar_limits_selections {
|
||||||
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 0,
|
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
|
||||||
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
|
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
|
||||||
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
|
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
|
||||||
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
|
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
|
||||||
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
|
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
|
||||||
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF5 = 5,
|
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
|
||||||
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
|
QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue