wifi: wilc1000: get correct length of string WID from received config packet
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 20 Jul 2022 16:03:04 +0000 (16:03 +0000)
committerKalle Valo <kvalo@kernel.org>
Wed, 27 Jul 2022 12:58:10 +0000 (15:58 +0300)
commit12fb1ae537a416b77ac9cbaefa6dd9dacaa27ed0
tree01b9025e8a892171a09f570d9b185755cc60948d
parent33d4a577c7b184bac755deb68fe6e84ae009d70f
wifi: wilc1000: get correct length of string WID from received config packet

For string type WID packet, the data length is received as 16-bit value
so use 'get_unaligned_le16' conversion API to extract the correct length.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220720160302.231516-5-ajay.kathat@microchip.com
drivers/net/wireless/microchip/wilc1000/wlan_cfg.c