From: Xinming Hu Date: Fri, 12 Sep 2014 14:38:50 +0000 (+0530) Subject: mwifiex: fix 5G association failure after leaving 2.4G IBSS X-Git-Tag: fixes-against-v3.18-rc2~144^2~144^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a659c4306b3d8de0be218ad47ee92eae31d5b0dd;p=pandora-kernel.git mwifiex: fix 5G association failure after leaving 2.4G IBSS When assocaiting to an AP , mwifiex set supported data rates based on target AP's capability. For 5G AP(11a mode), a/n/ac mode would possibly be set. However, for some chips which dont support 11AC mode current config_bands will be used instead. For example, if we join an IBSS in 11b mode ,adapter->config_bands will be set to 1(11b mode). Then we leave IBSS ,and try to connect 5G a/n mode AP. At this time , only 11b mode data rates will be supported in assoc request , which result in assoc failure with reason code 18: Association denied due to requesting station not supporting all rates. This patch fix such a cornel case, by adding additional check for current chip's 11ac capability. Reported-by: Andreas Fenkart Signed-off-by: Xinming Hu Signed-off-by: Avinash Patil Signed-off-by: Amitkumar Karwar Signed-off-by: Marc Yang Signed-off-by: Cathy Luo Signed-off-by: John W. Linville --- Reading git-diff-tree failed