From: Dan Carpenter Date: Thu, 1 Mar 2012 07:22:30 +0000 (+0300) Subject: mwifiex: endian bug in mwifiex_drv_change_adhoc_chan() X-Git-Tag: v3.4-rc1~177^2~108^2~171 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=380aeef8941c6b8a3e8de86b5ca000ca986e3b17;p=pandora-kernel.git mwifiex: endian bug in mwifiex_drv_change_adhoc_chan() In mwifiex_drv_change_adhoc_chan() we pass channel to mwifiex_bss_ioctl_ibss_channel() which sets the high 16 bits. This works on little endian systems but not on big endian ones. I've changed mwifiex_drv_change_adhoc_chan() to use a 16 bit variable. This matches the other functions in the file. I considered changing mwifiex_change_adhoc_chan() as well but it turns out that the function isn't implemented so I just removed the definition. Signed-off-by: Dan Carpenter Acked-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed