diff options
author | Avinash Patil <patila@marvell.com> | 2013-07-29 16:32:38 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-07-31 15:06:46 -0400 |
commit | 237b2ac8ac89a6b0120decdd05c7bf4637deb98a (patch) | |
tree | 4dddc3aa0ab56f4a3d0cccba1a68c7d719eee687 /drivers/net/wireless/mwifiex | |
parent | 953b3539ef9301b8ef73f4b6e2fd824b86aae65a (diff) | |
download | linux-237b2ac8ac89a6b0120decdd05c7bf4637deb98a.tar.gz linux-237b2ac8ac89a6b0120decdd05c7bf4637deb98a.tar.bz2 linux-237b2ac8ac89a6b0120decdd05c7bf4637deb98a.zip |
mwifiex: fix wrong data rates in P2P client
This patch fixes an issue wherein adhoc rates were being copied
into association request from P2P client.
Cc: <stable@vger.kernel.org> # 3.10.y
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Stone Piao <piaoyun@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/cfp.c b/drivers/net/wireless/mwifiex/cfp.c index 988552dece75..5178c4630d89 100644 --- a/drivers/net/wireless/mwifiex/cfp.c +++ b/drivers/net/wireless/mwifiex/cfp.c @@ -415,7 +415,8 @@ u32 mwifiex_get_supported_rates(struct mwifiex_private *priv, u8 *rates) u32 k = 0; struct mwifiex_adapter *adapter = priv->adapter; - if (priv->bss_mode == NL80211_IFTYPE_STATION) { + if (priv->bss_mode == NL80211_IFTYPE_STATION || + priv->bss_mode == NL80211_IFTYPE_P2P_CLIENT) { switch (adapter->config_bands) { case BAND_B: dev_dbg(adapter->dev, "info: infra band=%d " |