Commit ad796f70 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: rtl8192e: adjust size of brfpath_rxenable for new RF90_PATH_MAX

The array brfpath_rxenable in struct r8192_priv 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
brfpath_rxenable to 2. Use RF90_PATH_MAX instead of a hard-coded size.
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Tested-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240831100809.29173-5-straube.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 12ce200d
...@@ -300,7 +300,7 @@ struct r8192_priv { ...@@ -300,7 +300,7 @@ struct r8192_priv {
u32 rf_reg_0value[4]; u32 rf_reg_0value[4];
u8 num_total_rf_path; u8 num_total_rf_path;
bool brfpath_rxenable[4]; bool brfpath_rxenable[RF90_PATH_MAX];
bool tx_pwr_data_read_from_eeprom; bool tx_pwr_data_read_from_eeprom;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment