diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2010-08-04 19:36:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-16 15:26:39 -0400 |
commit | 071d9ac253ff51154beb7e33967168e30bc96053 (patch) | |
tree | b788f9daec3106774e8d9f334fef440eb3ce1b27 | |
parent | aa0c86364f925c6f12195072562b18c5609ff082 (diff) |
mac80211: remove unused rate function parameter
This patch removes a few stale parameters and variables
which survived the last, large rx-path reorganization:
"mac80211: correctly place aMPDU RX reorder code"
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/rx.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 8301b4a980a2..d5b91b6eb120 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -538,20 +538,12 @@ static void ieee80211_release_reorder_frame(struct ieee80211_hw *hw, | |||
538 | int index, | 538 | int index, |
539 | struct sk_buff_head *frames) | 539 | struct sk_buff_head *frames) |
540 | { | 540 | { |
541 | struct ieee80211_supported_band *sband; | ||
542 | struct ieee80211_rate *rate = NULL; | ||
543 | struct sk_buff *skb = tid_agg_rx->reorder_buf[index]; | 541 | struct sk_buff *skb = tid_agg_rx->reorder_buf[index]; |
544 | struct ieee80211_rx_status *status; | ||
545 | 542 | ||
546 | if (!skb) | 543 | if (!skb) |
547 | goto no_frame; | 544 | goto no_frame; |
548 | 545 | ||
549 | status = IEEE80211_SKB_RXCB(skb); | 546 | /* release the frame from the reorder ring buffer */ |
550 | |||
551 | /* release the reordered frames to stack */ | ||
552 | sband = hw->wiphy->bands[status->band]; | ||
553 | if (!(status->flag & RX_FLAG_HT)) | ||
554 | rate = &sband->bitrates[status->rate_idx]; | ||
555 | tid_agg_rx->stored_mpdu_num--; | 547 | tid_agg_rx->stored_mpdu_num--; |
556 | tid_agg_rx->reorder_buf[index] = NULL; | 548 | tid_agg_rx->reorder_buf[index] = NULL; |
557 | __skb_queue_tail(frames, skb); | 549 | __skb_queue_tail(frames, skb); |
@@ -2364,8 +2356,7 @@ static void ieee80211_rx_handlers(struct ieee80211_rx_data *rx, | |||
2364 | 2356 | ||
2365 | static void ieee80211_invoke_rx_handlers(struct ieee80211_sub_if_data *sdata, | 2357 | static void ieee80211_invoke_rx_handlers(struct ieee80211_sub_if_data *sdata, |
2366 | struct ieee80211_rx_data *rx, | 2358 | struct ieee80211_rx_data *rx, |
2367 | struct sk_buff *skb, | 2359 | struct sk_buff *skb) |
2368 | struct ieee80211_rate *rate) | ||
2369 | { | 2360 | { |
2370 | struct sk_buff_head reorder_release; | 2361 | struct sk_buff_head reorder_release; |
2371 | ieee80211_rx_result res = RX_DROP_MONITOR; | 2362 | ieee80211_rx_result res = RX_DROP_MONITOR; |
@@ -2489,8 +2480,7 @@ static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata, | |||
2489 | * be called with rcu_read_lock protection. | 2480 | * be called with rcu_read_lock protection. |
2490 | */ | 2481 | */ |
2491 | static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, | 2482 | static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, |
2492 | struct sk_buff *skb, | 2483 | struct sk_buff *skb) |
2493 | struct ieee80211_rate *rate) | ||
2494 | { | 2484 | { |
2495 | struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb); | 2485 | struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb); |
2496 | struct ieee80211_local *local = hw_to_local(hw); | 2486 | struct ieee80211_local *local = hw_to_local(hw); |
@@ -2598,7 +2588,7 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, | |||
2598 | prev->name); | 2588 | prev->name); |
2599 | goto next; | 2589 | goto next; |
2600 | } | 2590 | } |
2601 | ieee80211_invoke_rx_handlers(prev, &rx, skb_new, rate); | 2591 | ieee80211_invoke_rx_handlers(prev, &rx, skb_new); |
2602 | next: | 2592 | next: |
2603 | prev = sdata; | 2593 | prev = sdata; |
2604 | } | 2594 | } |
@@ -2614,7 +2604,7 @@ next: | |||
2614 | } | 2604 | } |
2615 | } | 2605 | } |
2616 | if (prev) | 2606 | if (prev) |
2617 | ieee80211_invoke_rx_handlers(prev, &rx, skb, rate); | 2607 | ieee80211_invoke_rx_handlers(prev, &rx, skb); |
2618 | else | 2608 | else |
2619 | dev_kfree_skb(skb); | 2609 | dev_kfree_skb(skb); |
2620 | } | 2610 | } |
@@ -2709,7 +2699,7 @@ void ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
2709 | return; | 2699 | return; |
2710 | } | 2700 | } |
2711 | 2701 | ||
2712 | __ieee80211_rx_handle_packet(hw, skb, rate); | 2702 | __ieee80211_rx_handle_packet(hw, skb); |
2713 | 2703 | ||
2714 | rcu_read_unlock(); | 2704 | rcu_read_unlock(); |
2715 | 2705 | ||