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:
proski 2009-05-07 19:35:22 +00:00
parent cf2afadc08
commit 0e32b2c2a3
1 changed files with 5 additions and 0 deletions

View File

@ -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, &centers);
/* Trim numPiers for the number of populated channel Piers */