diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2012-04-11 02:47:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-13 14:32:50 -0400 |
commit | 4ee73f338a528f44fd90496adfbfd9c119401850 (patch) | |
tree | 665c02d2ec013a09b252713c8f94b604f6050cc7 /net/mac80211/tx.c | |
parent | f58cc809d2fe60989095c7b55fd14e1935a2f72a (diff) |
mac80211: remove hw.conf.channel usage where possible
Removes hw.conf.channel usage from the following functions:
* ieee80211_mandatory_rates
* ieee80211_sta_get_rates
* ieee80211_frame_duration
* ieee80211_rts_duration
* ieee80211_ctstoself_duration
This is in preparation for multi-channel operation.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 4f6aac16ac3a..0abbef952c14 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -159,7 +159,7 @@ static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, | |||
159 | /* Time needed to transmit ACK | 159 | /* Time needed to transmit ACK |
160 | * (10 bytes + 4-byte FCS = 112 bits) plus SIFS; rounded up | 160 | * (10 bytes + 4-byte FCS = 112 bits) plus SIFS; rounded up |
161 | * to closest integer */ | 161 | * to closest integer */ |
162 | dur = ieee80211_frame_duration(local, 10, rate, erp, | 162 | dur = ieee80211_frame_duration(sband->band, 10, rate, erp, |
163 | tx->sdata->vif.bss_conf.use_short_preamble); | 163 | tx->sdata->vif.bss_conf.use_short_preamble); |
164 | 164 | ||
165 | if (next_frag_len) { | 165 | if (next_frag_len) { |
@@ -167,7 +167,7 @@ static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, | |||
167 | * transmit next fragment plus ACK and 2 x SIFS. */ | 167 | * transmit next fragment plus ACK and 2 x SIFS. */ |
168 | dur *= 2; /* ACK + SIFS */ | 168 | dur *= 2; /* ACK + SIFS */ |
169 | /* next fragment */ | 169 | /* next fragment */ |
170 | dur += ieee80211_frame_duration(local, next_frag_len, | 170 | dur += ieee80211_frame_duration(sband->band, next_frag_len, |
171 | txrate->bitrate, erp, | 171 | txrate->bitrate, erp, |
172 | tx->sdata->vif.bss_conf.use_short_preamble); | 172 | tx->sdata->vif.bss_conf.use_short_preamble); |
173 | } | 173 | } |