Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9ad0c61 authored by Jyoti Kumari's avatar Jyoti Kumari
Browse files

qcacmn: Handle TWT ack event support in wmi init

In WMI INIT, check whether firmware supports the ack event or
not. If it supports then enable driver support and send it to
firmware during WMI INIT.

Change-Id: Icfdee6bc06e6a393de880b87fdab70665ea7c8b4
CRs-Fixed: 2987898
parent 94b85dec
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2021 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
@@ -464,6 +464,9 @@ void init_deinit_prepare_send_init_cmd(
		QDF_MIN(info->wlan_res_cfg.max_ndp_sessions,
			info->service_ext2_param.max_ndp_sessions);

	if (info->service_ext2_param.twt_ack_support_cap)
		info->wlan_res_cfg.twt_ack_support_cap = true;

	target_if_debug("FW version 0x%x ", info->target_caps.fw_version);
	if (init_deinit_is_service_ext_msg(psoc, tgt_hdl) == QDF_STATUS_SUCCESS)
		target_if_debug("0x%x\n",
+1 −0
Original line number Diff line number Diff line
@@ -5513,6 +5513,7 @@ typedef struct {
	uint32_t is_sap_connected_d3wow_enabled;
	uint32_t is_go_connected_d3wow_enabled;
	bool sae_eapol_offload;
	bool twt_ack_support_cap;
} target_resource_config;

/**
+4 −0
Original line number Diff line number Diff line
@@ -7324,6 +7324,10 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
		tgt_res_cfg->is_reg_cc_ext_event_supported);

	wmi_set_nan_channel_support(resource_cfg);

	if (tgt_res_cfg->twt_ack_support_cap)
		WMI_RSRC_CFG_HOST_SERVICE_FLAG_STA_TWT_SYNC_EVT_SUPPORT_SET(
			resource_cfg->host_service_flags, 1);
}

/* copy_hw_mode_id_in_init_cmd() - Helper routine to copy hw_mode in init cmd