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:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user