From c313c8a5d80433b4d4a31ce811104d74f7838a9c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 11 Dec 2016 21:08:25 +0200 Subject: [PATCH] Fix QCA vendor command values for SAR power limits Commit c79238b6a460ab6bc6ebc5e2453fd94716393105 ('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 --- src/common/qca-vendor.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index e089923fe..b7329a9f4 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -2223,9 +2223,6 @@ enum qca_wlan_vendor_tdls_trigger_mode { /** * 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 * that is hard-coded in the Board Data File (BDF). * @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). * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 * 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 * 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. */ 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_BDF2 = 2, 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_BDF5 = 5, + QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, };