Stanislaw Gruszka <[email protected]> wrote: > My compiler complains about: > > drivers/net/wireless/realtek/rtw88/phy.c: In function > ‘rtw_phy_rf_power_2_rssi’: > drivers/net/wireless/realtek/rtw88/phy.c:430:26: warning: array subscript is > above array bounds [-Warray-bounds] > linear = db_invert_table[i][j]; > > According to comment power_db should be in range 1 ~ 96 . > To fix add check for boundaries before access the array. > > Signed-off-by: Stanislaw Gruszka <[email protected]> > Acked-by: Yan-Hsuan Chuang <[email protected]>
Patch applied to wireless-drivers.git, thanks. 8a03447dd311 rtw88: fix subscript above array bounds compiler warning -- https://patchwork.kernel.org/patch/10930671/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
