diff options
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 4f6aac16ac3..0abbef952c1 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 | } |