add the new ath9k driver (loads successfully on an AR9160 card, but still seems to...
[openwrt/svn-archive/archive.git] / package / ath9k / patches / 100-bad_udelay.patch
1 Replace udelay(3000) with mdelay(3), because udelay(3000) fails on ARM
2
3 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
4
5 --- a/drivers/net/wireless/ath9k/recv.c
6 +++ b/drivers/net/wireless/ath9k/recv.c
7 @@ -737,7 +737,7 @@
8 ath9k_hw_stoppcurecv(ah); /* disable PCU */
9 ath9k_hw_setrxfilter(ah, 0); /* clear recv filter */
10 stopped = ath9k_hw_stopdmarecv(ah); /* disable DMA engine */
11 - udelay(3000); /* 3ms is long enough for 1 frame */
12 + mdelay(3); /* 3ms is long enough for 1 frame */
13 tsf = ath9k_hw_gettsf64(ah);
14 sc->sc_rxlink = NULL; /* just in case */
15 return stopped;