staging: rtl8192e: adjust size of RxMIMOSignalStrength

The array RxMIMOSignalStrength in struct rtllib_rx_stats is always accessed
with indices in the range i = 0; i < 2. We can reduce the size from 4 to 2.

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-6-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Michael Straube 2024-08-31 12:08:09 +02:00 committed by Greg Kroah-Hartman
parent ad796f708d
commit 357c468552

View File

@ -480,7 +480,7 @@ struct rtllib_rx_stats {
bool bFirstMPDU;
bool contain_htc;
u32 RxPWDBAll;
u8 RxMIMOSignalStrength[4];
u8 RxMIMOSignalStrength[2];
s8 RxMIMOSignalQuality[2];
bool bPacketMatchBSSID;
bool bIsCCK;