]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: check for bss_role instead of bss_mode for STA operations
authorAvinash Patil <patila@marvell.com>
Mon, 29 Jul 2013 23:32:37 +0000 (16:32 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 31 Jul 2013 19:06:45 +0000 (15:06 -0400)
commitabcf00321bcdf19f04d7bf4b0e0e5c8f4ccec1b3
treec84ce4e9d5d752582879b7ca65af0cc97c65ce10
parent9defbcc4b41dffd40a8701e6c66c6bed4353f21f
mwifiex: check for bss_role instead of bss_mode for STA operations

This patch fixes an issue wherein association would fail on P2P
interfaces. This happened because we are checking priv->mode
against NL80211_IFTYPE_STATION. While this check is correct for
infrastructure stations, it would fail P2P clients for which mode
is NL80211_IFTYPE_P2P_CLIENT.

Better check would be bss_role which has only 2 values: STA/AP.

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>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/join.c