diff options
author | Eyal Shapira <eyal@wizery.com> | 2013-11-22 18:30:44 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2013-12-09 15:29:48 -0500 |
commit | a8ff14f5964a6988fb883ec63de726de2a3bc19e (patch) | |
tree | 90148a61d988a59ec40056992b75bbd442528dde | |
parent | 5aa335537aa27e0d169e98d90d23342434a1cef0 (diff) |
iwlwifi: mvm: rs: remove unused parameter to rs_get_supported_rates
No use of the ieee80211 header. Drop it.
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/rs.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/rs.c b/drivers/net/wireless/iwlwifi/mvm/rs.c index 3af90620b3de..7beb548fd8dd 100644 --- a/drivers/net/wireless/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/iwlwifi/mvm/rs.c | |||
@@ -597,15 +597,7 @@ static int rs_toggle_antenna(u32 valid_ant, u32 *ucode_rate, | |||
597 | return 1; | 597 | return 1; |
598 | } | 598 | } |
599 | 599 | ||
600 | /** | ||
601 | * rs_get_supported_rates - get the available rates | ||
602 | * | ||
603 | * if management frame or broadcast frame only return | ||
604 | * basic available rates. | ||
605 | * | ||
606 | */ | ||
607 | static u16 rs_get_supported_rates(struct iwl_lq_sta *lq_sta, | 600 | static u16 rs_get_supported_rates(struct iwl_lq_sta *lq_sta, |
608 | struct ieee80211_hdr *hdr, | ||
609 | struct rs_rate *rate) | 601 | struct rs_rate *rate) |
610 | { | 602 | { |
611 | if (is_legacy(rate)) | 603 | if (is_legacy(rate)) |
@@ -704,7 +696,7 @@ static u32 rs_get_lower_rate(struct iwl_lq_sta *lq_sta, | |||
704 | rate->sgi = false; | 696 | rate->sgi = false; |
705 | } | 697 | } |
706 | 698 | ||
707 | rate_mask = rs_get_supported_rates(lq_sta, NULL, rate); | 699 | rate_mask = rs_get_supported_rates(lq_sta, rate); |
708 | 700 | ||
709 | /* Mask with station rate restriction */ | 701 | /* Mask with station rate restriction */ |
710 | if (is_legacy(rate)) { | 702 | if (is_legacy(rate)) { |
@@ -1762,7 +1754,7 @@ static void rs_rate_scale_perform(struct iwl_mvm *mvm, | |||
1762 | index = lq_sta->last_txrate_idx; | 1754 | index = lq_sta->last_txrate_idx; |
1763 | 1755 | ||
1764 | /* rates available for this association, and for modulation mode */ | 1756 | /* rates available for this association, and for modulation mode */ |
1765 | rate_mask = rs_get_supported_rates(lq_sta, hdr, rate); | 1757 | rate_mask = rs_get_supported_rates(lq_sta, rate); |
1766 | 1758 | ||
1767 | /* mask with station rate restriction */ | 1759 | /* mask with station rate restriction */ |
1768 | if (is_legacy(rate)) { | 1760 | if (is_legacy(rate)) { |