Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278381
b: refs/heads/master
c: 6674f21
h: refs/heads/master
i:
  278379: e6c488a
v: v3
  • Loading branch information
Simon Wunderlich authored and John W. Linville committed Nov 28, 2011
1 parent bab22d8 commit fe0db85
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b53be7920bd9bb1bb99fecc2ff537bc79d24082f
refs/heads/master: 6674f210e9dbf30e592ccd85b0cf90bd8d1d2d28
14 changes: 9 additions & 5 deletions trunk/net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,15 @@ static __le16 ieee80211_duration(struct ieee80211_tx_data *tx,
rate = mrate;
}

/* Time needed to transmit ACK
* (10 bytes + 4-byte FCS = 112 bits) plus SIFS; rounded up
* to closest integer */

dur = ieee80211_frame_duration(local, 10, rate, erp,
/* Don't calculate ACKs for QoS Frames with NoAck Policy set */
if (ieee80211_is_data_qos(hdr->frame_control) &&
*(ieee80211_get_qos_ctl(hdr)) | IEEE80211_QOS_CTL_ACK_POLICY_NOACK)
dur = 0;
else
/* Time needed to transmit ACK
* (10 bytes + 4-byte FCS = 112 bits) plus SIFS; rounded up
* to closest integer */
dur = ieee80211_frame_duration(local, 10, rate, erp,
tx->sdata->vif.bss_conf.use_short_preamble);

if (next_frag_len) {
Expand Down

0 comments on commit fe0db85

Please sign in to comment.