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

Commit 001b9ae8 authored by Madhvapathi Sriram's avatar Madhvapathi Sriram Committed by Madan Koyyalamudi
Browse files

qcacmn: Add support to configure rate mask to cap phy rate

This will help to configure desired rate mask. It can be
used to optimize link performance.

Change-Id: I15b6fbc512d9b0869a6ad6a6f24f1593abf14dae
CRs-Fixed: 2758871
parent 39f9a56b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -331,6 +331,7 @@ struct config_fils_params {
 * @lower32: Lower 32 bits in the 1st 64-bit value
 * @higher32: Higher 32 bits in the 1st 64-bit value
 * @lower32_2: Lower 32 bits in the 2nd 64-bit value
 * @higher32_2: Higher 32 bits in the 2nd 64-bit value
 */
struct config_ratemask_params {
	uint8_t vdev_id;
@@ -338,6 +339,7 @@ struct config_ratemask_params {
	uint32_t lower32;
	uint32_t higher32;
	uint32_t lower32_2;
	uint32_t higher32_2;
};

/**
+16 −0
Original line number Diff line number Diff line
@@ -3494,6 +3494,22 @@ enum wmi_host_preamble_type {
	WMI_HOST_PREAMBLE_HE    =  4,
};

/**
 * enum wmi_ratemask_type: ratemask type
 * @WMI_RATEMASK_TYPE_CCK: CCK rate mask type
 * @WMI_RATEMASK_TYPE_HT:  HT rate mask type
 * @WMI_RATEMASK_TYPE_VHT: VHT rate mask type
 * @WMI_RATEMASK_TYPE_HE:  HE rate mask type
 *
 * This is used for 'type' in WMI_VDEV_RATEMASK_CMDID
 */
enum wmi_ratemask_type {
	WMI_RATEMASK_TYPE_CCK = 0,
	WMI_RATEMASK_TYPE_HT  = 1,
	WMI_RATEMASK_TYPE_VHT = 2,
	WMI_RATEMASK_TYPE_HE  = 3,
};

/**
 * struct packet_power_info_params - packet power info params
 * @chainmask: chain mask
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ send_vdev_config_ratemask_cmd_tlv(struct wmi_unified *wmi_handle,
	cmd->mask_lower32 = param->lower32;
	cmd->mask_higher32 = param->higher32;
	cmd->mask_lower32_2 = param->lower32_2;
	cmd->mask_higher32_2 = param->higher32_2;

	wmi_mtrace(WMI_VDEV_RATEMASK_CMDID, cmd->vdev_id, 0);
	if (wmi_unified_cmd_send(wmi_handle, buf, len,