diff options
author | Avinash Patil <patila@marvell.com> | 2013-07-30 03:32:37 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-07-31 23:06:45 +0400 |
commit | 953b3539ef9301b8ef73f4b6e2fd824b86aae65a (patch) | |
tree | c84ce4e9d5d752582879b7ca65af0cc97c65ce10 /drivers/net/wireless/mwifiex/cfp.c | |
parent | 161915a07d501404710f5c89f9c98e6b58c085f0 (diff) | |
download | linux-953b3539ef9301b8ef73f4b6e2fd824b86aae65a.tar.xz |
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>
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfp.c')
0 files changed, 0 insertions, 0 deletions