summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAvinash Patil <patila@marvell.com>2013-07-30 01:32:38 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-07-31 21:06:46 +0200
commit237b2ac8ac89a6b0120decdd05c7bf4637deb98a (patch)
tree4dddc3aa0ab56f4a3d0cccba1a68c7d719eee687 /drivers
parentmwifiex: check for bss_role instead of bss_mode for STA operations (diff)
downloadlinux-237b2ac8ac89a6b0120decdd05c7bf4637deb98a.tar.xz
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')
-rw-r--r--drivers/net/wireless/mwifiex/cfp.c3
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 "