mwifiex: do not initialize ext_scan in mwifiex_init_adapter
authorAvinash Patil <patila@marvell.com>
Wed, 25 Feb 2015 16:45:41 +0000 (22:15 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Mar 2015 13:43:38 +0000 (15:43 +0200)
Features which are device specific are already updated in
interface specific initialization e.g. register_dev.
We should not initialize them in mwifiex_init_adapter();
else this would overwrite earlier settings.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/init.c

index b77ba743e1c498c1bae30b11ae0b571937b971c8..2e1df027b204f875841c90330c4c92c88e84a8d8 100644 (file)
@@ -296,7 +296,6 @@ static void mwifiex_init_adapter(struct mwifiex_adapter *adapter)
        memset(&adapter->arp_filter, 0, sizeof(adapter->arp_filter));
        adapter->arp_filter_size = 0;
        adapter->max_mgmt_ie_index = MAX_MGMT_IE_INDEX;
-       adapter->ext_scan = false;
        adapter->key_api_major_ver = 0;
        adapter->key_api_minor_ver = 0;
        memset(adapter->perm_addr, 0xff, ETH_ALEN);