From 373b99b95b5859fb14457b0e7d186a73b6007547 Mon Sep 17 00:00:00 2001 From: bings Date: Mon, 23 Jan 2017 10:35:08 +0800 Subject: [PATCH] qcacld-3.0: Fix dead loop in hdd_get_sap_operating_channel qcacld-2.0 to qcacld-3.0 propagation In the while loop of hdd_get_sap_operating_channel, sap_operating_band should be revalued, otherwise it causes dead loop. Change-Id: I9cb1ae738066567d032f99621ffe04d3beb74b8c CRs-Fixed: 1094604 --- core/hdd/src/wlan_hdd_cfg80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 24e4141b1b..3353507e40 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -7283,6 +7283,7 @@ uint8_t hdd_get_sap_operating_band(hdd_context_t *hdd_ctx) sap_operating_band = eCSR_BAND_ALL; status = hdd_get_next_adapter(hdd_ctx, adapter_node, &next); + adapter_node = next; } return sap_operating_band; }