1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-08-16 08:34:15 +02:00

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.

This commit is contained in:
Andrew Mann 2015-06-01 20:21:17 +00:00
parent aedcffa5f9
commit d06b500c23

View File

@ -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,