From: Amitkumar Karwar Date: Sat, 14 Jul 2012 03:09:30 +0000 (-0700) Subject: mwifiex: remove redundant code in set channel path X-Git-Tag: v3.6-rc1~125^2~57^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f45b39ececbdfb13a7bf4d2f644d2e89a8b415f;p=pandora-kernel.git 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 Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed