linux/drivers/net/wireless/realtek/rtlwifi
Larry Finger 89d32c9071 rtlwifi: Download firmware as bytes rather than as dwords
The firmware is read from disk as a little-endian byte string. The code
that loads the firmware into the device transfers it as 4-byte quantities.
The routines that write multi-byte quantities on BE hardware assume that
the data are in CPU order, and automatically do the conversion to the LE
order required by the device. As a result, the firmware is transmitted
incorrectly. Rather than do multiple byte swaps on the data, the download
routine is revised to transmit bytes rather than dwords. Although the
number of I/O operations is increased, the firmware is not often loaded.

All drivers have the same bug, and use essentially the same code to
download firmware. These routines have been moved into rtlwifi.

Some CamelCase variables have been renamed.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-01-20 12:06:09 +02:00
..
btcoexist Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
rtl8188ee rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
rtl8192c rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
rtl8192ce rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
rtl8192cu rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
rtl8192de rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
rtl8192ee rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
rtl8192se rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
rtl8723ae rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
rtl8723be rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
rtl8723com rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
rtl8821ae rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
base.c rtlwifi: Remove debugging entry in sysfs 2017-01-20 12:05:17 +02:00
base.h rtlwifi: Remove debugging entry in sysfs 2017-01-20 12:05:17 +02:00
cam.c rtlwifi: Remove RT_TRACE messages that use DBG_EMERG 2016-12-30 15:54:20 +02:00
cam.h
core.c wireless-drivers-next patches for 4.11 2017-01-02 15:23:34 -05:00
core.h
debug.c rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
debug.h rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
efuse.c rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
efuse.h rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
Kconfig
Makefile Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
pci.c rtlwifi: Remove debugging entry in sysfs 2017-01-20 12:05:17 +02:00
pci.h rtlwifi: Remove address of Free Software Foundation 2016-11-17 08:41:51 +02:00
ps.c rtlwifi: Remove RT_TRACE messages that use DBG_EMERG 2016-12-30 15:54:20 +02:00
ps.h rtlwifi: Remove unused parameter from rtl_ps_set_rf_state() 2016-07-05 17:31:41 +03:00
pwrseqcmd.h
rc.c rtlwifi: Remove RT_TRACE messages that use DBG_EMERG 2016-12-30 15:54:20 +02:00
rc.h
regd.c rtlwifi: fix spelling mistake: "contry" -> "country" 2016-12-30 15:57:25 +02:00
regd.h
stats.c rtlwifi: use s8 instead of char 2016-06-29 18:48:15 +03:00
stats.h rtlwifi: use s8 instead of char 2016-06-29 18:48:15 +03:00
usb.c rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
usb.h rtlwifi: Remove address of Free Software Foundation 2016-11-17 08:41:51 +02:00
wifi.h rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00