wifi: mwifiex: fix endian conversion
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Sep 2022 19:29:08 +0000 (21:29 +0200)
committerKalle Valo <kvalo@kernel.org>
Wed, 7 Sep 2022 08:02:59 +0000 (11:02 +0300)
commite1ff3b48996a2db47579b1817113736f66b18b1c
tree5230b07358931223cbf195af85110427db48ee8c
parent3208ae450248f2f61f272a2c0e85c303663b0912
wifi: mwifiex: fix endian conversion

Clearly the value should be converted and then compared,
not the result of the comparison be converted. No binary
changes on x86.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220904212910.a32e45adb2b2.I8c966b07c0bf7be4485967b044d9dad3f4772a27@changeid
drivers/net/wireless/marvell/mwifiex/sta_event.c