]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: update config_bands during infra association
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 9 Jan 2013 01:53:10 +0000 (17:53 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 11 Jan 2013 19:12:00 +0000 (14:12 -0500)
commit9bce3a9fbf251d798077adb537f354c785745b49
tree64b67855e82ec1f9727d3c223e8fb64daee4d0ec
parent54f295cf8b45515e922e7cd728af360e06a65237
mwifiex: update config_bands during infra association

Currently "adapter->config_bands" is updated during infra
association only if channel is provided by user in "iw connect"
command. config_bands is used while preparing association
request to calculate supported rates by intersecting our rates
with the rates advertised by AP.

There is corner case in which we include zero rates in
supported rates TLV based on previous IBSS network history,
which leads to association failure.

This patch fixes the problem by correctly updating config_bands.

Cc: "3.7.y" <stable@vger.kernel.org>
Signed-off-by: Amitkumar Karwar <akarwar@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/sta_ioctl.c