From ef83e0f90f2fc69e2f73337f3ff6c039898ba43d Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Tue, 8 Jun 2021 21:49:01 -0700 Subject: [PATCH] QCA vendor attribute to use BSSID in Probe Request frame RA Add a QCA vendor attribute to configure the driver to use scan request BSSID value in Probe Request frame RA(A1) for scan. This attribute is used for testing purpose. The driver saves this configuration and applies this setting to all user space scan requests until the setting is cleared. If this configuration is set, the driver uses the BSSID value from the scan request to set the RA(A1) in the Probe Request frames during the scan, else the broadcast address is set in the Probe Request frames RA(A1). Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index f6393f1d4..4ad71f7ff 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -8124,6 +8124,20 @@ enum qca_wlan_vendor_attr_wifi_test_config { */ QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, + /* 8-bit unsigned value to configure the driver to use scan request + * BSSID value in Probe Request frame RA(A1) during the scan. The + * driver saves this configuration and applies this setting to all user + * space scan requests until the setting is cleared. If this + * configuration is set, the driver uses the BSSID value from the scan + * request to set the RA(A1) in the Probe Request frames during the + * scan. + * + * 0 - Default behavior uses the broadcast RA in Probe Request frames. + * 1 - Uses the scan request BSSID in RA in Probe Request frames. + * This attribute is used for testing purposes. + */ + QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, + /* keep last */ QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX =