From 946e35eace4db260c3d35684bfb06b2ec4bfae26 Mon Sep 17 00:00:00 2001 From: Peng Xu Date: Fri, 15 Jun 2018 14:39:32 -0700 Subject: [PATCH] nl80211: Skip vendor specific DFS offload if upstream mechanism is used 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 --- src/drivers/driver_nl80211_capa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c index ba053b44c..60c34c9a0 100644 --- a/src/drivers/driver_nl80211_capa.c +++ b/src/drivers/driver_nl80211_capa.c @@ -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);