浏览代码

qcacld-3.0: Send twt_setup mantissa in TU to firmware

Currently, host sends mantissa in us for
QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA attribute.

Add changes to send wake interval mantissa in TU to firmware
and expectation from usersapce is to set the 1024 in the
exponent to derive the correct wake interval.

Change-Id: I53520369492961207496970fe78189bec6f75ad7
CRs-Fixed: 2897500
Deeksha Gupta 4 年之前
父节点
当前提交
452fcde4e1
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      core/hdd/src/wlan_hdd_twt.c

+ 1 - 4
core/hdd/src/wlan_hdd_twt.c

@@ -138,7 +138,6 @@ int hdd_twt_get_add_dialog_values(struct nlattr **tb,
 	uint32_t wake_intvl_exp, result;
 	int cmd_id;
 	QDF_STATUS qdf_status;
-	uint32_t wake_intvl_mantis_tu;
 
 	cmd_id = QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID;
 	if (tb[cmd_id]) {
@@ -231,9 +230,7 @@ int hdd_twt_get_add_dialog_values(struct nlattr **tb,
 		hdd_err_rl("SETUP_WAKE_INTVL_MANTISSA is must");
 		return -EINVAL;
 	}
-	wake_intvl_mantis_tu = nla_get_u32(tb[cmd_id]);
-	params->wake_intvl_mantis = wake_intvl_mantis_tu *
-				    TWT_WAKE_INTVL_MULTIPLICATION_FACTOR;
+	params->wake_intvl_mantis = nla_get_u32(tb[cmd_id]);
 	if (params->wake_intvl_mantis >
 	    TWT_SETUP_WAKE_INTVL_MANTISSA_MAX) {
 		hdd_err_rl("Invalid wake_intvl_mantis %u",