diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-23 18:48:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-23 18:48:35 +0000 |
commit | ca49c000b6f0dc520921f102f05f4b281664b897 (patch) | |
tree | bb3a63f0026077aebf11695ba66f64571bd704bd /package/kernel/mac80211/patches/431-add_platform_eeprom_support_to_ath5k.patch | |
parent | 32d1e0ed2c3ec748bf7759a31d363e38d15b2424 (diff) | |
download | mtk-20170518-ca49c000b6f0dc520921f102f05f4b281664b897.zip mtk-20170518-ca49c000b6f0dc520921f102f05f4b281664b897.tar.gz mtk-20170518-ca49c000b6f0dc520921f102f05f4b281664b897.tar.bz2 |
mac80211: update to wireless-testing 2014-05-22
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40834
Diffstat (limited to 'package/kernel/mac80211/patches/431-add_platform_eeprom_support_to_ath5k.patch')
-rw-r--r-- | package/kernel/mac80211/patches/431-add_platform_eeprom_support_to_ath5k.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/kernel/mac80211/patches/431-add_platform_eeprom_support_to_ath5k.patch b/package/kernel/mac80211/patches/431-add_platform_eeprom_support_to_ath5k.patch index a223b38..5cb4b51 100644 --- a/package/kernel/mac80211/patches/431-add_platform_eeprom_support_to_ath5k.patch +++ b/package/kernel/mac80211/patches/431-add_platform_eeprom_support_to_ath5k.patch @@ -22,14 +22,14 @@ u32 status, timeout; + struct ath5k_platform_data *pdata = NULL; -+ ++ + if (ah->pdev) + pdata = ah->pdev->dev.platform_data; + + if (pdata && pdata->eeprom_data && pdata->eeprom_data[61] == AR5K_EEPROM_MAGIC_VALUE) { -+ if (offset >= ATH5K_PLAT_EEP_MAX_WORDS) ++ if (offset >= ATH5K_PLAT_EEP_MAX_WORDS) + return false; -+ ++ + *data = pdata->eeprom_data[offset]; + return true; + } |