diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-02-26 18:03:20 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-02-26 18:03:20 +0000 |
commit | 86307b4db2cc678440b0456c09d6b0388602094a (patch) | |
tree | 8dd4ba69ea4575b742dc1963efe1cb2959eda035 /package/mac80211/patches/201-ath5k_eeprom.patch | |
parent | d33317c579add5ab873d4a801c1dcffe1c3b4fa9 (diff) | |
download | master-31e0f0ae-86307b4db2cc678440b0456c09d6b0388602094a.tar.gz master-31e0f0ae-86307b4db2cc678440b0456c09d6b0388602094a.tar.bz2 master-31e0f0ae-86307b4db2cc678440b0456c09d6b0388602094a.zip |
mac80211: update compat-wireless to 2009-02-25
SVN-Revision: 14675
Diffstat (limited to 'package/mac80211/patches/201-ath5k_eeprom.patch')
-rw-r--r-- | package/mac80211/patches/201-ath5k_eeprom.patch | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/package/mac80211/patches/201-ath5k_eeprom.patch b/package/mac80211/patches/201-ath5k_eeprom.patch index 5dfbcf3be9..b42110d9bf 100644 --- a/package/mac80211/patches/201-ath5k_eeprom.patch +++ b/package/mac80211/patches/201-ath5k_eeprom.patch @@ -23,25 +23,25 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> - freq1 = (val >> 8) & 0xff; - freq2 = val & 0xff; -- -- if (freq1) { -- pc[i++].freq = ath5k_eeprom_bin2freq(ee, -- freq1, mode); -- ee->ee_n_piers[mode]++; -- } + freq1 = val & 0xff; + if (!freq1) + break; -- if (freq2) { +- if (freq1) { - pc[i++].freq = ath5k_eeprom_bin2freq(ee, -- freq2, mode); +- freq1, mode); - ee->ee_n_piers[mode]++; - } + pc[i++].freq = ath5k_eeprom_bin2freq(ee, + freq1, mode); + ee->ee_n_piers[mode]++; +- if (freq2) { +- pc[i++].freq = ath5k_eeprom_bin2freq(ee, +- freq2, mode); +- ee->ee_n_piers[mode]++; +- } +- - if (!freq1 || !freq2) + freq2 = (val >> 8) & 0xff; + if (!freq2) @@ -79,8 +79,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> - if ((ee->ee_x_gain[mode] >> 2) & 0x1) pd_gains++; - if ((ee->ee_x_gain[mode] >> 3) & 0x1) pd_gains++; - ee->ee_pd_gains[mode] = pd_gains; -+ u8 pd_gains; - +- - offset = ath5k_cal_data_offset_2413(ee, mode); - ee->ee_n_piers[mode] = 0; - switch (mode) { @@ -95,7 +94,8 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org> - case AR5K_EEPROM_MODE_11B: - if (!AR5K_EEPROM_HDR_11B(ee->ee_header)) - return 0; -- ++ u8 pd_gains; + - ath5k_eeprom_init_11bg_2413(ah, mode, offset); - offset += AR5K_EEPROM_N_2GHZ_CHAN_2413 / 2; - gen_chan_info = ee->ee_pwr_cal_b; |