]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wfx: fix wrong bytes order
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 12 May 2020 15:04:01 +0000 (17:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 11:49:42 +0000 (13:49 +0200)
commit4065fab24d37b1ef137f7dc205934de46dcc0827
treef479daf0e107160479d8c0aaad7f8cf8967bb5b4
parent771f9bca3c6480e521bd18b64bcecaace1e3cda9
staging: wfx: fix wrong bytes order

The field wakeup_period_max from struct hif_mib_beacon_wake_up_period is
a u8. So, assigning it a __le16 produces a nasty bug on big-endian
architectures.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200512150414.267198-5-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/hif_tx_mib.c