qcacmn: Capability to configure bcast TWT responder or requestor

The bcast twt functionality may need to be enabled separately
for requestor and responder roles. Enable such configuration
by looking up WMI service bit support from target:
    wmi_service_twt_bcast_req_support
    wmi_service_twt_bcast_resp_support

Change-Id: Ibc91173c23cf69f0d248af27d61c77bee3e8f48a
CRs-Fixed: 2828720
This commit is contained in:
Subrat Dash
2020-11-28 00:03:20 +05:30
committed by snandini
parent 6e6b928fc5
commit 6d35309cc7
4 changed files with 52 additions and 4 deletions

View File

@@ -68,9 +68,14 @@ static QDF_STATUS send_twt_enable_cmd_tlv(wmi_unified_t wmi_handle,
params->b_twt_legacy_mbss_enable);
TWT_EN_DIS_FLAGS_SET_AX_MBSSID(cmd->flags,
params->b_twt_ax_mbss_enable);
if (params->ext_conf_present) {
TWT_EN_DIS_FLAGS_SET_SPLIT_CONFIG(cmd->flags, 1);
TWT_EN_DIS_FLAGS_SET_REQ_RESP(cmd->flags, params->twt_role);
TWT_EN_DIS_FLAGS_SET_I_B_TWT(cmd->flags, params->twt_oper);
}
status = wmi_unified_cmd_send(wmi_handle, buf, sizeof(*cmd),
WMI_TWT_ENABLE_CMDID);
WMI_TWT_ENABLE_CMDID);
if (QDF_IS_STATUS_ERROR(status)) {
wmi_err("Failed to send WMI_TWT_ENABLE_CMDID");
wmi_buf_free(buf);
@@ -103,9 +108,14 @@ static QDF_STATUS send_twt_disable_cmd_tlv(wmi_unified_t wmi_handle,
wmi_handle->ops->convert_pdev_id_host_to_target(
wmi_handle,
params->pdev_id);
if (params->ext_conf_present) {
TWT_EN_DIS_FLAGS_SET_SPLIT_CONFIG(cmd->flags, 1);
TWT_EN_DIS_FLAGS_SET_REQ_RESP(cmd->flags, params->twt_role);
TWT_EN_DIS_FLAGS_SET_I_B_TWT(cmd->flags, params->twt_oper);
}
status = wmi_unified_cmd_send(wmi_handle, buf, sizeof(*cmd),
WMI_TWT_DISABLE_CMDID);
WMI_TWT_DISABLE_CMDID);
if (QDF_IS_STATUS_ERROR(status)) {
wmi_err("Failed to send WMI_TWT_DISABLE_CMDID");
wmi_buf_free(buf);