From: Avinash Patil Date: Mon, 29 Jul 2013 23:32:37 +0000 (-0700) Subject: mwifiex: check for bss_role instead of bss_mode for STA operations X-Git-Tag: v3.11-rc4~5^2~27^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=953b3539ef9301b8ef73f4b6e2fd824b86aae65a;p=pandora-kernel.git 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: # 3.10.y Signed-off-by: Avinash Patil Signed-off-by: Stone Piao Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed