mirror of
https://github.com/proski/madwifi
synced 2024-11-22 06:21:47 +03:00
Fix a warning in ar5416GetGainBoundariesAndPdadcs
If numXpdGains is 0, minPwrT4[0] would not be initialized. Make sure numXpdGains is more than 0. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4018 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
cf2afadc08
commit
0e32b2c2a3
@ -2596,6 +2596,11 @@ ar5416GetGainBoundariesAndPdadcs(struct ath_hal *ah,
|
||||
int16_t minDelta = 0;
|
||||
CHAN_CENTERS centers;
|
||||
|
||||
if (numXpdGains > 0) {
|
||||
HALASSERT(0);
|
||||
return;
|
||||
}
|
||||
|
||||
ar5416GetChannelCenters(ah, chan, ¢ers);
|
||||
|
||||
/* Trim numPiers for the number of populated channel Piers */
|
||||
|
Loading…
Reference in New Issue
Block a user