diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 43dc0acf9a..44d431b141 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1767,7 +1767,7 @@ QDF_STATUS wmi_send_bcn_offload_control_cmd(void *wmi_hdl, /** * wmi_unified_send_wds_entry_list_cmd() - WMI function to get list of * wds entries from FW - * @wmi_handle: wmi handle + * @wmi_hdl: wmi handle * * Send WMI_PDEV_WDS_ENTRY_LIST_CMDID parameters to fw. * @@ -1778,7 +1778,7 @@ QDF_STATUS wmi_unified_send_dump_wds_table_cmd(void *wmi_hdl); /** * wmi_extract_wds_entry - api to extract wds entry - * @wmi_handle: wma handle + * @wmi_hdl: wmi handle * @evt_buf: pointer to event buffer * @wds_entry: wds entry * @idx: index to point wds entry in event buffer @@ -1897,4 +1897,18 @@ QDF_STATUS wmi_extract_ndp_end_ind(wmi_unified_t wmi_handle, uint8_t *data, */ QDF_STATUS wmi_unified_send_btm_config(void *wmi_hdl, struct wmi_btm_config *params); + +/** + * wmi_unified_send_obss_detection_cfg_cmd() - WMI function to send obss + * detection configuration to FW. + * @wmi_hdl: wmi handle + * @cfg: obss detection configuration + * + * Send WMI_SAP_OBSS_DETECTION_CFG_CMDID parameters to fw. + * + * Return: QDF_STATUS + */ + +QDF_STATUS wmi_unified_send_obss_detection_cfg_cmd(void *wmi_hdl, + struct wmi_obss_detection_cfg_param *cfg); #endif /* _WMI_UNIFIED_API_H_ */ diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 7b9cf72b10..d0eae3e0a2 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -5640,6 +5640,7 @@ typedef enum { wmi_radio_tx_power_level_stats_event_id, wmi_report_stats_event_id, wmi_dma_buf_release_event_id, + wmi_sap_obss_detection_report_event_id, wmi_events_max, } wmi_conv_event_id; @@ -8269,4 +8270,31 @@ struct direct_buf_rx_cfg_req { uint32_t num_resp_per_event; }; +/** + * struct wmi_obss_detection_cfg_param - obss detection cfg + * @vdev_id: vdev id + * @obss_detect_period_ms: detection period in ms + * @obss_11b_ap_detect_mode: detect whether there is 11b ap/ibss + * @obss_11b_sta_detect_mode: detect whether there is 11b sta + * connected with other APs + * @obss_11g_ap_detect_mode: detect whether there is 11g AP + * @obss_11a_detect_mode: detect whether there is legacy 11a traffic + * @obss_ht_legacy_detect_mode: detect whether there is ap which is + * ht legacy mode + * @obss_ht_mixed_detect_mode: detect whether there is ap which is ht mixed mode + * @obss_ht_20mhz_detect_mode: detect whether there is ap which has 20M only + * station + */ +struct wmi_obss_detection_cfg_param { + uint32_t vdev_id; + uint32_t obss_detect_period_ms; + uint32_t obss_11b_ap_detect_mode; + uint32_t obss_11b_sta_detect_mode; + uint32_t obss_11g_ap_detect_mode; + uint32_t obss_11a_detect_mode; + uint32_t obss_ht_legacy_detect_mode; + uint32_t obss_ht_mixed_detect_mode; + uint32_t obss_ht_20mhz_detect_mode; +}; + #endif /* _WMI_UNIFIED_PARAM_H_ */ diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 0c6898c892..cc231d196a 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1494,6 +1494,8 @@ QDF_STATUS (*extract_ndp_end_ind)(wmi_unified_t wmi_handle, #endif QDF_STATUS (*send_btm_config)(wmi_unified_t wmi_handle, struct wmi_btm_config *params); +QDF_STATUS (*send_obss_detection_cfg_cmd)(wmi_unified_t wmi_handle, + struct wmi_obss_detection_cfg_param *obss_cfg_param); }; /* Forward declartion for psoc*/