• Amitkumar Karwar's avatar
    mwifiex: remove redundant code in set channel path · 1f45b39e
    Amitkumar Karwar authored
    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: default avatarAmitkumar Karwar <akarwar@marvell.com>
    Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    1f45b39e
sta_cmdresp.c 29.5 KB