wifi: wilc1000: correct CRC7 calculation
authorDavid Mosberger-Tang <davidm@egauge.net>
Wed, 7 Feb 2024 05:07:42 +0000 (05:07 +0000)
committerKalle Valo <kvalo@kernel.org>
Mon, 12 Feb 2024 15:37:40 +0000 (17:37 +0200)
commitc08a986344a5eb80ae3651f33d0f386cd9e97252
tree696949463df06021eaae4dd37566e9f05bad23fd
parent162bf67f74c71d56889c1c938d7901cfb76e2cbd
wifi: wilc1000: correct CRC7 calculation

Document

    ATWILC1000/ATWILC3000
    Baremetal Wi-Fi/BLE Link Controller Software Design Guide

    https://tinyurl.com/yer2xhyc

says that bit 0 of the CRC7 code must always be a 1.

I confirmed that today with a logic analyzer: setting bit 0 causes
wilc1000 to accept a command with CRC7 enabled, whereas clearing bit 0
causes wilc1000 to reject the command with a CRC error.

Signed-off-by: David Mosberger-Tang <davidm@egauge.net>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240207050736.2717641-1-davidm@egauge.net
drivers/net/wireless/microchip/wilc1000/spi.c