diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-06-01 15:41:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-06-03 14:05:12 -0400 |
commit | f46f0dc3f1e7bda2621617d5a379f8983ad1d5f8 (patch) | |
tree | 9ccfb62d038be60bfb3fc3bb9255dd9a227c0b8f /drivers/net/wireless | |
parent | 4c4c671aea16d2795f29c7a369518c3c36e15d2a (diff) |
ar9170: fix beacon plcp settings
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ar9170/mac.c b/drivers/net/wireless/ath/ar9170/mac.c index 43aeb69685d3..72c7b5d8957c 100644 --- 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) | |||
398 | /* XXX: use skb->cb info */ | 398 | /* XXX: use skb->cb info */ |
399 | if (ar->hw->conf.channel->band == IEEE80211_BAND_2GHZ) | 399 | if (ar->hw->conf.channel->band == IEEE80211_BAND_2GHZ) |
400 | ar9170_regwrite(AR9170_MAC_REG_BCN_PLCP, | 400 | ar9170_regwrite(AR9170_MAC_REG_BCN_PLCP, |
401 | ((skb->len + 4) << (3+16)) + 0x0400); | 401 | ((skb->len + 4) << (3 + 16)) + 0x0400); |
402 | else | 402 | else |
403 | ar9170_regwrite(AR9170_MAC_REG_BCN_PLCP, | 403 | ar9170_regwrite(AR9170_MAC_REG_BCN_PLCP, |
404 | ((skb->len + 4) << (3+16)) + 0x0400); | 404 | ((skb->len + 4) << 16) + 0x001b); |
405 | 405 | ||
406 | ar9170_regwrite(AR9170_MAC_REG_BCN_LENGTH, skb->len + 4); | 406 | ar9170_regwrite(AR9170_MAC_REG_BCN_LENGTH, skb->len + 4); |
407 | ar9170_regwrite(AR9170_MAC_REG_BCN_ADDR, AR9170_BEACON_BUFFER_ADDRESS); | 407 | ar9170_regwrite(AR9170_MAC_REG_BCN_ADDR, AR9170_BEACON_BUFFER_ADDRESS); |