]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor attributes to configure antenna selection
authorWu Gao <quic_wugao@quicinc.com>
Fri, 13 Dec 2024 07:16:24 +0000 (23:16 -0800)
committerJouni Malinen <j@w1.fi>
Thu, 19 Dec 2024 10:39:31 +0000 (12:39 +0200)
Add following attributes to configure antenna selection:
  QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_COUNT_WLAN
  QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_COUNT_BT
  QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_WLAN_RSSI_THRESHOLD
  QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_BT_RSSI_THRESHOLD
  QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SWITCH_WLAN_RSSI_DIFF
  QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SWITCH_BT_RSSI_DIFF

If WLAN or BT RSSI is lower than the threshold, the firmware will start
a probe and then get RSSI of other antenna, and then select a better
antenna if RSSI difference is larger than the setting.

Signed-off-by: Wu Gao <quic_wugao@quicinc.com>
src/common/qca-vendor.h

index e59e295240305511f2e91d4a3b96579087dbc996..6c80589c0481d723effa3cb56f937897286c617d 100644 (file)
@@ -3815,6 +3815,40 @@ enum qca_wlan_vendor_attr_config {
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_DFS_OWNER_DISABLE = 123,
 
+       /* 16-bit unsigned value. For probing RSSI on other antennas, this
+        * attribute specifies the number of WLAN probes.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_COUNT_WLAN = 124,
+
+       /* 16-bit unsigned value. For probing RSSI on other antennas, this
+        * attribute specifies the number of BT probes.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_COUNT_BT = 125,
+
+       /* 16-bit unsigned value. This attribute specifies the WLAN RSSI
+        * threshold. The firmware will start to probe RSSI on other antenna
+        * if WLAN RSSI is lower than the threshold.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_WLAN_RSSI_THRESHOLD = 126,
+
+       /* 16-bit unsigned value. This attribute specifies the BT RSSI
+        * threshold. The firmware will start to probe RSSI on other antenna
+        * if BT RSSI is lower than the threshold.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_BT_RSSI_THRESHOLD = 127,
+
+       /* 16-bit unsigned value. This attribute specifies the WLAN RSSI
+        * difference. The firmware will select a better antenna if WLAN RSSI
+        * difference is larger than the value.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SWITCH_WLAN_RSSI_DIFF = 128,
+
+       /* 16-bit unsigned value. This attribute specifies the BT RSSI
+        * difference. The firmware will select a better antenna if WLAN RSSI
+        * difference larger than the value.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SWITCH_BT_RSSI_DIFF = 129,
+
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =