mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 21:52:04 +00:00
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: 7a6cfe28ae
("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
This commit is contained in:
parent
05db148ee9
commit
3db30b7902
@ -3908,9 +3908,9 @@ static int brcmf_keepalive_start(struct brcmf_if *ifp, unsigned int interval)
|
||||
|
||||
/* Configure Null function/data keepalive */
|
||||
kalive.version = cpu_to_le16(1);
|
||||
kalive.period_msec = cpu_to_le16(interval * MSEC_PER_SEC);
|
||||
kalive.period_msec = cpu_to_le32(interval * MSEC_PER_SEC);
|
||||
kalive.len_bytes = cpu_to_le16(0);
|
||||
kalive.keep_alive_id = cpu_to_le16(0);
|
||||
kalive.keep_alive_id = 0;
|
||||
|
||||
ret = brcmf_fil_iovar_data_set(ifp, "mkeep_alive", &kalive, sizeof(kalive));
|
||||
if (ret)
|
||||
|
Loading…
Reference in New Issue
Block a user