From: proski Date: Thu, 7 May 2009 19:35:22 +0000 (+0000) Subject: Fix a warning in ar5416GetGainBoundariesAndPdadcs X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=0e32b2c2a384391879c48485521cf14c98cdaa7e;p=madwifi%2F.git 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 --- diff --git a/ath_hal/ar5416/ar5416_reset.c b/ath_hal/ar5416/ar5416_reset.c index ef8b725..af59f64 100644 --- a/ath_hal/ar5416/ar5416_reset.c +++ b/ath_hal/ar5416/ar5416_reset.c @@ -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 */