diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-20 11:44:14 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-07-20 11:44:14 +0000 |
commit | eca83c696ef5d2dd9b319e99e003caa7687e8088 (patch) | |
tree | 2c25348dc60e9617de004d32d58f386a89a737f9 /package/ath9k/patches/100-bad_udelay.patch | |
parent | 674a7327b3c9e7af5f8e94b53b1661c38143ef21 (diff) |
add the new ath9k driver (loads successfully on an AR9160 card, but still seems to have some rf issues)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11884 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ath9k/patches/100-bad_udelay.patch')
-rw-r--r-- | package/ath9k/patches/100-bad_udelay.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/ath9k/patches/100-bad_udelay.patch b/package/ath9k/patches/100-bad_udelay.patch new file mode 100644 index 0000000000..98f33d7176 --- /dev/null +++ b/package/ath9k/patches/100-bad_udelay.patch @@ -0,0 +1,15 @@ +Replace udelay(3000) with mdelay(3), because udelay(3000) fails on ARM + +Signed-off-by: Felix Fietkau <nbd@openwrt.org> + +--- a/drivers/net/wireless/ath9k/recv.c ++++ b/drivers/net/wireless/ath9k/recv.c +@@ -737,7 +737,7 @@ + ath9k_hw_stoppcurecv(ah); /* disable PCU */ + ath9k_hw_setrxfilter(ah, 0); /* clear recv filter */ + stopped = ath9k_hw_stopdmarecv(ah); /* disable DMA engine */ +- udelay(3000); /* 3ms is long enough for 1 frame */ ++ mdelay(3); /* 3ms is long enough for 1 frame */ + tsf = ath9k_hw_gettsf64(ah); + sc->sc_rxlink = NULL; /* just in case */ + return stopped; |