Re: [PATCH v2] wifi: ath12k: fix scan command endianness on big endian
Rameshkumar Sundaram <[email protected]> Thu, 16 Jul 2026 22:42:39 +0530
| Newsgroups | org.infradead.lists.ath12k,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
On 7/3/2026 1:05 PM, Alexander Wilhelm wrote: > ath12k_wmi_scan_req_arg stores scan parameters in CPU-native byte order, > while ath12k_wmi_send_scan_start_cmd() writes them into a WMI command > buffer whose contents must be in little-endian format. The existing code > copies the channel list and writes s_ssid and hint_bssid related values to > the command buffer without endian conversion. As a result, scan requests > contain invalid parameters on big-endian systems and fail. > > Convert the channel list as well as the s_ssid and hint_bssid related > values to little-endian before writing them to the WMI command buffer. This > preserves the existing behaviour on little-endian systems while fixing scan > requests on big-endian architectures. > > Signed-off-by: Alexander Wilhelm <[email protected]> Reviewed-by: Rameshkumar Sundaram <[email protected]>