]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: Refactor setCCKFilterCoefficient to remove duplicated rtw_write8...
authorBera Yüzlü <b9788213@gmail.com>
Sun, 8 Feb 2026 10:54:24 +0000 (13:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 14:08:40 +0000 (15:08 +0100)
commite50ecef464e87736ba0beaddaba8bd8769c73c78
tree95fb8b23fc15ad4ebcc05738e9e3a2431196407a
parentd1c2574d03cced16a9b363807b41d599285e3e60
staging: rtl8723bs: Refactor setCCKFilterCoefficient to remove duplicated rtw_write8() calls

Previously, the function used 16 individual and repetitive rtw_write8()
calls (8 for each channel condition) to set the filter coefficients.

The new implementation uses a table pointer to select the appropriate
swingtable and iterates through the 8-byte coefficient array using a
single for loop. This achieves the same result without changing logic.

Signed-off-by: Bera Yüzlü <b9788213@gmail.com>
Link: https://patch.msgid.link/aYhrYLYDsxAzWfd1@BERA.localdomain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c