Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247168
b: refs/heads/master
c: 566875d
h: refs/heads/master
v: v3
  • Loading branch information
Pradeep Nemavat authored and John W. Linville committed Apr 25, 2011
1 parent cd7fa91 commit 2ee8979
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 3a7dbc3b2ac545efac75d4145839eaa7b59d9741
refs/heads/master: 566875db5058f582ea56da891f9c3cabc01efff5
13 changes: 13 additions & 0 deletions trunk/drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ MODULE_PARM_DESC(ap_mode_default,
#define MWL8K_A2H_INT_RX_READY (1 << 1)
#define MWL8K_A2H_INT_TX_DONE (1 << 0)

/* HW micro second timer register
* located at offset 0xA600. This
* will be used to timestamp tx
* packets.
*/

#define MWL8K_HW_TIMER_REGISTER 0x0000a600

#define MWL8K_A2H_EVENTS (MWL8K_A2H_INT_DUMMY | \
MWL8K_A2H_INT_CHNL_SWITCHED | \
MWL8K_A2H_INT_QUEUE_EMPTY | \
Expand Down Expand Up @@ -1972,6 +1980,11 @@ mwl8k_txq_xmit(struct ieee80211_hw *hw, int index, struct sk_buff *skb)
tx->peer_id = MWL8K_STA(tx_info->control.sta)->peer_id;
else
tx->peer_id = 0;

if (priv->ap_fw)
tx->timestamp = cpu_to_le32(ioread32(priv->regs +
MWL8K_HW_TIMER_REGISTER));

wmb();
tx->status = cpu_to_le32(MWL8K_TXD_STATUS_FW_OWNED | txstatus);

Expand Down

0 comments on commit 2ee8979

Please sign in to comment.