]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Option to tell the driver about SPP A-MSDUs in assoc params
authorDaniel Gabay <daniel.gabay@intel.com>
Tue, 7 Jan 2025 12:51:47 +0000 (14:51 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 26 Jan 2025 17:10:55 +0000 (19:10 +0200)
Use NL80211_ATTR_ASSOC_SPP_AMSDU attribute to indicate the driver
whether SPP A-MSDUs are used on this connection.

Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
src/drivers/driver.h
src/drivers/driver_nl80211.c

index fb6b69ef4301411c962ff80ad89296f2e25b72dd..f04050003899e9b0bb759a7b21b7257d639c741d 100644 (file)
@@ -1397,11 +1397,15 @@ struct wpa_driver_associate_params {
         */
        struct wpa_driver_mld_params mld_params;
 
-
        /**
         * rsn_overriding - wpa_supplicant RSN overriding support
         */
        bool rsn_overriding;
+
+       /**
+        * spp_amsdu - SPP A-MSDU used on this connection
+        */
+       bool spp_amsdu;
 };
 
 enum hide_ssid {
index d03c8f980cd7463ef53682bc2cd798bdb05a413a..3aed4f3a934505349e0e37f2a5ec2295d5bd825e 100644 (file)
@@ -7221,6 +7221,12 @@ static int nl80211_connect_common(struct wpa_driver_nl80211_data *drv,
            nla_put_flag(msg, NL80211_ATTR_MLO_SUPPORT))
                return -1;
 
+       if (params->spp_amsdu) {
+               wpa_printf(MSG_DEBUG, "  * SPP A-MSDU");
+               if (nla_put_flag(msg, NL80211_ATTR_ASSOC_SPP_AMSDU))
+                       return -1;
+       }
+
        return 0;
 }