qcacmn: Add support to send bcast capability to firmware
If both INI and FW capability is set, enable capability flag in twt enable command. Change-Id: I1c070256c4b672b09a1323665fc5a2f166f951fb CRs-Fixed: 2423718
This commit is contained in:
@@ -5284,6 +5284,7 @@ typedef enum {
|
|||||||
wmi_service_wlm_stats_support,
|
wmi_service_wlm_stats_support,
|
||||||
wmi_service_ul_ru26_allowed,
|
wmi_service_ul_ru26_allowed,
|
||||||
wmi_service_cfr_capture_support,
|
wmi_service_cfr_capture_support,
|
||||||
|
wmi_service_bcast_twt_support,
|
||||||
wmi_services_max,
|
wmi_services_max,
|
||||||
} wmi_conv_service_ids;
|
} wmi_conv_service_ids;
|
||||||
#define WMI_SERVICE_UNAVAILABLE 0xFFFF
|
#define WMI_SERVICE_UNAVAILABLE 0xFFFF
|
||||||
|
@@ -62,6 +62,7 @@
|
|||||||
* TWT slots for STAs. (units = milliseconds)
|
* TWT slots for STAs. (units = milliseconds)
|
||||||
* @remove_sta_slot_interval: Inrerval between decisions making to remove TWT
|
* @remove_sta_slot_interval: Inrerval between decisions making to remove TWT
|
||||||
* slot of STAs. (units = milliseconds)
|
* slot of STAs. (units = milliseconds)
|
||||||
|
* @flags: Flag to enable or disable capabilities, example bcast twt.
|
||||||
*/
|
*/
|
||||||
struct wmi_twt_enable_param {
|
struct wmi_twt_enable_param {
|
||||||
uint32_t pdev_id;
|
uint32_t pdev_id;
|
||||||
@@ -81,6 +82,7 @@ struct wmi_twt_enable_param {
|
|||||||
uint32_t mode_check_interval;
|
uint32_t mode_check_interval;
|
||||||
uint32_t add_sta_slot_interval;
|
uint32_t add_sta_slot_interval;
|
||||||
uint32_t remove_sta_slot_interval;
|
uint32_t remove_sta_slot_interval;
|
||||||
|
uint32_t flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* status code of enabling TWT
|
/* status code of enabling TWT
|
||||||
|
@@ -12058,6 +12058,8 @@ static void populate_tlv_service(uint32_t *wmi_service)
|
|||||||
wmi_service[wmi_service_ul_ru26_allowed] = WMI_SERVICE_UL_RU26_ALLOWED;
|
wmi_service[wmi_service_ul_ru26_allowed] = WMI_SERVICE_UL_RU26_ALLOWED;
|
||||||
wmi_service[wmi_service_cfr_capture_support] =
|
wmi_service[wmi_service_cfr_capture_support] =
|
||||||
WMI_SERVICE_CFR_CAPTURE_SUPPORT;
|
WMI_SERVICE_CFR_CAPTURE_SUPPORT;
|
||||||
|
wmi_service[wmi_service_bcast_twt_support] =
|
||||||
|
WMI_SERVICE_BROADCAST_TWT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -62,6 +61,7 @@ static QDF_STATUS send_twt_enable_cmd_tlv(wmi_unified_t wmi_handle,
|
|||||||
cmd->mode_check_interval = params->mode_check_interval;
|
cmd->mode_check_interval = params->mode_check_interval;
|
||||||
cmd->add_sta_slot_interval = params->add_sta_slot_interval;
|
cmd->add_sta_slot_interval = params->add_sta_slot_interval;
|
||||||
cmd->remove_sta_slot_interval = params->remove_sta_slot_interval;
|
cmd->remove_sta_slot_interval = params->remove_sta_slot_interval;
|
||||||
|
cmd->flags = params->flags;
|
||||||
|
|
||||||
status = wmi_unified_cmd_send(wmi_handle, buf, sizeof(*cmd),
|
status = wmi_unified_cmd_send(wmi_handle, buf, sizeof(*cmd),
|
||||||
WMI_TWT_ENABLE_CMDID);
|
WMI_TWT_ENABLE_CMDID);
|
||||||
|
Reference in New Issue
Block a user