diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2015-08-06 17:47:30 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-08-14 11:49:50 -0400 |
commit | 35225eb7a5589407299033bfa7e1ac723b17e2b5 (patch) | |
tree | db0d825c97d43b305fd965fedded36aa4eb25435 /net/mac80211/rate.c | |
parent | 4b819f6cc4221ea6dd250e006f7b9ab0f6c71b45 (diff) |
mac80211: remove ieee80211_tx_info from rate_control_apply_mask signature
Remove unnecessary ieee80211_tx_info pointer from rate_control_apply_mask
signature. rate_control_apply_mask() will be used to define a ratemask in
rate_control_set_rates() for station rate table
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rate.c')
-rw-r--r-- | net/mac80211/rate.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index 03687d22b405..4f02e07ecc7b 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c | |||
@@ -631,7 +631,6 @@ static void rate_control_fill_sta_table(struct ieee80211_sta *sta, | |||
631 | static void rate_control_apply_mask(struct ieee80211_sub_if_data *sdata, | 631 | static void rate_control_apply_mask(struct ieee80211_sub_if_data *sdata, |
632 | struct ieee80211_sta *sta, | 632 | struct ieee80211_sta *sta, |
633 | struct ieee80211_supported_band *sband, | 633 | struct ieee80211_supported_band *sband, |
634 | struct ieee80211_tx_info *info, | ||
635 | struct ieee80211_tx_rate *rates, | 634 | struct ieee80211_tx_rate *rates, |
636 | int max_rates) | 635 | int max_rates) |
637 | { | 636 | { |
@@ -647,8 +646,8 @@ static void rate_control_apply_mask(struct ieee80211_sub_if_data *sdata, | |||
647 | * default mask (allow all rates) is used to save some processing for | 646 | * default mask (allow all rates) is used to save some processing for |
648 | * the common case. | 647 | * the common case. |
649 | */ | 648 | */ |
650 | mask = sdata->rc_rateidx_mask[info->band]; | 649 | mask = sdata->rc_rateidx_mask[sband->band]; |
651 | has_mcs_mask = sdata->rc_has_mcs_mask[info->band]; | 650 | has_mcs_mask = sdata->rc_has_mcs_mask[sband->band]; |
652 | rate_flags = | 651 | rate_flags = |
653 | ieee80211_chandef_rate_flags(&sdata->vif.bss_conf.chandef); | 652 | ieee80211_chandef_rate_flags(&sdata->vif.bss_conf.chandef); |
654 | for (i = 0; i < sband->n_bitrates; i++) | 653 | for (i = 0; i < sband->n_bitrates; i++) |
@@ -659,14 +658,14 @@ static void rate_control_apply_mask(struct ieee80211_sub_if_data *sdata, | |||
659 | return; | 658 | return; |
660 | 659 | ||
661 | if (has_mcs_mask) | 660 | if (has_mcs_mask) |
662 | memcpy(mcs_mask, sdata->rc_rateidx_mcs_mask[info->band], | 661 | memcpy(mcs_mask, sdata->rc_rateidx_mcs_mask[sband->band], |
663 | sizeof(mcs_mask)); | 662 | sizeof(mcs_mask)); |
664 | else | 663 | else |
665 | memset(mcs_mask, 0xff, sizeof(mcs_mask)); | 664 | memset(mcs_mask, 0xff, sizeof(mcs_mask)); |
666 | 665 | ||
667 | if (sta) { | 666 | if (sta) { |
668 | /* Filter out rates that the STA does not support */ | 667 | /* Filter out rates that the STA does not support */ |
669 | mask &= sta->supp_rates[info->band]; | 668 | mask &= sta->supp_rates[sband->band]; |
670 | for (i = 0; i < sizeof(mcs_mask); i++) | 669 | for (i = 0; i < sizeof(mcs_mask); i++) |
671 | mcs_mask[i] &= sta->ht_cap.mcs.rx_mask[i]; | 670 | mcs_mask[i] &= sta->ht_cap.mcs.rx_mask[i]; |
672 | } | 671 | } |
@@ -707,7 +706,7 @@ void ieee80211_get_tx_rates(struct ieee80211_vif *vif, | |||
707 | sband = sdata->local->hw.wiphy->bands[info->band]; | 706 | sband = sdata->local->hw.wiphy->bands[info->band]; |
708 | 707 | ||
709 | if (ieee80211_is_data(hdr->frame_control)) | 708 | if (ieee80211_is_data(hdr->frame_control)) |
710 | rate_control_apply_mask(sdata, sta, sband, info, dest, max_rates); | 709 | rate_control_apply_mask(sdata, sta, sband, dest, max_rates); |
711 | 710 | ||
712 | if (dest[0].idx < 0) | 711 | if (dest[0].idx < 0) |
713 | __rate_control_send_low(&sdata->local->hw, sband, sta, info, | 712 | __rate_control_send_low(&sdata->local->hw, sband, sta, info, |