]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Configure capability flag for NAN USD offload
authorShivani Baranwal <quic_shivbara@quicinc.com>
Sun, 18 Aug 2024 10:35:20 +0000 (16:05 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 5 Sep 2024 22:06:32 +0000 (01:06 +0300)
Configure the capability flag based on the nl80211 feature advertisement
for NAN USD offload support.

Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
src/drivers/driver_nl80211_capa.c

index 753ec55acb44290390aebbc21fcdaa388fb4b7de..1b3f82390d00648e345720ccedc3c244ab3441ed 100644 (file)
@@ -1451,6 +1451,8 @@ static void qca_nl80211_get_features(struct wpa_driver_nl80211_data *drv)
                           "The driver supports RSN overriding in STA mode");
                drv->capa.flags2 |= WPA_DRIVER_FLAGS2_RSN_OVERRIDE_STA;
        }
+       if (check_feature(QCA_WLAN_VENDOR_FEATURE_NAN_USD_OFFLOAD, &info))
+               drv->capa.flags2 |= WPA_DRIVER_FLAGS2_NAN_OFFLOAD;
 
        os_free(info.flags);
 }