600-0025-rt2x00-rt2800lib-use-correct-beacon-base-for-RT3883.patch 832 B

12345678910111213141516171819202122
  1. From b403bdfa00665ce6b53583bdb837ffad0b91c09f Mon Sep 17 00:00:00 2001
  2. From: Gabor Juhos <juhosg@openwrt.org>
  3. Date: Sun, 24 Mar 2013 19:26:29 +0100
  4. Subject: [PATCH] rt2x00: rt2800lib: use correct beacon base for RT3883
  5. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  6. ---
  7. drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 3 ++-
  8. 1 file changed, 2 insertions(+), 1 deletion(-)
  9. --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  10. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
  11. @@ -983,7 +983,8 @@ EXPORT_SYMBOL_GPL(rt2800_txdone_entry);
  12. static unsigned int rt2800_hw_beacon_base(struct rt2x00_dev *rt2x00dev,
  13. unsigned int index)
  14. {
  15. - if (rt2x00_rt(rt2x00dev, RT3593))
  16. + if (rt2x00_rt(rt2x00dev, RT3593) ||
  17. + rt2x00_rt(rt2x00dev, RT3883))
  18. return HW_BEACON_BASE_HIGH(index);
  19. return HW_BEACON_BASE(index);