]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Skip vendor specific DFS offload if upstream mechanism is used
authorPeng Xu <pxu@codeaurora.org>
Fri, 15 Jun 2018 21:39:32 +0000 (14:39 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 5 Jul 2018 10:18:28 +0000 (13:18 +0300)
Since the generic DFS offload support flag is added as
NL80211_EXT_FEATURE_DFS_OFFLOAD, only use the vendor command to check
DFS capablity if the flag is not already set.

Signed-off-by: Peng Xu <pxu@codeaurora.org>
src/drivers/driver_nl80211_capa.c

index ba053b44c4e775fd942197246f39a3e0e028532f..60c34c9a03c3f28e92c5701ecfe4f64abff7a263 100644 (file)
@@ -1219,7 +1219,8 @@ int wpa_driver_nl80211_capa(struct wpa_driver_nl80211_data *drv)
                drv->capa.flags &= ~WPA_DRIVER_FLAGS_EAPOL_TX_STATUS;
 
 #ifdef CONFIG_DRIVER_NL80211_QCA
-       qca_nl80211_check_dfs_capa(drv);
+       if (!(info.capa->flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD))
+               qca_nl80211_check_dfs_capa(drv);
        qca_nl80211_get_features(drv);
        qca_nl80211_check_he_capab(drv);