diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-01-31 13:48:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:03 -0500 |
commit | 589052904a60f00dd2cbc1d3488ee3f520a7de21 (patch) | |
tree | 7fa7c83895b38ae84ec12ff035862bb3291952d9 /net/mac80211/tx.c | |
parent | 2c9745e5684ad75d02020bcaa31ab6d4b498e1e1 (diff) |
mac80211: remove "dynamic" RX/TX handlers
It doesn't really make sense to have extra pointers to the RX/TX
handler arrays instead of just using the arrays directly, that
also allows us to make them static.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 0cba4a214876..181d97015f61 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -813,10 +813,9 @@ ieee80211_tx_h_load_stats(struct ieee80211_txrx_data *tx) | |||
813 | return TX_CONTINUE; | 813 | return TX_CONTINUE; |
814 | } | 814 | } |
815 | 815 | ||
816 | /* TODO: implement register/unregister functions for adding TX/RX handlers | ||
817 | * into ordered list */ | ||
818 | 816 | ||
819 | ieee80211_tx_handler ieee80211_tx_handlers[] = | 817 | typedef ieee80211_tx_result (*ieee80211_tx_handler)(struct ieee80211_txrx_data *); |
818 | static ieee80211_tx_handler ieee80211_tx_handlers[] = | ||
820 | { | 819 | { |
821 | ieee80211_tx_h_check_assoc, | 820 | ieee80211_tx_h_check_assoc, |
822 | ieee80211_tx_h_sequence, | 821 | ieee80211_tx_h_sequence, |
@@ -1158,7 +1157,7 @@ static int ieee80211_tx(struct net_device *dev, struct sk_buff *skb, | |||
1158 | sta = tx.sta; | 1157 | sta = tx.sta; |
1159 | tx.u.tx.channel = local->hw.conf.channel; | 1158 | tx.u.tx.channel = local->hw.conf.channel; |
1160 | 1159 | ||
1161 | for (handler = local->tx_handlers; *handler != NULL; | 1160 | for (handler = ieee80211_tx_handlers; *handler != NULL; |
1162 | handler++) { | 1161 | handler++) { |
1163 | res = (*handler)(&tx); | 1162 | res = (*handler)(&tx); |
1164 | if (res != TX_CONTINUE) | 1163 | if (res != TX_CONTINUE) |
@@ -1914,7 +1913,7 @@ ieee80211_get_buffered_bc(struct ieee80211_hw *hw, | |||
1914 | tx.flags |= IEEE80211_TXRXD_TXPS_BUFFERED; | 1913 | tx.flags |= IEEE80211_TXRXD_TXPS_BUFFERED; |
1915 | tx.u.tx.channel = local->hw.conf.channel; | 1914 | tx.u.tx.channel = local->hw.conf.channel; |
1916 | 1915 | ||
1917 | for (handler = local->tx_handlers; *handler != NULL; handler++) { | 1916 | for (handler = ieee80211_tx_handlers; *handler != NULL; handler++) { |
1918 | res = (*handler)(&tx); | 1917 | res = (*handler)(&tx); |
1919 | if (res == TX_DROP || res == TX_QUEUED) | 1918 | if (res == TX_DROP || res == TX_QUEUED) |
1920 | break; | 1919 | break; |