From: Avinash Patil Date: Mon, 29 Jul 2013 23:32:38 +0000 (-0700) Subject: mwifiex: fix wrong data rates in P2P client X-Git-Tag: upstream/snapshot3+hdmi~4489^2~25^2^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=237b2ac8ac89a6b0120decdd05c7bf4637deb98a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: # 3.10.y Signed-off-by: Avinash Patil Signed-off-by: Stone Piao Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwifiex/cfp.c b/drivers/net/wireless/mwifiex/cfp.c index 988552d..5178c46 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 "