summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/560-ath9k_ar9003_otp_fallback.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-16 23:50:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-07-16 23:50:54 +0000
commitcf9bca8dedb00b41c42a994ae08b91c37d11895c (patch)
tree70272e7b9e0d26608ba3e5805ab01855a9717ac7 /package/mac80211/patches/560-ath9k_ar9003_otp_fallback.patch
parent84585b45d6ab5a71a805e45df889b01217950484 (diff)
downloadmtk-20170518-cf9bca8dedb00b41c42a994ae08b91c37d11895c.zip
mtk-20170518-cf9bca8dedb00b41c42a994ae08b91c37d11895c.tar.gz
mtk-20170518-cf9bca8dedb00b41c42a994ae08b91c37d11895c.tar.bz2
mac80211: update to latest wireless-testing + some monitor mode fixes and some libertas driver fixes
SVN-Revision: 32760
Diffstat (limited to 'package/mac80211/patches/560-ath9k_ar9003_otp_fallback.patch')
-rw-r--r--package/mac80211/patches/560-ath9k_ar9003_otp_fallback.patch25
1 files changed, 0 insertions, 25 deletions
diff --git a/package/mac80211/patches/560-ath9k_ar9003_otp_fallback.patch b/package/mac80211/patches/560-ath9k_ar9003_otp_fallback.patch
deleted file mode 100644
index 8bcf44e..0000000
--- a/package/mac80211/patches/560-ath9k_ar9003_otp_fallback.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
-+++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
-@@ -3260,10 +3260,20 @@ static int ar9300_eeprom_restore_interna
- int it;
- u16 checksum, mchecksum;
- struct ath_common *common = ath9k_hw_common(ah);
-+ struct ar9300_eeprom *eep;
- eeprom_read_op read;
-
-- if (ath9k_hw_use_flash(ah))
-- return ar9300_eeprom_restore_flash(ah, mptr, mdata_size);
-+ if (ath9k_hw_use_flash(ah)) {
-+ u8 txrx;
-+
-+ ar9300_eeprom_restore_flash(ah, mptr, mdata_size);
-+
-+ /* check if eeprom contains valid data */
-+ eep = (struct ar9300_eeprom *) mptr;
-+ txrx = eep->baseEepHeader.txrxMask;
-+ if (txrx != 0 && txrx != 0xff)
-+ return 0;
-+ }
-
- word = kzalloc(2048, GFP_KERNEL);
- if (!word)