ath12k_wmi_service_bitmap_copy() reads the service bitmap of the WMI_SERVICE_READY event as host u32 words. The firmware sends them as little-endian, so on big-endian hosts every service bit 0..127 ends up at a byte-swapped position in svc_map. One visible effect is WMI_TLV_SERVICE_BSS_CHANNEL_INFO_64 (88) being reported as unsupported. ath12k_mac_update_bss_chan_survey() then never sends WMI_PDEV_BSS_CHAN_INFO_REQUEST, active_time/busy_time of the operating channel stay frozen at the values of the initial scan and channel utilization is always 0. Convert the words with le32_to_cpu() like the ext/ext2 service bitmaps in ath12k_wmi_tlv_services_parser() already do. Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") Signed-off-by: Alexander Wilhelm --- drivers/net/wireless/ath/ath12k/wmi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c index f41138a7c68e..79ae92364a93 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.c +++ b/drivers/net/wireless/ath/ath12k/wmi.c @@ -681,13 +681,14 @@ static int ath12k_pull_service_ready_tlv(struct ath12k_base *ab, * 4-byte word. */ static void ath12k_wmi_service_bitmap_copy(struct ath12k_wmi_pdev *wmi, - const u32 *wmi_svc_bm) + const __le32 *wmi_svc_bm) { int i, j; for (i = 0, j = 0; i < WMI_SERVICE_BM_SIZE && j < WMI_MAX_SERVICE; i++) { do { - if (wmi_svc_bm[i] & BIT(j % WMI_SERVICE_BITS_IN_SIZE32)) + if (le32_to_cpu(wmi_svc_bm[i]) & + BIT(j % WMI_SERVICE_BITS_IN_SIZE32)) set_bit(j, wmi->wmi_ab->svc_map); } while (++j % WMI_SERVICE_BITS_IN_SIZE32); } --- base-commit: e7f0f07b3267676087a62949a35ae919a9a8e218 change-id: 20261119-fix-wmi-service-bitmap-endianness-1666ca7a5a56 Best regards, -- Alexander Wilhelm