mwifiex: reset 11h active flag when chandef does not require dfs
authorAvinash Patil <patila@marvell.com>
Wed, 3 Jun 2015 11:29:35 +0000 (16:59 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jun 2015 08:41:48 +0000 (11:41 +0300)
This patch fixes an issue where we were still setting 11h_active
flag to true for channel defs where DFS is not required.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/cfg80211.c

index d47799ae0d471ef3217db796f7f25f383c087509..fb93e13e7d95bc9b0a719c662c2114ee2a4b3646 100644 (file)
@@ -1820,7 +1820,7 @@ static int mwifiex_cfg80211_start_ap(struct wiphy *wiphy,
                                    "Failed to disable 11h extensions!!");
                        return -1;
                }
-               priv->state_11h.is_11h_active = true;
+               priv->state_11h.is_11h_active = false;
        }
 
        if (mwifiex_config_start_uap(priv, bss_cfg)) {