Browse Source

qcacld-3.0: Initialize the freq list in ll_lt_sap_get_valid_freq api

Currently host driver does not set freq_list to memzero in
ll_lt_sap_get_valid_freq api which may contain some invalid values
which leads to unexpected issues in channel selection.

To address this issue, initialize freq_list with memzero
in ll_lt_sap_get_valid_freq API.

Change-Id: I2f0e7fef6c5ece88b2714b4a90bc169c8bbb75cc
CRs-Fixed: 3647070
Ashish Kumar Dhanotiya 1 year ago
parent
commit
47e3ad9261
1 changed files with 2 additions and 0 deletions
  1. 2 0
      components/umac/mlme/sap/ll_sap/core/src/wlan_ll_lt_sap_main.c

+ 2 - 0
components/umac/mlme/sap/ll_sap/core/src/wlan_ll_lt_sap_main.c

@@ -429,6 +429,8 @@ qdf_freq_t ll_lt_sap_get_valid_freq(struct wlan_objmgr_psoc *psoc,
 {
 	struct wlan_ll_lt_sap_freq_list freq_list;
 
+	qdf_mem_zero(&freq_list, sizeof(freq_list));
+
 	ll_lt_sap_get_freq_list(psoc, &freq_list, vdev_id);
 
 	if (freq_list.standalone_mac.freq_5GHz_low)