Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287529
b: refs/heads/master
c: e81a7bd
h: refs/heads/master
i:
  287527: 68780af
v: v3
  • Loading branch information
Tomas Vanek authored and John W. Linville committed Feb 7, 2012
1 parent 4b90824 commit 7f0a14c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e6b411971de727a5bcea4323331fdaa70a81b11
refs/heads/master: e81a7bd55531a77d8c16d44766db4089c2983f1b
8 changes: 8 additions & 0 deletions trunk/drivers/net/wireless/zd1211rw/zd_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,14 @@ static int fill_ctrlset(struct zd_mac *mac,

ZD_ASSERT(frag_len <= 0xffff);

/*
* Firmware computes the duration itself (for all frames except PSPoll)
* and needs the field set to 0 at input, otherwise firmware messes up
* duration_id and sets bits 14 and 15 on.
*/
if (!ieee80211_is_pspoll(hdr->frame_control))
hdr->duration_id = 0;

txrate = ieee80211_get_tx_rate(mac->hw, info);

cs->modulation = txrate->hw_value;
Expand Down

0 comments on commit 7f0a14c

Please sign in to comment.