OpenCloudOS-Kernel/net/mac80211
Johannes Berg 3e122be089 mac80211: make master netdev handling sane
Currently, almost every interface type has a 'bss' pointer
pointing to BSS information. This BSS information, however,
is for a _local_ BSS, not for the BSS we joined, so having
it on a STA mode interface makes little sense, but now they
have it pointing to the master device, which is an AP mode
virtual interface. However, except for some bitrate control
data, this pointer is only used in AP/VLAN modes (for power
saving stations.)

Overall, it is not necessary to even have the master netdev
be a valid virtual interface, and it doesn't have to be on
the list of interfaces either.

This patch changes the master netdev to be special, it now
 - no longer is on the list of virtual interfaces, which
   lets me remove a lot of tests for that
 - no longer has sub_if_data attached, since that isn't used

Additionally, this patch changes some vlan/ap mode handling
that is related to these 'bss' pointers described above (but
in the VLAN case they actually make sense because there they
point to the AP they belong to); it also adds some debugging
code to IEEE80211_DEV_TO_SUB_IF to validate it is not called
on the master netdev any more.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-07-14 14:30:06 -04:00
..
Kconfig net: Delete NETDEVICES_MULTIQUEUE kconfig option. 2008-07-08 23:14:24 -07:00
Makefile build algorithms into the mac80211 module 2008-06-30 17:37:34 -04:00
aes_ccm.c mac80211: aes_ccm.c remove crypto wrapper and extra args 2008-07-08 14:16:02 -04:00
aes_ccm.h mac80211: pass scratch buffer directly, remove additional pointers 2008-07-08 14:16:02 -04:00
cfg.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
cfg.h [MAC80211]: rename ieee80211_cfg.h to cfg.h 2007-10-10 16:52:34 -07:00
debugfs.c mac80211: QoS related cleanups 2008-05-07 15:02:26 -04:00
debugfs.h [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
debugfs_key.c mac80211: add a struct to hold tkip context 2008-05-21 21:47:49 -04:00
debugfs_key.h mac80211: fix key vs. sta locking problems 2008-04-08 16:44:45 -04:00
debugfs_netdev.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
debugfs_netdev.h [MAC80211]: Add debugfs attributes. 2007-05-05 11:46:38 -07:00
debugfs_sta.c mac80211: remove channel use statistics 2008-05-21 21:48:17 -04:00
debugfs_sta.h mac80211: RCU-ify STA info structure access 2008-03-06 15:30:46 -05:00
event.c [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF() 2007-10-10 16:51:42 -07:00
ieee80211_i.h mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
iface.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
key.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-06-28 01:19:40 -07:00
key.h mac80211: Let drivers have access to TKIP key offets for TX and RX MIC 2008-06-27 09:09:17 -04:00
led.c mac80211: rename files 2008-04-08 16:44:45 -04:00
led.h mac80211: rename files 2008-04-08 16:44:45 -04:00
main.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
mesh.c mac80211: Consolidate hash kfree-ing in mesh.c. 2008-05-21 21:47:45 -04:00
mesh.h mac80211: Prepare mesh_table_grow to failing copy_node callback. 2008-05-21 21:47:42 -04:00
mesh_hwmp.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2008-05-15 00:52:37 -07:00
mesh_pathtbl.c build algorithms into the mac80211 module 2008-06-30 17:37:34 -04:00
mesh_plink.c mac80211: proper STA info locking 2008-05-14 16:29:34 -04:00
michael.c mac80211: remove ieee80211_get_hdr_info 2008-07-08 14:16:01 -04:00
michael.h mac80211: remove ieee80211_get_hdr_info 2008-07-08 14:16:01 -04:00
mlme.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
rate.c mac80211: use rate index in TX control 2008-05-21 21:48:09 -04:00
rate.h build algorithms into the mac80211 module 2008-06-30 17:37:34 -04:00
rc80211_pid.h mac80211: move TX info into skb->cb 2008-05-21 21:48:11 -04:00
rc80211_pid_algo.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
rc80211_pid_debugfs.c mac80211: move TX info into skb->cb 2008-05-21 21:48:11 -04:00
rx.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
sta_info.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
sta_info.h mac80211: fix lots of kernel-doc 2008-07-08 14:16:03 -04:00
tkip.c mac80211: Let drivers have access to TKIP key offets for TX and RX MIC 2008-06-27 09:09:17 -04:00
tkip.h mac80211: tkip.c consolidate tkip IV writing in helper 2008-06-14 12:18:13 -04:00
tx.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
util.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
wep.c mac80211: rework debug settings and make debugging safer 2008-07-02 15:48:33 -04:00
wep.h mac80211: a few code cleanups 2008-05-07 15:02:11 -04:00
wext.c mac80211: make master netdev handling sane 2008-07-14 14:30:06 -04:00
wme.c netdev: Move rest of qdisc state into struct netdev_queue 2008-07-08 17:42:10 -07:00
wme.h mac80211: move QOS control helpers into ieee80211.h 2008-07-08 14:15:59 -04:00
wpa.c mac80211: pass scratch buffer directly, remove additional pointers 2008-07-08 14:16:02 -04:00
wpa.h mac80211: split ieee80211_txrx_data 2008-03-06 15:30:46 -05:00