From 230af893852e4ce73e4a16f2ae579f028f5e451a Mon Sep 17 00:00:00 2001 From: yeshwanth sriram guntuka Date: Fri, 1 Sep 2017 17:56:07 +0530 Subject: [PATCH] qcacmn: Add config support for BTM offload Add ini to configure BTM offload configuration which is sent to firmware as part of RSO start via wmi btm config cmd. Change-Id: I69c792705b208014af8f1878f7645d957dde6c06 CRs-Fixed: 2105112 --- wmi_unified_api.h | 9 +++++++++ wmi_unified_param.h | 9 +++++++++ wmi_unified_priv.h | 2 ++ 3 files changed, 20 insertions(+) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 94a39ccef1..43dc0acf9a 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1888,4 +1888,13 @@ QDF_STATUS wmi_extract_ndp_end_ind(wmi_unified_t wmi_handle, uint8_t *data, struct nan_datapath_end_indication_event **ind); #endif +/** + * wmi_unified_send_btm_config() - Send BTM config to fw + * @wmi_hdl: wmi handle + * @params: pointer to wmi_btm_config + * + * Return: QDF_STATUS + */ +QDF_STATUS wmi_unified_send_btm_config(void *wmi_hdl, + struct wmi_btm_config *params); #endif /* _WMI_UNIFIED_API_H_ */ diff --git a/wmi_unified_param.h b/wmi_unified_param.h index c8b5431d9c..7b9cf72b10 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -8090,6 +8090,15 @@ struct wmi_mawc_roam_params { uint8_t rssi_stationary_high_adjust; uint8_t rssi_stationary_low_adjust; }; +/** + * struct wmi_btm_config - BSS Transition Management offload params + * @vdev_id: VDEV on which the parameters should be applied + * @btm_offload_config: BTM config + */ +struct wmi_btm_config { + uint8_t vdev_id; + uint32_t btm_offload_config; +}; /** * struct set_arp_stats - set/reset arp stats diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 834eab3c46..0c6898c892 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1492,6 +1492,8 @@ QDF_STATUS (*extract_ndp_end_ind)(wmi_unified_t wmi_handle, uint8_t *data, struct nan_datapath_end_indication_event **ind); #endif +QDF_STATUS (*send_btm_config)(wmi_unified_t wmi_handle, + struct wmi_btm_config *params); }; /* Forward declartion for psoc*/