diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2015-08-03 15:56:12 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-08-13 15:31:21 +0300 |
commit | 7c24d086ef9ccbffc46f5f9e2680f292ca356166 (patch) | |
tree | 2f43163f96bd84fca7aedcc28dd8ae2a09369207 /drivers/net/wireless/rtlwifi/rtl8723be | |
parent | e41c513599187bd100644566bde86541c01db1d6 (diff) | |
download | op-kernel-dev-7c24d086ef9ccbffc46f5f9e2680f292ca356166.zip op-kernel-dev-7c24d086ef9ccbffc46f5f9e2680f292ca356166.tar.gz |
rtlwifi: rtl8723ae: rtl8723be: rtl8723com: Fix firmware header endian issues
The drivers are converted to use the common firmware header struct.
Because the old header definition failed to indicate that the multi-byte
entries should be little endian, several problems were thus exposed.
These are fixed.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8723be')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723be/sw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8723be/sw.c b/drivers/net/wireless/rtlwifi/rtl8723be/sw.c index 1017f02..3ba1e32 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723be/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8723be/sw.c @@ -209,9 +209,9 @@ bool rtl8723be_get_btc_status(void) return true; } -static bool is_fw_header(struct rtl8723e_firmware_header *hdr) +static bool is_fw_header(struct rtlwifi_firmware_header *hdr) { - return (hdr->signature & 0xfff0) == 0x5300; + return (le16_to_cpu(hdr->signature) & 0xfff0) == 0x5300; } static struct rtl_hal_ops rtl8723be_hal_ops = { |