]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: Allow association to change channels during reassociation
authorJouni Malinen <j@w1.fi>
Tue, 19 Jan 2010 18:53:30 +0000 (10:53 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Jan 2010 21:49:35 +0000 (16:49 -0500)
commit631ca34c6eaee4c3863e765ae065f4995b6bbdf7
treedffe44a679ad5fc809b0cbc7c9a86cedc46a7ace
parent49dad5995d566ddd1166a2c351d37b07e58b73c4
nl80211: Allow association to change channels during reassociation

nl80211_associate() was rejecting (re)association attempts with EBUSY
in some cases where we are currently associated with an AP that uses
different channel from the destination AP. Fix this by passing the
current wdev to rdev_fixed_channel() in the same way that was already
done for join-IBSS and connect commands. This allows the fixedchan
check to skipped for the current wdev and allows the reassociation to
proceed.

Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c