diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-06-10 04:21:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-14 15:38:17 -0400 |
commit | 1fa57d017366fb26b58af110a38b36a4f0214a62 (patch) | |
tree | 9bf7e82b3e429908498a70aa5c75c2af06b261b6 /net/mac80211/ieee80211_i.h | |
parent | 64592c8fc0e99d445fc3fdedddeb6088e20086f1 (diff) |
mac80211: use common work function
Even with the previous patch, IBSS, managed
and mesh modes all attach their own work
function to the shared work struct, which
means some duplicated code. Change that to
only have a frame processing function and a
further work function for each of them and
share some common code.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 2873f6374d1a..f8c8f101592b 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -995,6 +995,9 @@ void ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata, | |||
995 | u64 timestamp); | 995 | u64 timestamp); |
996 | void ieee80211_sta_quiesce(struct ieee80211_sub_if_data *sdata); | 996 | void ieee80211_sta_quiesce(struct ieee80211_sub_if_data *sdata); |
997 | void ieee80211_sta_restart(struct ieee80211_sub_if_data *sdata); | 997 | void ieee80211_sta_restart(struct ieee80211_sub_if_data *sdata); |
998 | void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata); | ||
999 | void ieee80211_sta_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata, | ||
1000 | struct sk_buff *skb); | ||
998 | 1001 | ||
999 | /* IBSS code */ | 1002 | /* IBSS code */ |
1000 | void ieee80211_ibss_notify_scan_completed(struct ieee80211_local *local); | 1003 | void ieee80211_ibss_notify_scan_completed(struct ieee80211_local *local); |
@@ -1009,6 +1012,14 @@ int ieee80211_ibss_join(struct ieee80211_sub_if_data *sdata, | |||
1009 | int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata); | 1012 | int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata); |
1010 | void ieee80211_ibss_quiesce(struct ieee80211_sub_if_data *sdata); | 1013 | void ieee80211_ibss_quiesce(struct ieee80211_sub_if_data *sdata); |
1011 | void ieee80211_ibss_restart(struct ieee80211_sub_if_data *sdata); | 1014 | void ieee80211_ibss_restart(struct ieee80211_sub_if_data *sdata); |
1015 | void ieee80211_ibss_work(struct ieee80211_sub_if_data *sdata); | ||
1016 | void ieee80211_ibss_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata, | ||
1017 | struct sk_buff *skb); | ||
1018 | |||
1019 | /* mesh code */ | ||
1020 | void ieee80211_mesh_work(struct ieee80211_sub_if_data *sdata); | ||
1021 | void ieee80211_mesh_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata, | ||
1022 | struct sk_buff *skb); | ||
1012 | 1023 | ||
1013 | /* scan/BSS handling */ | 1024 | /* scan/BSS handling */ |
1014 | void ieee80211_scan_work(struct work_struct *work); | 1025 | void ieee80211_scan_work(struct work_struct *work); |