|
@@ -378,18 +378,11 @@ static void mwifiex_free_lock_list(struct mwifiex_adapter *adapter)
|
|
static void
|
|
static void
|
|
mwifiex_adapter_cleanup(struct mwifiex_adapter *adapter)
|
|
mwifiex_adapter_cleanup(struct mwifiex_adapter *adapter)
|
|
{
|
|
{
|
|
- int i;
|
|
|
|
-
|
|
|
|
if (!adapter) {
|
|
if (!adapter) {
|
|
pr_err("%s: adapter is NULL\n", __func__);
|
|
pr_err("%s: adapter is NULL\n", __func__);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- for (i = 0; i < adapter->priv_num; i++) {
|
|
|
|
- if (adapter->priv[i])
|
|
|
|
- del_timer_sync(&adapter->priv[i]->scan_delay_timer);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
mwifiex_cancel_all_pending_cmd(adapter);
|
|
mwifiex_cancel_all_pending_cmd(adapter);
|
|
|
|
|
|
/* Free lock variables */
|
|
/* Free lock variables */
|