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
..
2009-09-22 14:00:10 -07:00
2009-10-13 11:48:18 -07:00
2009-10-13 11:48:18 -07:00
2009-10-13 11:48:18 -07:00
2009-10-17 23:44:47 -07:00
2009-10-06 15:22:55 -07:00
2009-10-27 16:48:19 -04:00
2009-10-13 11:48:18 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-10-13 11:48:18 -07:00
2009-10-13 11:48:18 -07:00
2008-11-25 18:25:32 -08:00
2009-04-04 16:51:14 -07:00
2009-08-12 23:03:00 -07:00
2009-08-12 22:53:28 -07:00
2009-08-12 23:03:01 -07:00
2009-10-15 00:19:31 -07:00
2009-10-15 00:18:27 -07:00
2008-09-22 19:27:10 -07:00
2009-10-11 23:30:16 -07:00
2009-10-11 23:30:16 -07:00
2009-10-13 11:48:18 -07:00
2009-10-13 11:48:18 -07:00
2009-07-06 18:54:51 -07:00
2009-10-13 11:48:18 -07:00
2009-09-23 07:39:43 -07:00
2008-11-25 18:23:59 -08:00
2009-02-04 16:43:44 -08:00
2009-10-12 23:54:05 -07:00
2009-10-13 11:48:18 -07:00
2009-02-26 21:02:19 -08:00
2008-11-25 18:24:57 -08:00
2009-04-16 02:20:08 -07:00
2009-09-07 01:56:52 -07:00
2009-01-06 10:47:44 -08:00
2009-10-13 11:48:18 -07:00
2009-10-02 09:55:19 -07:00
2009-07-06 13:05:13 -07:00
2009-10-13 11:48:18 -07:00
2009-10-13 11:48:18 -07:00
2009-09-23 07:39:43 -07:00
2009-07-20 08:23:26 -07:00
2008-11-25 18:24:38 -08:00
2009-04-16 02:20:16 -07:00
2009-09-03 20:02:13 -07:00
2009-04-16 02:20:21 -07:00
2009-09-21 15:14:58 +02:00
2009-10-18 18:52:53 -07:00
2009-10-07 01:10:46 -07:00
2008-11-10 15:11:56 -05:00
2009-04-29 17:32:34 -07:00
2009-08-02 12:20:40 -07:00
2009-10-13 11:48:18 -07:00
2009-10-13 11:48:18 -07:00
2009-10-13 11:48:18 -07:00
2009-10-13 11:48:18 -07:00
2009-10-01 15:14:54 -07:00
2009-10-13 11:48:18 -07:00
2009-10-01 15:14:55 -07:00
2009-09-19 13:13:17 -07:00
2009-09-15 09:37:12 -07:00
2009-03-27 00:46:48 -07:00
2008-11-25 18:25:49 -08:00
2009-10-07 03:37:39 -07:00
2009-10-07 03:37:39 -07:00
2009-10-13 11:48:18 -07:00
2009-10-14 01:19:46 -07:00
2009-01-11 00:06:36 -08:00