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>
This commit is contained in:
Larry Finger
2015-08-03 15:56:12 -05:00
committed by Kalle Valo
parent e41c513599
commit 7c24d086ef
5 changed files with 10 additions and 31 deletions

View File

@@ -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 = {