]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
mac80211: make master iface not wireless
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 12:18:59 +0000 (14:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Sep 2008 20:18:00 +0000 (16:18 -0400)
commit133b822638ff01eb1e32e1917b197c40ed095ddd
tree8b96f00426728f3c05ba05f387240f0279512a75
parent9e5e6c327defcef19dabad64335ee68bb55b2355
mac80211: make master iface not wireless

There's no need to register the master netdev with cfg80211,
in fact, this is quite dangerous and lead to having to add
checks for the master interface all over the config handlers.
This patch removes the "ieee80211_ptr" from the master iface
in favour of having a small netdev_priv() associated with
the master interface that stores the ieee80211_local pointer.
Because of this, a lot of code in the configuration handlers
can go away. To make this patch easier to verify I have also
removed a number of wiphy_priv() calls in favour of getting
the sdata first and then the local pointer from that.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/debugfs_sta.c
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/mesh.c
net/mac80211/rx.c
net/mac80211/tx.c