RE: [PATCH rtw-next v7 3/3] wifi: rtw88: rtw8822c: Replace custom DAC IQ sorting with kernel sort

From: Ping-Ke Shih

Date: Fri Aug 28 2026 - 04:24:25 EST


Arsenii Pashchenko <ulijg308@xxxxxxxxx> wrote:
> Replace the custom, nested bubble-sort logic in the calibration loop
> with direct calls to the kernel's optimized heapsort implementation
> inside rtw8822c_dac_cal_iq_search().
>
> Implement a safe, overflow-proof s32 comparator using the subtraction
> of relationals pattern. Since the input values are already properly
> sign-extended into signed arrays, the custom circular index sorting
> rules and helper functions completely disappear, reducing lines of code.
>
> Signed-off-by: Arsenii Pashchenko <ulijg308@xxxxxxxxx>

I guess v7 has no change from v6. Please remember take my acked-by.

Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>