diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-01-16 19:47:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-19 16:25:16 -0500 |
commit | edc6ccb7b992bd9ea5db4555c8f0bf74c656f964 (patch) | |
tree | e73676345e80609767d3c2b60f80e70324ac240b /net | |
parent | 8e9310c1790566ea2de2e8b6e1c04bacbbee648c (diff) |
mac80211: move and rename misc tx handler
This TX handler is used only for assigning the
station pointer in the control information, so
give it a better name. Also move it before rate
control.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/tx.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index daf81048c1f7..a74ab797fed9 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -560,6 +560,17 @@ ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx) | |||
560 | } | 560 | } |
561 | 561 | ||
562 | static ieee80211_tx_result debug_noinline | 562 | static ieee80211_tx_result debug_noinline |
563 | ieee80211_tx_h_sta(struct ieee80211_tx_data *tx) | ||
564 | { | ||
565 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); | ||
566 | |||
567 | if (tx->sta) | ||
568 | info->control.sta = &tx->sta->sta; | ||
569 | |||
570 | return TX_CONTINUE; | ||
571 | } | ||
572 | |||
573 | static ieee80211_tx_result debug_noinline | ||
563 | ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx) | 574 | ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx) |
564 | { | 575 | { |
565 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); | 576 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); |
@@ -734,17 +745,6 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx) | |||
734 | } | 745 | } |
735 | 746 | ||
736 | static ieee80211_tx_result debug_noinline | 747 | static ieee80211_tx_result debug_noinline |
737 | ieee80211_tx_h_misc(struct ieee80211_tx_data *tx) | ||
738 | { | ||
739 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); | ||
740 | |||
741 | if (tx->sta) | ||
742 | info->control.sta = &tx->sta->sta; | ||
743 | |||
744 | return TX_CONTINUE; | ||
745 | } | ||
746 | |||
747 | static ieee80211_tx_result debug_noinline | ||
748 | ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx) | 748 | ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx) |
749 | { | 749 | { |
750 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); | 750 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); |
@@ -1292,10 +1292,10 @@ static int invoke_tx_handlers(struct ieee80211_tx_data *tx) | |||
1292 | CALL_TXH(ieee80211_tx_h_check_assoc); | 1292 | CALL_TXH(ieee80211_tx_h_check_assoc); |
1293 | CALL_TXH(ieee80211_tx_h_ps_buf); | 1293 | CALL_TXH(ieee80211_tx_h_ps_buf); |
1294 | CALL_TXH(ieee80211_tx_h_select_key); | 1294 | CALL_TXH(ieee80211_tx_h_select_key); |
1295 | CALL_TXH(ieee80211_tx_h_sta); | ||
1295 | CALL_TXH(ieee80211_tx_h_michael_mic_add); | 1296 | CALL_TXH(ieee80211_tx_h_michael_mic_add); |
1296 | if (!(tx->local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL)) | 1297 | if (!(tx->local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL)) |
1297 | CALL_TXH(ieee80211_tx_h_rate_ctrl); | 1298 | CALL_TXH(ieee80211_tx_h_rate_ctrl); |
1298 | CALL_TXH(ieee80211_tx_h_misc); | ||
1299 | CALL_TXH(ieee80211_tx_h_sequence); | 1299 | CALL_TXH(ieee80211_tx_h_sequence); |
1300 | CALL_TXH(ieee80211_tx_h_fragment); | 1300 | CALL_TXH(ieee80211_tx_h_fragment); |
1301 | /* handlers after fragment must be aware of tx info fragmentation! */ | 1301 | /* handlers after fragment must be aware of tx info fragmentation! */ |