mwifiex: endian bug in mwifiex_drv_change_adhoc_chan()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 1 Mar 2012 07:22:30 +0000 (10:22 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 5 Mar 2012 20:24:14 +0000 (15:24 -0500)
commit380aeef8941c6b8a3e8de86b5ca000ca986e3b17
treee9c9d9a9e4ca14bfae3794f4ba139043c5af4a29
parent62ebeed8d00aef75eac4fd6c161cae75a41965ca
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 <dan.carpenter@oracle.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/sta_ioctl.c