]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtlwifi: 8192de: correct checking of IQK reload
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 1 Aug 2022 11:33:45 +0000 (19:33 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 9 Aug 2022 05:59:55 +0000 (08:59 +0300)
commitbbaa025638539f5e807ea1abdc5f413b42744fe8
treebf9bfdd344d7fa2d0390d08054ff3a1f05666e74
parent115cf2a2e9ea33932422d758f159b26857f08dfb
wifi: rtlwifi: 8192de: correct checking of IQK reload

Since IQK could spend time, we make a cache of IQK result matrix that looks
like iqk_matrix[channel_idx].val[x][y], and we can reload the matrix if we
have made a cache. To determine a cache is made, we check
iqk_matrix[channel_idx].val[0][0].

The initial commit cf77a1d47a74 ("rtlwifi: rtl8192de: Merge phy routines")
make a mistake that checks incorrect iqk_matrix[channel_idx].val[0] that
is always true, and this mistake is found by commit da74f1eefe4f
("wifi: rtlwifi: remove always-true condition pointed out by GCC 12"), so
I recall the vendor driver to find fix and apply the correctness.

Fixes: cf77a1d47a74 ("rtlwifi: rtl8192de: Merge phy routines")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220801113345.42016-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c