]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: rtl8192e: adjust size of trsw_gain_X for new RF90_PATH_MAX
authorMichael Straube <straube.linux@gmail.com>
Sat, 31 Aug 2024 10:08:07 +0000 (12:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2024 08:31:56 +0000 (10:31 +0200)
commit12ce200da92a8122132f3b5dee506575b9d5fbba
treeebe7ce7d7ab0b567e7e55f17af4408edfa7d36f7
parent24f7977e83cda19cd34fe69a12ceb881dc632d47
staging: rtl8192e: adjust size of trsw_gain_X for new RF90_PATH_MAX

The array trsw_gain_X in struct phy_sts_ofdm_819xpci is always accessed by
indices in the range i = 0; i < RF90_PATH_MAX. A previous patch changed the
value of RF90_PATH_MAX from 4 to 2, so we can reduce the size of
trsw_gain_X to 2. Use RF90_PATH_MAX instead of a hard-coded size.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240831100809.29173-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h