staging: rtl8723bs: use MAX_RF_PATH_NUM as ceiling to rf path index
authorFabio Aiuto <fabioaiuto83@gmail.com>
Sat, 7 Aug 2021 09:48:11 +0000 (11:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Aug 2021 10:13:03 +0000 (12:13 +0200)
commitc4c7c7182ea4dc15d4fe53b5e9611c1fd35e1c57
treefa981372776467955ad931fca7549c8bd6029c9e
parentda4c99c261bca220f364fc630e8987a60d605e8d
staging: rtl8723bs: use MAX_RF_PATH_NUM as ceiling to rf path index

use MAX_RF_PATH_NUM as ceiling to rf path index.
Only 2 rf paths are used, not 4. Remove also
TX_POWER_BY_RATE_NUM_RF left unused.

Use RF_PATH_A as loop starting point instead of
hardcoded 0, as in other places.

Related comments modified accordingly.

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/88da23cef57131b39a63b2757b91f959553dd65d.1628329348.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
drivers/staging/rtl8723bs/include/hal_data.h
drivers/staging/rtl8723bs/include/hal_pg.h