aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-07-09 08:40:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-07-14 14:30:07 -0400
commitf3947e2dfa3b18f375b7acd03b7ee2877d0751fc (patch)
tree3f68e55a214e638f1210883958d0746610c9dcf8 /net/mac80211/ieee80211_i.h
parent75636525fbfa78fa33fd754c89785cfde750acd3 (diff)
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>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 35bcdfef9045..2146c0c436d2 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -930,8 +930,8 @@ void ieee80211_if_setup(struct net_device *dev);
930int ieee80211_if_add(struct ieee80211_local *local, const char *name, 930int ieee80211_if_add(struct ieee80211_local *local, const char *name,
931 struct net_device **new_dev, enum ieee80211_if_types type, 931 struct net_device **new_dev, enum ieee80211_if_types type,
932 struct vif_params *params); 932 struct vif_params *params);
933void ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata, 933int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata,
934 enum ieee80211_if_types type); 934 enum ieee80211_if_types type);
935void ieee80211_if_remove(struct net_device *dev); 935void ieee80211_if_remove(struct net_device *dev);
936void ieee80211_remove_interfaces(struct ieee80211_local *local); 936void ieee80211_remove_interfaces(struct ieee80211_local *local);
937 937