[ath5k] Update for changes in kernel 2.6.31
This adds basic rfkill support for enabling the wireless card on certain laptops, and changes miscellaneous other details that may help in obscure cases. Also change the error handling to not report CRC errors, which due to the basic facts of wireless may happen even more frequently than valid packets. Signed-off-by: Marty Connor <mdc@etherboot.org>
This commit is contained in:
committed by
Marty Connor
parent
224ef7f483
commit
489bd2f396
@@ -146,6 +146,17 @@ ath5k_eeprom_init_header(struct ath5k_hw *ah)
|
||||
ee->ee_db[AR5K_EEPROM_MODE_11G][0] = (val >> 3) & 0x7;
|
||||
}
|
||||
|
||||
AR5K_EEPROM_READ(AR5K_EEPROM_IS_HB63, val);
|
||||
|
||||
if ((ah->ah_mac_version == (AR5K_SREV_AR2425 >> 4)) && val)
|
||||
ee->ee_is_hb63 = 1;
|
||||
else
|
||||
ee->ee_is_hb63 = 0;
|
||||
|
||||
AR5K_EEPROM_READ(AR5K_EEPROM_RFKILL, val);
|
||||
ee->ee_rfkill_pin = (u8) AR5K_REG_MS(val, AR5K_EEPROM_RFKILL_GPIO_SEL);
|
||||
ee->ee_rfkill_pol = val & AR5K_EEPROM_RFKILL_POLARITY ? 1 : 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user