qcacmn: Add support for 11k offload related WMI commands

Add WMI TLV functions for 11k offload command and neighbor
report request invoke command.

Change-Id: If37cace93d4f719eed6abfabcd878879d804161e
CRs-Fixed: 2162030
Этот коммит содержится в:
Vignesh Viswanathan
2018-01-18 19:06:40 +05:30
коммит произвёл snandini
родитель 0e1c2a8c87
Коммит 51994e3d14
3 изменённых файлов: 80 добавлений и 0 удалений

Просмотреть файл

@@ -2012,4 +2012,27 @@ QDF_STATUS wmi_extract_swfda_vdev_id(void *wmi_hdl, void *evt_buf,
QDF_STATUS wmi_unified_fils_discovery_send_cmd(void *wmi_hdl,
struct fd_params *param);
#endif /* WLAN_SUPPORT_FILS */
/**
* wmi_unified_offload_11k_cmd() - send 11k offload command
* @wmi_hdl: wmi handle
* @params: 11k offload params
*
* This function passes the 11k offload command params to FW
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_unified_offload_11k_cmd(void *wmi_hdl,
struct wmi_11k_offload_params *params);
/**
* wmi_unified_invoke_neighbor_report_cmd() - send invoke neighbor report cmd
* @wmi_hdl: wmi handle
* @params: invoke neighbor report params
*
* This function passes the invoke neighbor report command to fw
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_unified_invoke_neighbor_report_cmd(void *wmi_hdl,
struct wmi_invoke_neighbor_report_params *params);
#endif /* _WMI_UNIFIED_API_H_ */

Просмотреть файл

@@ -8427,4 +8427,56 @@ struct wmi_obss_detect_info {
uint8_t matched_bssid_addr[IEEE80211_ADDR_LEN];
};
/**
* @time_offset: time offset after 11k offload command to trigger a neighbor
* report request (in seconds)
* @low_rssi_offset: Offset from rssi threshold to trigger a neighbor
* report request (in dBm)
* @bmiss_count_trigger: Number of beacon miss events to trigger neighbor
* report request
* @per_threshold_offset: offset from PER threshold to trigger neighbor
* report request (in %)
* @neighbor_report_cache_timeout: timeout after which new trigger can enable
* sending of a neighbor report request (in seconds)
* @max_neighbor_report_req_cap: max number of neighbor report requests that
* can be sent to the peer in the current session
* @ssid: Current connect SSID info
*/
struct wmi_11k_offload_neighbor_report_params {
uint32_t time_offset;
uint32_t low_rssi_offset;
uint32_t bmiss_count_trigger;
uint32_t per_threshold_offset;
uint32_t neighbor_report_cache_timeout;
uint32_t max_neighbor_report_req_cap;
struct mac_ssid ssid;
};
/**
* struct wmi_11k_offload_params - offload 11k features to FW
* @vdev_id: vdev id
* @offload_11k_bitmask: bitmask to specify offloaded features
* B0: Neighbor Report Request offload
* B1-B31: Reserved
* @neighbor_report_params: neighbor report offload params
*/
struct wmi_11k_offload_params {
uint32_t vdev_id;
uint32_t offload_11k_bitmask;
struct wmi_11k_offload_neighbor_report_params neighbor_report_params;
};
/**
* struct wmi_invoke_neighbor_report_params - Invoke neighbor report request
* from IW to FW
* @vdev_id: vdev id
* @send_resp_to_host: bool to send response to host or not
* @ssid: ssid given from the IW command
*/
struct wmi_invoke_neighbor_report_params {
uint32_t vdev_id;
uint32_t send_resp_to_host;
struct mac_ssid ssid;
};
#endif /* _WMI_UNIFIED_PARAM_H_ */

Просмотреть файл

@@ -1518,6 +1518,11 @@ QDF_STATUS (*extract_swfda_vdev_id)(wmi_unified_t wmi_handle, void *evt_buf,
QDF_STATUS (*send_fils_discovery_send_cmd)(wmi_unified_t wmi_handle,
struct fd_params *param);
#endif /* WLAN_SUPPORT_FILS */
QDF_STATUS (*send_offload_11k_cmd)(wmi_unified_t wmi_handle,
struct wmi_11k_offload_params *params);
QDF_STATUS (*send_invoke_neighbor_report_cmd)(wmi_unified_t wmi_handle,
struct wmi_invoke_neighbor_report_params *params);
};
/* Forward declartion for psoc*/