diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-09-04 22:29:05 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-09-07 11:02:58 +0300 |
commit | 9d5b665775d6fdfca5ec4ccadcbfda614e2e0a9c (patch) | |
tree | 0ffe0bd004f5e09c278796e226ade9fc505647d4 /drivers/net | |
parent | a08e3518bf45eec8eceff4704a04911057cbe39d (diff) | |
download | linux-9d5b665775d6fdfca5ec4ccadcbfda614e2e0a9c.tar.xz |
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
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/event.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/event.c b/drivers/net/wireless/ti/wl18xx/event.c index 13d78ada4bb6..34d95f458e1a 100644 --- a/drivers/net/wireless/ti/wl18xx/event.c +++ b/drivers/net/wireless/ti/wl18xx/event.c @@ -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", |