mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
16
package/ath9k/patches/130-eeprom.patch
Normal file
16
package/ath9k/patches/130-eeprom.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
Fix a return code check for ath9k_hw_nvram_read, this function returns
|
||||
AH_TRUE when the call succeeded
|
||||
|
||||
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
||||
|
||||
--- a/drivers/net/wireless/ath9k/hw.c
|
||||
+++ b/drivers/net/wireless/ath9k/hw.c
|
||||
@@ -803,7 +803,7 @@
|
||||
u_int16_t magic, magic2;
|
||||
int addr;
|
||||
|
||||
- if (ath9k_hw_nvram_read(ah, AR5416_EEPROM_MAGIC_OFFSET,
|
||||
+ if (!ath9k_hw_nvram_read(ah, AR5416_EEPROM_MAGIC_OFFSET,
|
||||
&magic)) {
|
||||
HDPRINTF(ah, HAL_DBG_EEPROM,
|
||||
"%s: Reading Magic # failed\n", __func__);
|
||||
Reference in New Issue
Block a user