Browse Source

qcacmn: Initialize mac_phy_count to zero before populating macphy params

mac_phy_count should be initialized to zero before populating machphy
params. Target stop/start framework skips attach/detach which means
mac_phy_count should be initialized explicitly.

Change-Id: I9fe537c3a7e375397982174f6a63599a961ba8d3
CRs-Fixed: 2065321
Kiran Venkatappa 7 years ago
parent
commit
be23decc06
1 changed files with 1 additions and 0 deletions
  1. 1 0
      target_if/init_deinit/src/service_ready_event_handler.c

+ 1 - 0
target_if/init_deinit/src/service_ready_event_handler.c

@@ -298,6 +298,7 @@ int init_deinit_service_ext_ready_event_handler(ol_scn_t scn_handle,
 	if (err_code)
 		goto free_param_and_exit;
 
+	psoc->total_mac_phy = 0;
 	err_code =  populate_hw_mode_capability(wmi_handle,
 					    event,
 					    &psoc->total_mac_phy,