]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add a vendor attribute to configure disconnect IEs
authorSrinivas Dasari <dasaris@codeaurora.org>
Tue, 4 Jun 2019 07:20:17 +0000 (12:50 +0530)
committerJouni Malinen <jouni@codeaurora.org>
Fri, 19 Jul 2019 11:49:14 +0000 (14:49 +0300)
Add a new vendor attribute QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES
to configure disconnect IEs to the driver. Driver shall fill
these IEs in disassoc/deauth frame.
These IEs are expected to be considered only for the next
immediate disconnection (disassoc/deauth frame) originated by
the DUT, irrespective of the entity (user space/driver/firmware)
triggering the disconnection.
The host drivers are not expected to use the IEs set through
this interface for further disconnections after the first immediate
disconnection initiated post the configuration.
If the IEs are also updated through cfg80211 interface (after the
enhancement to cfg80211_disconnect), host driver is expected to
take the union of IEs from both of these interfaces and send in
further disassoc/deauth frames.

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

index f02dd73bc09889afd574ae5c7927aee55b7f04e9..d496640a75afcc772c16419149de25e1ba9c8a60 100644 (file)
@@ -1855,6 +1855,25 @@ enum qca_wlan_vendor_attr_config {
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57,
 
+       /* Attribute to configure disconnect IEs to the driver.
+        * This carries an array of unsigned 8-bit characters.
+        *
+        * If this is configured, driver shall fill the IEs in disassoc/deauth
+        * frame.
+        * These IEs are expected to be considered only for the next
+        * immediate disconnection (disassoc/deauth frame) originated by
+        * the DUT, irrespective of the entity (user space/driver/firmware)
+        * triggering the disconnection.
+        * The host drivers are not expected to use the IEs set through
+        * this interface for further disconnections after the first immediate
+        * disconnection initiated post the configuration.
+        * If the IEs are also updated through cfg80211 interface (after the
+        * enhancement to cfg80211_disconnect), host driver is expected to
+        * take the union of IEs from both of these interfaces and send in
+        * further disassoc/deauth frames.
+        */
+       QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES = 58,
+
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =