mwifiex: Fix endianness for event TLV type TLV_BTCOEX_WL_SCANTIME
authorPrasun Maiti <prasunmaiti87@gmail.com>
Thu, 30 Jun 2016 08:31:23 +0000 (14:01 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 8 Jul 2016 13:46:43 +0000 (16:46 +0300)
commitc18b104dd2495da60ec92f40e14559591644cc3a
tree56b98099f8e1064144d1249f9c8b4c7307447b0a
parentdba8fbc67ecd193590a72e960e9f5a6578b8bae6
mwifiex: Fix endianness for event TLV type TLV_BTCOEX_WL_SCANTIME

The two members min_scan_time and max_scan_time of structure
"mwifiex_ie_types_btcoex_scan_time" are of two bytes each. The values
are assigned directtly from firmware without endian conversion handling.
So, wrong datas will get saved in big-endian systems.

This patch converts the values into cpu's byte order before assigning them
into the local members.

Signed-off-by: Prasun Maiti <prasunmaiti87@gmail.com>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/fw.h
drivers/net/wireless/marvell/mwifiex/sta_event.c
This page took 0.02471 seconds and 5 git commands to generate.