aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandrasekaran Manishekar <cmshekar@qti.qualcomm.com>2016-07-18 17:59:43 +0530
committerLinux Build Service Account <lnxbuild@localhost>2016-08-24 08:07:45 -0600
commiteec827ae19167f41af4a0f7184e0e69c4bff604a (patch)
treee50ba4303c10bd545c10afe6933231af22f6bf5b
parentd0f59302dc1780530a62add349bb75a349876851 (diff)
downloadandroid_external_wpa_supplicant_8-eec827ae19167f41af4a0f7184e0e69c4bff604a.tar.gz
android_external_wpa_supplicant_8-eec827ae19167f41af4a0f7184e0e69c4bff604a.tar.bz2
android_external_wpa_supplicant_8-eec827ae19167f41af4a0f7184e0e69c4bff604a.zip
QCA vendor command to configure conditional switch channel for AP
This commit introduces a new vendor sub command QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH and associated attributes which aim to configure selected frequencies on which the AP can conditionally switch onto for preferred operation. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Git-commit: 1c8fe68f62a10fe21dda6ce346e5ae0f5ef8d358 Git-repo: git://w1.fi/srv/git/hostap.git Change-Id: Ide4de6d36ac174825cec75b6ef7026797cf834f9 CRs-Fixed: 1045245
-rw-r--r--src/common/qca-vendor.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h
index 7432f2a2..50f13ff5 100644
--- a/src/common/qca-vendor.h
+++ b/src/common/qca-vendor.h
@@ -102,6 +102,19 @@ enum qca_radiotap_vendor_ids {
* device. As an event, it indicates either the feature stopped after it
* was already running or feature has actually failed to start. Uses the
* attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
+ * beaconing, this sub command provides the driver, the frequencies on the
+ * 5 GHz band to check for any radar activity. Driver selects one channel
+ * from this priority list provided through
+ * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
+ * to check for radar activity on it. If no radar activity is detected
+ * during the channel availability check period, driver internally switches
+ * to the selected frequency of operation. If the frequency is zero, driver
+ * internally selects a channel. The status of this conditional switch is
+ * indicated through an event using the same sub command through
+ * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
+ * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
*/
enum qca_nl80211_vendor_subcmds {
QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@@ -181,6 +194,7 @@ enum qca_nl80211_vendor_subcmds {
QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
+ QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
};
@@ -586,4 +600,23 @@ enum qca_wlan_vendor_attr_sap_config {
QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
};
+/**
+ * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
+ * conditional channel switch
+ */
+enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
+ QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
+ /* Priority based frequency list (an array of u32 values in host byte
+ * order) */
+ QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
+ /* Status of the conditional switch (u32).
+ * 0: Success, Non-zero: Failure
+ */
+ QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
+
+ QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
+ QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
+ QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
+};
+
#endif /* QCA_VENDOR_H */