diff options
| author | Hanumanth Reddy Pothula <c_hpothu@codeaurora.org> | 2016-09-22 15:45:16 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-09-23 17:39:37 -0700 |
| commit | c1c4d2b55b57badfc13eaf3f0f9be8454d8a4387 (patch) | |
| tree | 9ece8c32d3a98b32cea7ec3cbaf5e7f85e9c271f | |
| parent | 8d9020fca46b7207da0ed7b977109c6c4f542154 (diff) | |
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
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 4 |
1 files 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; } |
