]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ACS: Update documentation of external ACS results event parameters
authorVamsi Krishna <vamsin@codeaurora.com>
Tue, 24 Dec 2019 12:46:37 +0000 (18:16 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 9 Jan 2020 18:12:14 +0000 (20:12 +0200)
Update the documentation with values to be sent for seg0 and seg1 fields
in external ACS result event for 20 MHz, 40 MHz, 80 MHz, 160 MHz, and
80+80 MHz channels. These values match the changes done to definitions
of seg0 and seg1 fields in the IEEE 802.11 standard.

This vendor command had not previously been documented in this level of
detail and had not actually been used for the only case that could have
two different interpretation (160 MHz) based on which version of IEEE
802.11 standard is used.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/qca-vendor.h
src/drivers/driver.h

index 778c217fb7c0e9e2df709de18e00339d1895c4ef..557b525628efb0743501de059ba3363c94d18113 100644 (file)
@@ -1189,7 +1189,9 @@ enum qca_wlan_vendor_attr_p2p_listen_offload {
  *
  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8).
  * Used with event to notify the VHT segment 0 center channel number selected in
- * ACS operation.
+ * ACS operation. The value is the index of the channel center frequency for
+ * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index
+ * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels.
  * Note: If both the driver and user-space application supports the 6 GHz band,
  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use
  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead.
@@ -1199,7 +1201,10 @@ enum qca_wlan_vendor_attr_p2p_listen_offload {
  *
  * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8).
  * Used with event to notify the VHT segment 1 center channel number selected in
- * ACS operation.
+ * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels.
+ * The value is the index of the channel center frequency for 160 MHz channels
+ * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz
+ * channels.
  * Note: If both the driver and user-space application supports the 6 GHz band,
  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use
  * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead.
index c37dd2fc99e7399517208c42c262cb989a0267e5..9bdf880110e028e754e34934d5e1ac204180242d 100644 (file)
@@ -5707,7 +5707,15 @@ union wpa_event_data {
         * @pri_freq: Selected primary frequency
         * @sec_freq: Selected secondary frequency
         * @vht_seg0_center_ch: VHT mode Segment0 center channel
+        *      The value is the index of the channel center frequency for
+        *      20 MHz, 40 MHz, and 80 MHz channels. The value is the center
+        *      frequency index of the primary 80 MHz segment for 160 MHz and
+        *      80+80 MHz channels.
         * @vht_seg1_center_ch: VHT mode Segment1 center channel
+        *      The value is zero for 20 MHz, 40 MHz, and 80 MHz channels. The
+        *      value is the index of the channel center frequency for 160 MHz
+        *      channels and the center frequency index of the secondary 80 MHz
+        *      segment for 80+80 MHz channels.
         * @ch_width: Selected Channel width by driver. Driver may choose to
         *      change hostapd configured ACS channel width due driver internal
         *      channel restrictions.