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
这个提交包含在:
Deeksha Gupta
2021-03-24 18:06:36 +05:30
提交者 snandini
父节点 0a8340a1cb
当前提交 e47702f7b9

查看文件

@@ -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);
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]);
if (!adapter) {
/*