summaryrefslogtreecommitdiff
path: root/uapi/linux
diff options
context:
space:
mode:
authorAbhishek Singh <absingh@codeaurora.org>2017-12-20 10:42:21 +0530
committerAbhishek Singh <absingh@codeaurora.org>2018-02-26 11:01:37 +0530
commit23a25be6a7a65a63a80e283bba392d7e88e421c7 (patch)
treed85875782a5bb5b307fc7d019a21844778a62fc1 /uapi/linux
parent7e096cfd2db90df515a281894182acada40052eb (diff)
qcacld-3.0: Add force rsne override and use the RSNE passed by user
Adds support for INI "force_rsne_override" and vendor interface to enable test mode to force rsne override. Once force rsne override is set the driver will use the RSN IE's as-is from the connect request. Exclusively used for the scenarios where the device is used as a cert test bed and not recommended for production. With force_rsne_override enabled in INI and once enabled from vendor command driver will not validate the RSN IE's passed from user space and thus induce improper IE as it is to test the peer. Once the force_rsne_override is set, it will be active until its disabled by vendor interface or driver unload. If INI force_rsne_override is disabled, the force rsne override mode cannot be enabled by vendor command. Change-Id: Ic58474e7a18e6c1f944c61783f630af3953011c0 CRs-Fixed: 2164526
Diffstat (limited to 'uapi/linux')
-rw-r--r--uapi/linux/qca_vendor.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/uapi/linux/qca_vendor.h b/uapi/linux/qca_vendor.h
index 83f7419388f4..a46a520fec50 100644
--- a/uapi/linux/qca_vendor.h
+++ b/uapi/linux/qca_vendor.h
@@ -3334,6 +3334,19 @@ enum qca_wlan_vendor_attr_config {
*/
QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55,
+ /*
+ * 8-bit unsigned value indicating the driver to use the RSNE as-is from
+ * the connect interface. Exclusively used for the scenarios where the
+ * device is used as a test bed device with special functionality and
+ * not recommended for production. This helps driver to not validate the
+ * RSNE passed from user space and thus allow arbitrary IE data to be
+ * used for testing purposes.
+ * 1-enable, 0-disable.
+ * Applications set/reset this configuration. If not reset, this
+ * parameter remains in use until the driver is unloaded.
+ */
+ QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56,
+
QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,