mac80211: push interface checks down
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 9 Jul 2008 12:40:36 +0000 (14:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jul 2008 18:30:07 +0000 (14:30 -0400)
commitf3947e2dfa3b18f375b7acd03b7ee2877d0751fc
tree3f68e55a214e638f1210883958d0746610c9dcf8
parent75636525fbfa78fa33fd754c89785cfde750acd3
mac80211: push interface checks down

This patch pushes the "netif_running()" and "same type as before"
checks down into ieee80211_if_change_type() to centralise the
logic instead of duplicating it for cfg80211 and wext.

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