brcmfmac: Fix incorrect type assignments for keep-alive
authorLoic Poulain <loic.poulain@linaro.org>
Wed, 8 Dec 2021 08:55:08 +0000 (09:55 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Dec 2021 19:00:37 +0000 (21:00 +0200)
commit3db30b79028983179d3b720e367c898ce896516e
tree38ffa5a99864f428595977699a1b22ae35a1bd43
parent05db148ee9a7c7d2a690ff2862fac77be06ce667
brcmfmac: Fix incorrect type assignments for keep-alive

cpu_to_le16 has been used for all keep-alive fields, but 'perdio_msec'
is a 32-bit field and 'keep_alive_id' a 8-bit one. Fix that.

Fixes: 7a6cfe28ae3e ("brcmfmac: Configure keep-alive packet on suspend")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/1638953708-29192-1-git-send-email-loic.poulain@linaro.org
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c