aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/srom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/srom.c b/drivers/net/wireless/brcm80211/brcmsmac/srom.c
index 0539a6a831c5..3a9b81db8e63 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/srom.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/srom.c
@@ -835,6 +835,8 @@ static int otp_read_pci(struct si_pub *sih, u16 *buf, uint nwords)
835 */ 835 */
836 return -ENODATA; 836 return -ENODATA;
837 837
838 /* fixup the endianness so crc8 will pass */
839 cpu_to_le16_buf(buf, sz);
838 if (crc8(brcms_srom_crc8_table, (u8 *) buf, sz * 2, 840 if (crc8(brcms_srom_crc8_table, (u8 *) buf, sz * 2,
839 CRC8_INIT_VALUE) != CRC8_GOOD_VALUE(brcms_srom_crc8_table)) 841 CRC8_INIT_VALUE) != CRC8_GOOD_VALUE(brcms_srom_crc8_table))
840 err = -EIO; 842 err = -EIO;