android_kernel_motorola_sm6225/drivers/net/wireless
Johannes Berg f444de05d2 cfg80211/mac80211: better channel handling
Currently (all tested with hwsim) you can do stupid
things like setting up an AP on a certain channel,
then adding another virtual interface and making
that associate on another channel -- this will make
the beaconing to move channel but obviously without
the necessary IEs data update.

In order to improve this situation, first make the
configuration APIs (cfg80211 and nl80211) aware of
multi-channel operation -- we'll eventually need
that in the future anyway. There's one userland API
change and one API addition. The API change is that
now SET_WIPHY must be called with virtual interface
index rather than only wiphy index in order to take
effect for that interface -- luckily all current
users (hostapd) do that. For monitor interfaces, the
old setting is preserved, but monitors are always
slaved to other devices anyway so no guarantees.

The second userland API change is the introduction
of a per virtual interface SET_CHANNEL command, that
hostapd should use going forward to make it easier
to understand what's going on (it can automatically
detect a kernel with this command).

Other than mac80211, no existing cfg80211 drivers
are affected by this change because they only allow
a single virtual interface.

mac80211, however, now needs to be aware that the
channel settings are per interface now, and needs
to disallow (for now) real multi-channel operation,
which is another important part of this patch.

One of the immediate benefits is that you can now
start hostapd to operate on a hardware that already
has a connection on another virtual interface, as
long as you specify the same channel.

Note that two things are left unhandled (this is an
improvement -- not a complete fix):

 * different HT/no-HT modes

   currently you could start an HT AP and then
   connect to a non-HT network on the same channel
   which would configure the hardware for no HT;
   that can be fixed fairly easily

 * CSA

   An AP we're connected to on a virtual interface
   might indicate switching channels, and in that
   case we would follow it, regardless of how many
   other interfaces are operating; this requires
   more effort to fix but is pretty rare after all

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-05-07 14:55:50 -04:00
..
ath ath9k: fix another source of corrupt frames 2010-05-07 14:55:47 -04:00
b43 b43: Added get_survey callback in order to get channel noise 2010-05-03 14:51:46 -04:00
b43legacy b43legacy: Added get_survey callback in order to get channel noise 2010-05-03 14:51:47 -04:00
hostap Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2010-02-25 23:26:21 -08:00
ipw2x00 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into merge 2010-04-08 13:34:54 -04:00
iwlwifi iwlwifi: recalculate average tpt if not current 2010-05-04 13:24:22 -04:00
iwmc3200wifi iwmc3200wifi: fix busted iwm_debugfs_init definition 2010-05-03 16:21:10 -04:00
libertas cfg80211/mac80211: better channel handling 2010-05-07 14:55:50 -04:00
libertas_tf libertas_tf: avoid warning about pr_fmt redefinition 2010-04-30 14:38:28 -04:00
orinoco cfg80211/mac80211: better channel handling 2010-05-07 14:55:50 -04:00
p54 Merge branch 'wireless-next-2.6' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-2.6 2010-05-03 14:53:49 -04:00
prism54 wireless/prism54: remove trailing space in messages 2010-03-31 14:39:07 -04:00
rt2x00 rt2x00: Register frame length in TX entry descriptor instead of L2PAD. 2010-05-04 13:24:23 -04:00
rtl818x rtl8187: use SET_IEEE80211_PERM_ADDR 2010-05-05 14:46:24 -04:00
wl12xx mac80211: remove deprecated noise field from ieee80211_rx_status 2010-04-30 15:38:13 -04:00
zd1211rw zd1211rw: fix potential array underflow 2010-03-02 14:28:49 -05:00
adm8211.c Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2010-02-14 17:45:59 -08:00
adm8211.h
airo.c airo : Print of firmware version 2010-03-15 15:28:20 -04:00
airo.h
airo_cs.c
at76c50x-usb.c mac80211: give virtual interface to hw_scan 2010-04-27 16:09:23 -04:00
at76c50x-usb.h
atmel.c
atmel.h
atmel_cs.c
atmel_pci.c
Kconfig libertastf: add configurable debug messages 2010-04-26 14:21:26 -04:00
mac80211_hwsim.c mac80211_hwsim: fix double-scan detection 2010-05-03 14:53:11 -04:00
Makefile
mwl8k.c mac80211: remove deprecated noise field from ieee80211_rx_status 2010-04-30 15:38:13 -04:00
ray_cs.c wireless/raylink: remove trailing space in messages 2010-03-31 14:39:07 -04:00
ray_cs.h
rayctl.h
rndis_wlan.c cfg80211/mac80211: better channel handling 2010-05-07 14:55:50 -04:00
wl3501.h
wl3501_cs.c drivers/net/wireless: Use IW_HANDLER macro 2010-03-23 16:50:27 -04:00
zd1201.c wireless: convert to use netdev_for_each_mc_addr 2010-02-28 01:44:01 -08:00
zd1201.h