mwifiex: remove redundant code in set channel path
authorAmitkumar Karwar <akarwar@marvell.com>
Sat, 14 Jul 2012 03:09:30 +0000 (20:09 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Jul 2012 19:11:32 +0000 (15:11 -0400)
commit1f45b39ececbdfb13a7bf4d2f644d2e89a8b415f
treef57153b22125afc542f0ecc053a7df285e4aac4a
parent530275e52b00e04018fb20e83377e0572944ea97
mwifiex: remove redundant code in set channel path

1) Recently we removed set_channel cfg80211 handler. Also, cfg80211
blocks ibss connection requests if ibss network is already started
/joined. Hence the code to restart ibss network in new channel
(mwifiex_drv_change_adhoc_chan() function) becomes redundant.

2) mwifiex_bss_set_channel() function is redundant. It does some
error checking and calculate adhoc start band and adhoc channel.
Cfg80211 already takes care of error checking and provides correct
channel information to the driver. Adhoc start band is already
calculated in mwifiex_set_rf_channel() function.

Other associated code is also removed in this patch.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/fw.h
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/sta_cmd.c
drivers/net/wireless/mwifiex/sta_cmdresp.c
drivers/net/wireless/mwifiex/sta_ioctl.c