From c1c4d2b55b57badfc13eaf3f0f9be8454d8a4387 Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Thu, 22 Sep 2016 15:45:16 +0530 Subject: [PATCH] qcacld-3.0: While starting adapters, on interface down, go to next adapter During re-init of SSR, host restarts adapters one by one, by traversing adapterNode link-list, whose all interfaces are up. But if any of adapter's interface is down, then driver will be in infinite loop as its not traversing to next adapter node. So, on adapter's interface down, go to next adapter node to break infinite loop. Change-Id: I334a6304578d833485b58b2f6f494b4556c781ed CRs-Fixed: 1069498 --- core/hdd/src/wlan_hdd_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 6e779b5d2e7e..8946bbbc377e 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -3821,7 +3821,7 @@ QDF_STATUS hdd_start_all_adapters(hdd_context_t *hdd_ctx) adapter = adapterNode->pAdapter; if (!hdd_is_interface_up(adapter)) - continue; + goto get_adapter; hdd_wmm_init(adapter); @@ -3894,7 +3894,7 @@ QDF_STATUS hdd_start_all_adapters(hdd_context_t *hdd_ctx) default: break; } - +get_adapter: status = hdd_get_next_adapter(hdd_ctx, adapterNode, &pNext); adapterNode = pNext; }