projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c4c671
)
ar9170: fix beacon plcp settings
author
Christian Lamparter
<chunkeey@web.de>
Mon, 1 Jun 2009 19:41:31 +0000
(21:41 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 3 Jun 2009 18:05:12 +0000
(14:05 -0400)
This patch fixes a simple copy & paste error that affected beacon
transmission in 802.11a mode.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar9170/mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ar9170/mac.c
b/drivers/net/wireless/ath/ar9170/mac.c
index 43aeb69685d31ca41d848056d551460bdef0ad4b..72c7b5d8957c994a8ea973835f0a84954fa63a92 100644
(file)
--- a/
drivers/net/wireless/ath/ar9170/mac.c
+++ b/
drivers/net/wireless/ath/ar9170/mac.c
@@
-398,10
+398,10
@@
int ar9170_update_beacon(struct ar9170 *ar)
/* XXX: use skb->cb info */
if (ar->hw->conf.channel->band == IEEE80211_BAND_2GHZ)
ar9170_regwrite(AR9170_MAC_REG_BCN_PLCP,
- ((skb->len + 4) << (3
+
16)) + 0x0400);
+ ((skb->len + 4) << (3
+
16)) + 0x0400);
else
ar9170_regwrite(AR9170_MAC_REG_BCN_PLCP,
- ((skb->len + 4) <<
(3+16)) + 0x0400
);
+ ((skb->len + 4) <<
16) + 0x001b
);
ar9170_regwrite(AR9170_MAC_REG_BCN_LENGTH, skb->len + 4);
ar9170_regwrite(AR9170_MAC_REG_BCN_ADDR, AR9170_BEACON_BUFFER_ADDRESS);