diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-07-09 08:40:35 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-07-14 14:30:07 -0400 |
commit | 75636525fbfa78fa33fd754c89785cfde750acd3 (patch) | |
tree | 2c614681382a53bec50248c621ba4c8bb07ce670 /net/mac80211/ieee80211_i.h | |
parent | 3e122be089e6fb8d3f322416da4cdbb80ce12927 (diff) |
mac80211: revamp virtual interface handling
This patch revamps the virtual interface handling and makes the
code much easier to follow. Fewer functions, better names, less
spaghetti code.
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.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 1b1fc53dad36..35bcdfef9045 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -558,12 +558,6 @@ struct ieee80211_local { | |||
558 | bool tim_in_locked_section; /* see ieee80211_beacon_get() */ | 558 | bool tim_in_locked_section; /* see ieee80211_beacon_get() */ |
559 | int tx_headroom; /* required headroom for hardware/radiotap */ | 559 | int tx_headroom; /* required headroom for hardware/radiotap */ |
560 | 560 | ||
561 | enum { | ||
562 | IEEE80211_DEV_UNINITIALIZED = 0, | ||
563 | IEEE80211_DEV_REGISTERED, | ||
564 | IEEE80211_DEV_UNREGISTERED, | ||
565 | } reg_state; | ||
566 | |||
567 | /* Tasklet and skb queue to process calls from IRQ mode. All frames | 561 | /* Tasklet and skb queue to process calls from IRQ mode. All frames |
568 | * added to skb_queue will be processed, but frames in | 562 | * added to skb_queue will be processed, but frames in |
569 | * skb_queue_unreliable may be dropped if the total length of these | 563 | * skb_queue_unreliable may be dropped if the total length of these |
@@ -863,7 +857,6 @@ int ieee80211_hw_config(struct ieee80211_local *local); | |||
863 | int ieee80211_if_config(struct net_device *dev); | 857 | int ieee80211_if_config(struct net_device *dev); |
864 | int ieee80211_if_config_beacon(struct net_device *dev); | 858 | int ieee80211_if_config_beacon(struct net_device *dev); |
865 | void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx); | 859 | void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx); |
866 | void ieee80211_if_setup(struct net_device *dev); | ||
867 | u32 ieee80211_handle_ht(struct ieee80211_local *local, int enable_ht, | 860 | u32 ieee80211_handle_ht(struct ieee80211_local *local, int enable_ht, |
868 | struct ieee80211_ht_info *req_ht_cap, | 861 | struct ieee80211_ht_info *req_ht_cap, |
869 | struct ieee80211_ht_bss_info *req_bss_cap); | 862 | struct ieee80211_ht_bss_info *req_bss_cap); |
@@ -933,16 +926,14 @@ static inline void ieee80211_start_mesh(struct net_device *dev) | |||
933 | #endif | 926 | #endif |
934 | 927 | ||
935 | /* interface handling */ | 928 | /* interface handling */ |
929 | void ieee80211_if_setup(struct net_device *dev); | ||
936 | int ieee80211_if_add(struct ieee80211_local *local, const char *name, | 930 | int ieee80211_if_add(struct ieee80211_local *local, const char *name, |
937 | struct net_device **new_dev, int type, | 931 | struct net_device **new_dev, enum ieee80211_if_types type, |
938 | struct vif_params *params); | 932 | struct vif_params *params); |
939 | void ieee80211_if_set_type(struct net_device *dev, int type); | 933 | void ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata, |
940 | void ieee80211_if_reinit(struct net_device *dev); | 934 | enum ieee80211_if_types type); |
941 | void __ieee80211_if_del(struct ieee80211_local *local, | 935 | void ieee80211_if_remove(struct net_device *dev); |
942 | struct ieee80211_sub_if_data *sdata); | 936 | void ieee80211_remove_interfaces(struct ieee80211_local *local); |
943 | int ieee80211_if_remove(struct net_device *dev, const char *name, int id); | ||
944 | void ieee80211_if_free(struct net_device *dev); | ||
945 | void ieee80211_if_sdata_init(struct ieee80211_sub_if_data *sdata); | ||
946 | 937 | ||
947 | /* tx handling */ | 938 | /* tx handling */ |
948 | void ieee80211_clear_tx_pending(struct ieee80211_local *local); | 939 | void ieee80211_clear_tx_pending(struct ieee80211_local *local); |