Explorar el Código

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
Hanumanth Reddy Pothula hace 8 años
padre
commit
c1c4d2b55b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      core/hdd/src/wlan_hdd_main.c

+ 2 - 2
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;
 	}