Browse Source

qcacmn: Call qwrap_config_enable from ext_handler

Call qwrap_config enable from both ready and extended service ready
handler. This change is needed for lithium chipsets where the number
of radios per soc is more than 1. Number of radios is updated only
in extended service ready handler and this qwraP_config_enable should
be called in extended service ready

Change-Id: I12289c38996f3bb4274e5795d434dd86c83f34c0
CRs-Fixed: 2384604
Nandha Kishore Easwaran 6 years ago
parent
commit
1d17599f43
1 changed files with 5 additions and 2 deletions
  1. 5 2
      target_if/init_deinit/src/init_event_handler.c

+ 5 - 2
target_if/init_deinit/src/init_event_handler.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -125,7 +125,8 @@ static int init_deinit_service_ready_event_handler(ol_scn_t scn_handle,
 
 	target_if_atf_cfg_enable(psoc, tgt_hdl, event);
 
-	target_if_qwrap_cfg_enable(psoc, tgt_hdl, event);
+	if (!wmi_service_enabled(wmi_handle, wmi_service_ext_msg))
+		target_if_qwrap_cfg_enable(psoc, tgt_hdl, event);
 
 	target_if_lteu_cfg_enable(psoc, tgt_hdl, event);
 
@@ -272,6 +273,8 @@ static int init_deinit_service_ext_ready_event_handler(ol_scn_t scn_handle,
 		legacy_callback(wmi_service_ready_ext_event_id,
 				scn_handle, event, data_len);
 
+	target_if_qwrap_cfg_enable(psoc, tgt_hdl, event);
+
 	info->wlan_res_cfg.num_vdevs = (target_psoc_get_num_radios(tgt_hdl) *
 					info->wlan_res_cfg.num_vdevs);
 	info->wlan_res_cfg.beacon_tx_offload_max_vdev =