qcacmn: Configure MAWC roaming parameters to firmware

Get the MAWC based roaming parameters from CSR/WMA and pass them
to firmware

Change-Id: I78a287a39715dbabcceb2cb5c4270726ba265d61
CRs-Fixed: 2064837
此提交包含在:
Varun Reddy Yeturu
2017-07-20 09:45:01 -07:00
提交者 snandini
父節點 f3aaa33091
當前提交 4cae429926
共有 3 個檔案被更改,包括 34 行新增0 行删除

查看文件

@@ -614,6 +614,19 @@ QDF_STATUS wmi_unified_roam_scan_offload_mode_cmd(void *wmi_hdl,
struct roam_offload_scan_params *roam_req); struct roam_offload_scan_params *roam_req);
#endif #endif
/**
* wmi_unified_roam_mawc_params_cmd() - configure roaming MAWC parameters
* @wmi_hdl: wmi handle
* @params: Parameters to be configured
*
* Pass the MAWC(Motion Aided wireless connectivity) related roaming
* parameters from the host to the target
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_unified_roam_mawc_params_cmd(void *wmi_hdl,
struct wmi_mawc_roam_params *params);
QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(void *wmi_hdl, QDF_STATUS wmi_unified_roam_scan_offload_rssi_thresh_cmd(void *wmi_hdl,
struct roam_offload_scan_rssi_params *roam_req); struct roam_offload_scan_rssi_params *roam_req);

查看文件

@@ -7415,4 +7415,22 @@ struct wmi_limit_off_chan_param {
bool skip_dfs_chans; bool skip_dfs_chans;
}; };
/**
* struct wmi_mawc_roam_params - Motion Aided wireless connectivity params
* @vdev_id: VDEV on which the parameters should be applied
* @enable: MAWC roaming feature enable/disable
* @traffic_load_threshold: Traffic threshold in kBps for MAWC roaming
* @best_ap_rssi_threshold: AP RSSI Threshold for MAWC roaming
* @rssi_stationary_high_adjust: High RSSI adjustment value to suppress scan
* @rssi_stationary_low_adjust: Low RSSI adjustment value to suppress scan
*/
struct wmi_mawc_roam_params {
uint8_t vdev_id;
bool enable;
uint32_t traffic_load_threshold;
uint32_t best_ap_rssi_threshold;
uint8_t rssi_stationary_high_adjust;
uint8_t rssi_stationary_low_adjust;
};
#endif /* _WMI_UNIFIED_PARAM_H_ */ #endif /* _WMI_UNIFIED_PARAM_H_ */

查看文件

@@ -410,6 +410,9 @@ QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle,
struct roam_offload_scan_rssi_params *roam_req); struct roam_offload_scan_rssi_params *roam_req);
QDF_STATUS (*send_roam_mawc_params_cmd)(wmi_unified_t wmi_handle,
struct wmi_mawc_roam_params *params);
QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle, QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle,
struct roam_scan_filter_params *roam_req); struct roam_scan_filter_params *roam_req);