]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Pass station's EHT capabilities to the driver in sta_add()
authorAloka Dixit <quic_alokad@quicinc.com>
Tue, 19 Apr 2022 18:04:14 +0000 (11:04 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 29 Apr 2022 14:27:52 +0000 (17:27 +0300)
Pass non-AP STA's EHT capabilities to the driver using the
NL80211_ATTR_EHT_CAPABILITY attribute.

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Signed-off-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
src/drivers/driver.h
src/drivers/driver_nl80211.c

index 9fcae968e6ecafdcfd1e8ad95a9b42a4abdf646d..d8220e956773d4b2818bd1c720c52e01b476d602 100644 (file)
@@ -2219,6 +2219,8 @@ struct hostapd_sta_add_params {
        const struct ieee80211_he_capabilities *he_capab;
        size_t he_capab_len;
        const struct ieee80211_he_6ghz_band_cap *he_6ghz_capab;
+       const struct ieee80211_eht_capabilities *eht_capab;
+       size_t eht_capab_len;
        u32 flags; /* bitmask of WPA_STA_* flags */
        u32 flags_mask; /* unset bits in flags */
 #ifdef CONFIG_MESH
index 18c8ec730ded77c7738706b6905771e44bc9d773..31620ab2b344c72c4b1e4e471b8e31afa5ec8140 100644 (file)
@@ -5157,6 +5157,14 @@ static int wpa_driver_nl80211_sta_add(void *priv,
                                goto fail;
                }
 
+               if (params->eht_capab) {
+                       wpa_hexdump(MSG_DEBUG, "  * eht_capab",
+                                   params->eht_capab, params->eht_capab_len);
+                       if (nla_put(msg, NL80211_ATTR_EHT_CAPABILITY,
+                                   params->eht_capab_len, params->eht_capab))
+                               goto fail;
+               }
+
                if (params->ext_capab) {
                        wpa_hexdump(MSG_DEBUG, "  * ext_capab",
                                    params->ext_capab, params->ext_capab_len);