Fix a warning in ar5416GetGainBoundariesAndPdadcs
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 7 May 2009 19:35:22 +0000 (19:35 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 7 May 2009 19:35:22 +0000 (19:35 +0000)
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

index ef8b72590416b9e07b1e155ac265c4d9400da3fc..af59f645a3c7bdaae951099919a1a033144f4c4b 100644 (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 */