From 30c93402ec7b747242ecb693bc0b3ee20b0aac43 Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Tue, 13 Aug 2019 11:45:04 +0530 Subject: [PATCH] qcacmn: Rename qca_wlan_vendor_attr_roam_subcmd to represent subcmds qca_wlan_vendor_attr_roam_subcmd is an enum associated with the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. It represents different sub command values and these are not the attributes. Hence, rename the enum to qca_wlan_vendor_roaming_subcmd. Accordingly, the members of this enum are also renamed to suite the usage. Change-Id: Idbc80bf084ff293402fa2de368bc91b4fc659f01 CRs-Fixed: 2508204 --- os_if/linux/qca_vendor.h | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/os_if/linux/qca_vendor.h b/os_if/linux/qca_vendor.h index 68ae52896a79..ffcebac95583 100644 --- a/os_if/linux/qca_vendor.h +++ b/os_if/linux/qca_vendor.h @@ -2616,7 +2616,7 @@ enum qca_wlan_vendor_attr_pno_config_params { * * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. * Represents the different roam sub commands referred by - * enum qca_wlan_vendor_attr_roam_subcmd. + * enum qca_wlan_vendor_roaming_subcmd. * * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. * Represents the Request ID for the specific set of commands. @@ -2639,7 +2639,7 @@ enum qca_wlan_vendor_attr_pno_config_params { * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when * comparing with a 2.4GHz BSSID. They are not applied when comparing two * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - - * QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_EXTSCAN_ROAM_PARAMS. + * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS. * * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit * value, RSSI threshold above which 5GHz RSSI is favored. @@ -2740,49 +2740,43 @@ enum qca_wlan_vendor_attr_roaming_config_params { }; /** - * enum qca_wlan_vendor_attr_roam_subcmd: Referred by + * enum qca_wlan_vendor_roaming_subcmd: Referred by * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. * - * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST: Sub command to + * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to * configure the white list SSIDs. These are configured through * the following attributes. * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST, * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID * - * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to + * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to * configure the Roam params. These parameters are evaluated on the extscan * results. Refers the attributes PARAM_A_BAND_XX above to configure the * params. * - * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses + * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE * to enable/disable Lazy roam. * - * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS: Sets the BSSID + * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID * preference. Contains the attribute * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID * preference. * - * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS: set bssid params + * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params * - * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist + * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to * set the same. */ -enum qca_wlan_vendor_attr_roam_subcmd { - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID = 0, - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST = 1, - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2, - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM = 3, - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS = 4, - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS = 5, - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID = 6, - - /* KEEP LAST */ - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST, - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX = - QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST - 1, +enum qca_wlan_vendor_roaming_subcmd { + QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1, + QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2, + QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, + QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, + QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, + QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6, }; /**