aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs
diff options
context:
space:
mode:
authorFabio Aiuto <fabioaiuto83@gmail.com>2021-08-07 11:48:00 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-10 12:12:19 +0200
commite3678dc1ea40425b7218c20e2fe7b00a72f23a41 (patch)
tree5304512eb1127846169dabd67913bffca78ec8dd /drivers/staging/rtl8723bs
parentstaging: rtl8723bs: beautify function ODM_PhyStatusQuery() (diff)
downloadlinux-dev-e3678dc1ea40425b7218c20e2fe7b00a72f23a41.tar.xz
linux-dev-e3678dc1ea40425b7218c20e2fe7b00a72f23a41.zip
staging: rtl8723bs: fix right side of condition
TxNum value is compared against ODM_RF_PATH_D, which is inconsistent. Compare it against RF_MAX_TX_NUM, as in other places in the same file. Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com> Link: https://lore.kernel.org/r/147631fe6f4f5de84cc54a62ba71d739b92697be.1628329348.git.fabioaiuto83@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r--drivers/staging/rtl8723bs/hal/hal_com_phycfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
index 03c174aab08d..a47a0a1cae22 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
@@ -350,7 +350,7 @@ static void PHY_StoreTxPowerByRateNew(
if (RfPath > ODM_RF_PATH_D)
return;
- if (TxNum > ODM_RF_PATH_D)
+ if (TxNum > RF_MAX_TX_NUM)
return;
for (i = 0; i < rateNum; ++i) {