aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@qti.qualcomm.com>2016-08-04 15:31:31 +0530
committerHamad Kadmany <hkadmany@codeaurora.org>2016-10-10 11:45:51 +0300
commit29b79012468064d8d55d32adf56f37f74adf8dcc (patch)
treede09d4e1864689d33831cfefaa00a4c060e3d6d5 /src
parent53ff624c4a43efa27dbcc98a30e560b42fddaaf0 (diff)
downloadandroid_external_wpa_supplicant_8-29b79012468064d8d55d32adf56f37f74adf8dcc.tar.gz
android_external_wpa_supplicant_8-29b79012468064d8d55d32adf56f37f74adf8dcc.tar.bz2
android_external_wpa_supplicant_8-29b79012468064d8d55d32adf56f37f74adf8dcc.zip
Define vendor command to support IE based access control
This commit defines QCA vendor subcommand and attributes for IE based access control, i.e., the specific configured IE (full IE) is matched with the frames originated by the Wi-Fi STA / AP to accept or deny the connection. A specific IE can either be a whitelist or blacklist. Change-Id: I539ee8e56bbf588f6d6c6adb527a72553c4931cc Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Git-commit: 14b7612447358b4014f0c49ecabe74fa2bba6520 Git-repo: git://w1.fi/srv/git/hostap.git CRs-Fixed: 1064000
Diffstat (limited to 'src')
-rw-r--r--src/common/qca-vendor.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h
index 2ab35bc1..08500d6e 100644
--- a/src/common/qca-vendor.h
+++ b/src/common/qca-vendor.h
@@ -569,6 +569,25 @@ enum qca_set_band {
};
/**
+ * enum qca_access_policy - Access control policy
+ *
+ * Access control policy is applied on the configured IE
+ * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
+ * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
+ *
+ * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
+ * the specific configuration (IE) set, i.e., allow all the
+ * connections which do not match the configuration.
+ * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
+ * the specific configuration (IE) set, i.e., deny all the
+ * connections which do not match the configuration.
+ */
+enum qca_access_policy {
+ QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
+ QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
+};
+
+/**
* enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
* @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
* @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
@@ -827,6 +846,15 @@ enum qca_wlan_vendor_attr_config {
/* Unsigned 32-bit flags attribute for
* QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS,
+ /* Unsigned 32-bit, defining the access policy.
+ * See enum qca_access_policy. Used with
+ * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */
+ QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY,
+ /* Sets the list of full set of IEs for which a specific access policy
+ * has to be applied. Used along with
+ * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
+ * Zero length payload can be used to clear this access constraint. */
+ QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST,
/* keep last */
QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,