Thread (9 messages) 9 messages, 3 authors, 2016-07-08

Re: mwifiex: Fixed endianness for event TLV type TLV_BTCOEX_WL_SCANTIME

From: Kalle Valo <hidden>
Date: 2016-06-29 15:54:03
Also in: linux-next, lkml

Prasun Maiti [off-list ref] wrote:
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 <redacted>
I would like to see Reviewed-by from someone else before I apply this.

-- 
Sent by pwcli
https://patchwork.kernel.org/patch/9179811/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help