qcacmn: Add revised extscan start hotlist monitor API

There is an existing WMI command which is used to start the extscan
hotlist monitor, wmi_unified_get_buf_extscan_hotlist_cmd(), but this
API has multiple issues:
1) The "get_buf" in the name implies it retrieves something, but it
   doesn't.
2) The full name is not a "mirror" of the companion function that
   stops the monitor, wmi_unified_extscan_stop_hotlist_monitor_cmd().
3) The current function has an "int *buf_len" parameter that is unused.

To address these issue introduce a new function with "mirror" naming,
wmi_unified_extscan_start_hotlist_monitor_cmd(), which has an
appropriate parameter list.

It is expected that all clients of the existing API will be moved to
the new API, at which point the existing API can be removed.

Change-Id: Ie705f2462c7d5befa691f1ab57293e55ab68e3e2
CRs-Fixed: 2289368
这个提交包含在:
Jeff Johnson
2018-07-13 19:10:50 -07:00
提交者 nshrivas
父节点 2e4a1c86bc
当前提交 5d2803d1c7
修改 3 个文件,包含 19 行新增2 行删除

查看文件

@@ -3566,20 +3566,22 @@ struct wmi_roam_invoke_cmd {
};
/**
* struct ext_scan_setbssid_hotlist_params - set hotlist request
* struct extscan_bssid_hotlist_set_params - set hotlist request
* @request_id: request_id
* @vdev_id: vdev id
* @lost_ap_sample_size: number of samples to confirm AP loss
* @num_ap: Number of hotlist APs
* @ap: hotlist APs
*/
struct ext_scan_setbssid_hotlist_params {
struct extscan_bssid_hotlist_set_params {
uint32_t request_id;
uint8_t vdev_id;
uint32_t lost_ap_sample_size;
uint32_t num_ap;
struct ap_threshold_params ap[WMI_WLAN_EXTSCAN_MAX_HOTLIST_APS];
};
/* legacy naming */
#define ext_scan_setbssid_hotlist_params extscan_bssid_hotlist_set_params
/**
* struct host_mem_req - Host memory request paramseters request by target