qcacld-3.0: Iterate till nth adapter in hdd_adapter_iterate()
Currently,there is an issue in hdd_adapter_iterator(), as it is iterate till (n-1)th adapter. Due to this, in STA+STA+P2P scenario, driver allows wlan0 scan when P2P connection in progress as hdd_is_connection_in_progress() only check for STA mode and miss the P2P mode. Iterate till nth adapter as a fix. Change-Id: Ia6e49b3a8372634756e89032ee9d599583160479 CRs-Fixed: 2907307
This commit is contained in:
@@ -8782,7 +8782,7 @@ QDF_STATUS hdd_adapter_iterate(hdd_adapter_iterate_cb cb, void *context)
|
|||||||
}
|
}
|
||||||
qdf_spin_unlock_bh(&hdd_ctx->hdd_adapter_lock);
|
qdf_spin_unlock_bh(&hdd_ctx->hdd_adapter_lock);
|
||||||
|
|
||||||
for (i = 0; i < n_cache - 1; i++) {
|
for (i = 0; i < n_cache; i++) {
|
||||||
adapter = hdd_adapter_get_by_reference(hdd_ctx, cache[i]);
|
adapter = hdd_adapter_get_by_reference(hdd_ctx, cache[i]);
|
||||||
if (!adapter) {
|
if (!adapter) {
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user