android_kernel_xiaomi_sm8350/drivers/net/wireless/wl12xx
Luciano Coelho d0f63b2021 wl1271: fix endianess issues
We were not handling endianess correctly.  The wl1271 chip runs on
little-endian values.  This patch makes sure that all the communication with
the wl1271 firmware is done in little-endian by using cpu_to_le* and
le*_to_cpu where appropriate.

Also, all the struct definitions for data exchanged with the firmware has
been changed to use __le16/32 types instead of u16/32.

This fixes a few sparse warnings, such as these:

drivers/net/wireless/wl12xx/wl1271_cmd.c:554:42: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl12xx/wl1271_cmd.c:555:42: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl12xx/wl1271_cmd.c:577:58: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl12xx/wl1271_cmd.c:579:58: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl12xx/wl1271_cmd.c:676:18: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl12xx/wl1271_cmd.c:787:22: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl12xx/wl1271_cmd.c:789:21: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl12xx/wl1271_tx.c:98:47: warning: incorrect type in argument 1 (different base types)
drivers/net/wireless/wl12xx/wl1271_acx.c:932:32: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl12xx/wl1271_boot.c:191:32: warning: incorrect type in argument 1 (different base types)
drivers/net/wireless/wl12xx/wl1271_boot.c:197:38: warning: incorrect type in argument 1 (different base types)
drivers/net/wireless/wl12xx/wl1271_boot.c:199:37: warning: incorrect type in argument 1 (different base types)
drivers/net/wireless/wl12xx/wl1271_init.c:255:40: warning: incorrect type in assignment (different base types)
drivers/net/wireless/wl12xx/wl1271_init.c:275:53: warning: incorrect type in assignment (different base types)

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-10-27 16:48:19 -04:00
..
Kconfig
Makefile
wl12xx_80211.h wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1251_acx.c
wl1251_acx.h
wl1251_boot.c
wl1251_boot.h
wl1251_cmd.c
wl1251_cmd.h
wl1251_debugfs.c
wl1251_debugfs.h
wl1251_event.c
wl1251_event.h
wl1251_init.c
wl1251_init.h
wl1251_io.c
wl1251_io.h
wl1251_main.c wl1251: rename spi device to wl1251 2009-10-27 16:48:17 -04:00
wl1251_ps.c
wl1251_ps.h
wl1251_reg.h
wl1251_rx.c
wl1251_rx.h
wl1251_sdio.c
wl1251_spi.c wl1251: rename spi device to wl1251 2009-10-27 16:48:17 -04:00
wl1251_spi.h
wl1251_tx.c
wl1251_tx.h
wl1251.h
wl1271_acx.c wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_acx.h wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_boot.c wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_boot.h wl1271: RefClk configuration 2009-10-27 16:48:04 -04:00
wl1271_cmd.c wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_cmd.h wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_conf.h wl1271: Added 5 GHz parameters for wl1273 2009-10-27 16:48:10 -04:00
wl1271_debugfs.c
wl1271_debugfs.h
wl1271_event.c wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_event.h wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_init.c wl1271: Added support to scan on 5 GHz band 2009-10-27 16:48:10 -04:00
wl1271_init.h wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_main.c wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_ps.c wl1271: Implement beacon early termination support 2009-10-27 16:48:09 -04:00
wl1271_ps.h wl1271: Implement delayed entry into ELP 2009-10-27 16:47:49 -04:00
wl1271_reg.h wl1271: Add structure for firmware configuration values 2009-10-27 16:48:07 -04:00
wl1271_rx.c wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_rx.h wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_spi.c wl1271: fix sparse warnings about undeclared functions 2009-10-27 16:48:19 -04:00
wl1271_spi.h wl1271: Remove outdated SPI functions 2009-10-27 16:48:05 -04:00
wl1271_tx.c wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271_tx.h wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00
wl1271.h wl1271: fix endianess issues 2009-10-27 16:48:19 -04:00