]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:01 +0000 (18:27 -0600)
commitb51a7f7c8c4ddd89850dcd8b8b7cf9c1d6b376c7
tree4b06a3d8085d3e9d3ebcfaa69be1459f7e2fe40b
parent8a9d24b881440a559798eb05a3df815e0bcc4bdb
mwifiex: update config_bands during infra association

commit d7b9c5204e9c6810a20d509ee47bc70419096e59 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/sta_ioctl.c