wifi: wl18xx: add some missing endian conversions

This caused sparse warnings, and clearly is needed per
how other firmware interfaces behave.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220904212910.2b5cb713cf4b.Ibabba2deb7bb22863d3a134e7a3333422d7eff17@changeid
This commit is contained in:
Johannes Berg 2022-09-04 21:29:05 +02:00 committed by Kalle Valo
parent a08e3518bf
commit 9d5b665775
1 changed files with 4 additions and 4 deletions

View File

@ -131,10 +131,10 @@ int wl18xx_process_mailbox_events(struct wl1271 *wl)
if (vector & TIME_SYNC_EVENT_ID)
wlcore_event_time_sync(wl,
mbox->time_sync_tsf_high_msb,
mbox->time_sync_tsf_high_lsb,
mbox->time_sync_tsf_low_msb,
mbox->time_sync_tsf_low_lsb);
le16_to_cpu(mbox->time_sync_tsf_high_msb),
le16_to_cpu(mbox->time_sync_tsf_high_lsb),
le16_to_cpu(mbox->time_sync_tsf_low_msb),
le16_to_cpu(mbox->time_sync_tsf_low_lsb));
if (vector & RADAR_DETECTED_EVENT_ID) {
wl1271_info("radar event: channel %d type %s",