summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbings <bings@codeaurora.org>2017-01-23 10:35:08 +0800
committerqcabuildsw <qcabuildsw@localhost>2017-02-07 19:57:41 -0800
commitbbb6ba26d83141d11f2e1609452a375e5944d0d1 (patch)
treebd0fa3bfcab609761d9a7ed66dbc6e92504f044a
parentfb93a62b9332d14ddb3fe0e41a8602e8eedadcb5 (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_cfg80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index f944e92ef468..78db8a9a8266 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -7344,6 +7344,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;
}