From 0e32b2c2a384391879c48485521cf14c98cdaa7e Mon Sep 17 00:00:00 2001 From: proski Date: Thu, 7 May 2009 19:35:22 +0000 Subject: [PATCH] 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 --- ath_hal/ar5416/ar5416_reset.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- 2.35.1