qcacmn: Use FW macro to set BCAST_TWT flag in TWT_enable cmd

Add b_twt_enable variable to enable/disable broadcast TWT in
wmi_twt_enable_param structure and use FW macro in WMI layer
to enable/disable BCAST_TWT in TWT_ENABLE cmd.

Change-Id: I892e922dda14d16019f3f433f885d1eb5b7169fc
CRs-Fixed: 2793360
This commit is contained in:
Shashikala Prabhu
2020-10-08 14:08:12 +05:30
committed by snandini
parent f01c97ca5b
commit 31f750cb6f
2 changed files with 12 additions and 3 deletions

View File

@@ -62,7 +62,12 @@ static QDF_STATUS send_twt_enable_cmd_tlv(wmi_unified_t wmi_handle,
cmd->mode_check_interval = params->mode_check_interval;
cmd->add_sta_slot_interval = params->add_sta_slot_interval;
cmd->remove_sta_slot_interval = params->remove_sta_slot_interval;
cmd->flags = params->flags;
TWT_EN_DIS_FLAGS_SET_BTWT(cmd->flags, params->b_twt_enable);
TWT_EN_DIS_FLAGS_SET_L_MBSSID(cmd->flags,
params->b_twt_legacy_mbss_enable);
TWT_EN_DIS_FLAGS_SET_AX_MBSSID(cmd->flags,
params->b_twt_ax_mbss_enable);
status = wmi_unified_cmd_send(wmi_handle, buf, sizeof(*cmd),
WMI_TWT_ENABLE_CMDID);