linux-sg2042/drivers/net/wireless/realtek/rtlwifi/rtl8723com
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
..
Makefile Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
dm_common.c
dm_common.h
fw_common.c rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
fw_common.h rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
main.c
phy_common.c rtlwifi: rtl8723-common: Remove all instances of DBG_EMERG 2016-12-30 15:54:23 +02:00
phy_common.h