freebsd-skq/sys/dev/ath/ath_hal
Dimitry Andric 46fb42dc9d Fix shift overflow problem in sys/dev/ath/ath_hal/ar5210/ar5210_power.c
and sys/dev/ath/ath_hal/ar5211/ar5211_power.c:

sys/dev/ath/ath_hal/ar5210/ar5210_power.c:36:3: warning: signed shift result (0x200000000) requires 35 bits to represent, but 'int' only has 32 bits [-Wshift-overflow]
                OS_REG_RMW_FIELD(ah, AR_SCR, AR_SCR_SLE, AR_SCR_SLE_ALLOW);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sys/dev/ath/ath_hal/ah_internal.h:472:42: note: expanded from:
                (OS_REG_READ(_a, _r) &~ (_f)) | (((_v) << _f##_S) & (_f)))
                                                       ^
sys/dev/ath/ah_osdep.h:127:49: note: expanded from:
            (bus_space_handle_t)(_ah)->ah_sh, (_reg), (_val))
                                                       ^~~~

The AR_SCR_SLE_{WAKE,SLP,NORM} values are pre-shifted in ar5210reg.h and
ar5211reg.h, while they should be unshifted, like in ar5212reg.h.  Then,
when the OS_REG_RMW_FIELD() macro shifts them again, the values will
overflow, becoming effectively zero.

MFC after: 1 week
2011-12-21 17:16:43 +00:00
..
ah_regdomain These two are ath_hal regulatory domain updates from the Atheros 2011-07-20 12:46:58 +00:00
ar5210 Fix shift overflow problem in sys/dev/ath/ath_hal/ar5210/ar5210_power.c 2011-12-21 17:16:43 +00:00
ar5211 Fix shift overflow problem in sys/dev/ath/ath_hal/ar5210/ar5210_power.c 2011-12-21 17:16:43 +00:00
ar5212 The AR5413 datasheet specifies that AR_TxIntrReq should be set consistently 2011-10-25 23:28:16 +00:00
ar5312 Fix a corner case in the HAL debugging changes, where ah was NULL. 2011-09-30 05:17:57 +00:00
ar5416 Add the 11n chipset RF frontends to the linker set, even though they're not 2011-12-15 00:59:11 +00:00
ar9001 Implement the first part of the BB read workaround. 2011-10-18 03:01:41 +00:00
ar9002 Add the 11n chipset RF frontends to the linker set, even though they're not 2011-12-15 00:59:11 +00:00
ah_debug.h Add a new flag - HAL_DEBUG_UNMASKABLE - which always logs a debug message 2011-05-11 13:22:41 +00:00
ah_decode.h Add some more OS_MARK probes to the RX DMA setup/teardown code path. 2011-04-07 13:14:51 +00:00
ah_desc.h Add some 11n bits from the if_ath_tx 11n branch: 2011-10-25 23:09:07 +00:00
ah_devid.h Correct device id comments. 2011-11-11 00:48:41 +00:00
ah_diagcodes.h Reserve a new diagnostic code for the channel survey code I'll add soon. 2011-03-19 14:37:13 +00:00
ah_eeprom_9287.c Prepare for embedded use of the AR9285/AR9287. 2011-07-30 13:37:38 +00:00
ah_eeprom_9287.h Make sure the extended regdomain word is initialised. 2011-06-28 00:01:55 +00:00
ah_eeprom_v1.c Fix the eeprom set API method to return HAL_STATUS. 2011-05-14 15:12:02 +00:00
ah_eeprom_v1.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ah_eeprom_v3.c Fix the eeprom set API method to return HAL_STATUS. 2011-05-14 15:12:02 +00:00
ah_eeprom_v3.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ah_eeprom_v4k.c Remove the EEPROM minor >= 19 check for txgaintype; that's only needed for 2011-08-03 06:51:14 +00:00
ah_eeprom_v4k.h Bring over a pdadc calibration fix from ath9k - unused power detector 2011-04-22 10:57:46 +00:00
ah_eeprom_v14.c Introduce the FRAC_5G EEPROM parameter. 2011-07-30 13:45:12 +00:00
ah_eeprom_v14.h Introduce the FRAC_5G EEPROM parameter. 2011-07-30 13:45:12 +00:00
ah_eeprom.h Introduce the FRAC_5G EEPROM parameter. 2011-07-30 13:45:12 +00:00
ah_internal.h Introduce a work-around for issues with the AR5416 based MAC on SMP devices. 2011-11-09 22:39:44 +00:00
ah_regdomain.c Fix a corner case in the HAL debugging changes, where ah was NULL. 2011-09-30 05:17:57 +00:00
ah_regdomain.h Migrate the regulatory database definitions into separate header files 2011-03-10 03:13:56 +00:00
ah_soc.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ah.c Introduce a work-around for issues with the AR5416 based MAC on SMP devices. 2011-11-09 22:39:44 +00:00
ah.h Introduce a work-around for issues with the AR5416 based MAC on SMP devices. 2011-11-09 22:39:44 +00:00