From 365029bb1f8ecae57d8fb66f2df67e6fe9e0cf99 Mon Sep 17 00:00:00 2001 From: Krishna Rao Date: Fri, 16 Aug 2019 18:16:56 +0530 Subject: [PATCH] qcacmn: Add vendor ACS trigger reasons related to interference Add the following ACS trigger reasons to enum qca_wlan_vendor_acs_select_reason: 1) QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE Generic, uncategorized interference found 2) QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE Excessive 802.11 interference found 3) QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE Continuous Wave (CW) interference found 4) QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE Microwave Oven (MWO) interference found 5) QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE Frequency-Hopping Spread Spectrum (FHSS) interference found 6) QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE Non-802.11 Frequency-Hopping Spread Spectrum (FHSS) interference found 7) QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE Wideband (WB) interference found 8) QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE Non-802.11 Wideband (WB) interference found 9) QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE Jammer interference found Additionally, update definitions for enum qca_wlan_vendor_acs_select_reason to the exact code upstream in hostap. CRs-Fixed: 2522696 Change-Id: Id6de64b13b8f72e86b641644baf0858500284075 --- os_if/linux/qca_vendor.h | 51 +++++++++++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/os_if/linux/qca_vendor.h b/os_if/linux/qca_vendor.h index 8c61313bf2e7..91ea5021fddb 100644 --- a/os_if/linux/qca_vendor.h +++ b/os_if/linux/qca_vendor.h @@ -5906,20 +5906,55 @@ enum qca_wlan_vendor_attr_external_acs_channels { /** * qca_wlan_vendor_acs_select_reason: This represents the different reasons why - * the ACS has to be triggered. These parameters are used by + * the ACS has to be triggered. These values are used by * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and - * QCA_NL80211_VENDOR_SUBCMD_ACS_SET_CHANNELS - * @QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT: Represents the reason that the - * ACS triggered during the AP start - * @QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS: Represents the reason that - * DFS found with current channel - * @QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX: Represents the reason that - * LTE CO-Exist in current band + * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON */ enum qca_wlan_vendor_acs_select_reason { + /* Represents the reason that the ACS triggered during the AP start */ QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, + /* Represents the reason that DFS found with the current channel */ QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, + /* Represents the reason that LTE co-exist in the current band. */ QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, + /* Represents the reason that generic, uncategorized interference has + * been found in the current channel. + */ + QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, + /* Represents the reason that excessive 802.11 interference has been + * found in the current channel. + */ + QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, + /* Represents the reason that generic Continuous Wave (CW) interference + * has been found in the current channel. + */ + QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, + /* Represents the reason that Microwave Oven (MWO) interference has been + * found in the current channel. + */ + QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, + /* Represents the reason that generic Frequency-Hopping Spread Spectrum + * (FHSS) interference has been found in the current channel. This may + * include 802.11 waveforms. + */ + QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, + /* Represents the reason that non-802.11 generic Frequency-Hopping + * Spread Spectrum (FHSS) interference has been found in the current + * channel. + */ + QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, + /* Represents the reason that generic Wideband (WB) interference has + * been found in the current channel. This may include 802.11 waveforms. + */ + QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, + /* Represents the reason that non-802.11 generic Wideband (WB) + * interference has been found in the current channel. + */ + QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, + /* Represents the reason that Jammer interference has been found in the + * current channel. + */ + QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, }; /**