X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=package%2Fmac80211%2Fpatches%2F501-ath9k-eeprom_endianess.patch;h=52ae70fc632904c0e1654443f5d474e35f71390d;hp=48338db2942aeaa8fdb350dcedc0a25058675e03;hb=de017af48d93a4c8bd0691f5cb9315e2f5f15cf1;hpb=08b17128a1856c8ba1f7c7286fdba2d993564cff diff --git a/package/mac80211/patches/501-ath9k-eeprom_endianess.patch b/package/mac80211/patches/501-ath9k-eeprom_endianess.patch index 48338db294..52ae70fc63 100644 --- a/package/mac80211/patches/501-ath9k-eeprom_endianess.patch +++ b/package/mac80211/patches/501-ath9k-eeprom_endianess.patch @@ -1,15 +1,15 @@ --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c -@@ -267,7 +267,7 @@ static int ath9k_hw_def_check_eeprom(str - struct ar5416_eeprom_def *eep = - (struct ar5416_eeprom_def *) &ah->eeprom.def; +@@ -266,7 +266,7 @@ static int ath9k_hw_def_check_eeprom(str + { + struct ar5416_eeprom_def *eep = &ah->eeprom.def; struct ath_common *common = ath9k_hw_common(ah); - u16 *eepdata, temp, magic, magic2; + u16 *eepdata, temp, magic; u32 sum = 0, el; bool need_swap = false; int i, addr, size; -@@ -277,27 +277,16 @@ static int ath9k_hw_def_check_eeprom(str +@@ -276,27 +276,16 @@ static int ath9k_hw_def_check_eeprom(str return false; } @@ -49,7 +49,7 @@ --- a/drivers/net/wireless/ath/ath9k/eeprom_4k.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_4k.c -@@ -196,7 +196,7 @@ static int ath9k_hw_4k_check_eeprom(stru +@@ -195,7 +195,7 @@ static int ath9k_hw_4k_check_eeprom(stru int i, addr; @@ -71,7 +71,7 @@ ath_err(common, "Reading Magic # failed\n"); --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h -@@ -704,6 +704,7 @@ enum ath_cal_list { +@@ -705,6 +705,7 @@ enum ath_cal_list { #define AH_USE_EEPROM 0x1 #define AH_UNPLUGGED 0x2 /* The card has been physically removed. */ #define AH_FASTCC 0x4