]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: disconnect when user changes channel
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 15 Jun 2009 11:42:25 +0000 (13:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Jun 2009 19:05:58 +0000 (15:05 -0400)
commit04280009f6ca6cc8e376066a298b7021dd013386
treed1158594e3b9ea1b54e6e24f7bf370a68e6105eb
parent29baea46105e710ab353aeaf6de32fc9667b1c29
mac80211: disconnect when user changes channel

If we do not disconnect when a channel switch is requested,
we end up eventually detection beacon loss from the AP and
then disconnecting, without ever really telling the AP, so
we might just as well disconnect right away.

Additionally, this fixes a problem with iwlwifi where the
driver will clear some internal state on channel changes
like this and then get confused when we actually go clear
that state from mac80211.

It may look like this patch drops the no-IBSS check, but
that is already handled by cfg80211 in the wext handler it
provides for IBSS (cfg80211_ibss_wext_siwfreq).

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/util.c
net/mac80211/wext.c