diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-28 05:04:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-10 14:54:09 -0400 |
commit | d748b4642a53cd1ead303f9e2b008295391466b7 (patch) | |
tree | a557d45efb433b2022125fc5c4665ded20e27e1c /drivers/net/wireless/iwlegacy/4965-mac.c | |
parent | 8f727ef3c4859f2c397a7609beb845dcd66729f5 (diff) |
mac80211: remove antenna_sel_tx TX info field
This field is never set to anything non-zero in
mac80211, so we should be able to remove it.
Unfortunately though, the iwlwifi and iwlegacy
drivers use it for their internal TX status
processing (which shouldn't be using the rate
control API to start with), so add a new field
"status.antenna" for them, at least for now.
In the future, I plan to use the new field to
hold the hardware queue, while the SKB's queue
mapping holds the AC.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/4965-mac.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index c46275a92565..f2baf94f069c 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c | |||
@@ -2850,9 +2850,9 @@ void | |||
2850 | il4965_hwrate_to_tx_control(struct il_priv *il, u32 rate_n_flags, | 2850 | il4965_hwrate_to_tx_control(struct il_priv *il, u32 rate_n_flags, |
2851 | struct ieee80211_tx_info *info) | 2851 | struct ieee80211_tx_info *info) |
2852 | { | 2852 | { |
2853 | struct ieee80211_tx_rate *r = &info->control.rates[0]; | 2853 | struct ieee80211_tx_rate *r = &info->status.rates[0]; |
2854 | 2854 | ||
2855 | info->antenna_sel_tx = | 2855 | info->status.antenna = |
2856 | ((rate_n_flags & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS); | 2856 | ((rate_n_flags & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS); |
2857 | if (rate_n_flags & RATE_MCS_HT_MSK) | 2857 | if (rate_n_flags & RATE_MCS_HT_MSK) |
2858 | r->flags |= IEEE80211_TX_RC_MCS; | 2858 | r->flags |= IEEE80211_TX_RC_MCS; |