From d06b500c232326f9a9d96facbcdc3181219aedf5 Mon Sep 17 00:00:00 2001 From: Andrew Mann Date: Mon, 1 Jun 2015 20:21:17 +0000 Subject: [PATCH] Fix debug message if conditions. These were using if (BAND_ON_5G) type logic, but these values are values from an enum and need to be compared to something for proper testing. --- hal/rtl8812a/rtl8812a_phycfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/rtl8812a/rtl8812a_phycfg.c b/hal/rtl8812a/rtl8812a_phycfg.c index 23072d6..a451d01 100644 --- a/hal/rtl8812a/rtl8812a_phycfg.c +++ b/hal/rtl8812a/rtl8812a_phycfg.c @@ -1266,9 +1266,9 @@ PHY_GetPowerLimitValue( break; } - if ( BAND_ON_2_4G && rateSection > 3 ) + if ( Band == BAND_ON_2_4G && rateSection > 3 ) DBG_871X("Wrong rate 0x%x: No VHT in 2.4G Band\n", DataRate ); - if ( BAND_ON_5G && rateSection == 0 ) + if ( Band == BAND_ON_5G && rateSection == 0 ) DBG_871X("Wrong rate 0x%x: No CCK in 5G Band\n", DataRate ); // workaround for wrong index combination to obtain tx power limit,