mwifiex: update current config_band info in start_ap
authorAvinash Patil <patila@marvell.com>
Thu, 4 Jun 2015 19:31:54 +0000 (01:01 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jun 2015 08:49:47 +0000 (11:49 +0300)
It was observed that AP beacons would not reflect correct regulatory
information upon starting AP in A band. This was because of missing
AP config band update in set_channel of start_ap.

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

index a62b43ea9e2a7cdc9e85c05dbf7ad7458cbf7b90..b74930054b8c0b1f1cc2066ef2d22f2ca542ebb4 100644 (file)
@@ -832,6 +832,8 @@ void mwifiex_uap_set_channel(struct mwifiex_private *priv,
                if (chandef.width > NL80211_CHAN_WIDTH_40)
                        config_bands |= BAND_AAC;
        }
+
+       priv->adapter->config_bands = config_bands;
 }
 
 int mwifiex_config_start_uap(struct mwifiex_private *priv,