qcacmn: Clean up the extscan unified WMI (phase 2)

For a full explanation of the problem and phased solution refer to
"qcacmn: Clean up the extscan unified WMI (phase 1)", Change-Id
I11800361b572331cfada00fb7d518c314df20b43, in the qca-wifi-host-cmn
project.

For phase 2 (this change):
Replace all references of the badly named identifiers with references
to the properly named substitutes. Note that this phase may touch
multiple repos and may involve a number of separate changes.

Change-Id: Ie19d632faa50b23f18a2214a7b2502830ff3fbd3
CRs-Fixed: 2282767
diff --git a/wmi/inc/wmi_unified_extscan_api.h b/wmi/inc/wmi_unified_extscan_api.h
index 0d91164..3898b7a 100644
--- a/wmi/inc/wmi_unified_extscan_api.h
+++ b/wmi/inc/wmi_unified_extscan_api.h
@@ -26,7 +26,7 @@
 					struct wifi_passpoint_req_param *req);
 
 QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
-		struct wifi_enhanched_pno_params *req);
+		struct wifi_enhanced_pno_params *req);
 
 QDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl,
 			  struct extscan_capabilities_params *pgetcapab);
@@ -51,7 +51,7 @@
 			  struct wifi_scan_cmd_req_params *pstart);
 
 QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
-				   struct ext_scan_setbssi_hotlist_params *
+				   struct ext_scan_setbssid_hotlist_params *
 				   photlist, int *buf_len);
 
 #endif /* _WMI_UNIFIED_EXTSCAN_API_H_ */
diff --git a/wmi/inc/wmi_unified_priv.h b/wmi/inc/wmi_unified_priv.h
index 1e902d0..5b3e6eb 100644
--- a/wmi/inc/wmi_unified_priv.h
+++ b/wmi/inc/wmi_unified_priv.h
@@ -470,7 +470,7 @@
 					struct wifi_passpoint_req_param *req);
 
 QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle,
-		struct wifi_enhanched_pno_params *req);
+		struct wifi_enhanced_pno_params *req);
 
 QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle,
 			  struct extscan_capabilities_params *pgetcapab);
@@ -807,7 +807,7 @@
 					 struct get_arp_stats *req_buf);
 
 QDF_STATUS (*send_get_buf_extscan_hotlist_cmd)(wmi_unified_t wmi_handle,
-				   struct ext_scan_setbssi_hotlist_params *
+				   struct ext_scan_setbssid_hotlist_params *
 				   photlist, int *buf_len);
 
 #ifdef FEATURE_WLAN_APF
diff --git a/wmi/src/wmi_unified_extscan_api.c b/wmi/src/wmi_unified_extscan_api.c
index bcd696c..5c25aae 100644
--- a/wmi/src/wmi_unified_extscan_api.c
+++ b/wmi/src/wmi_unified_extscan_api.c
@@ -73,7 +73,7 @@
  *          error number otherwise
  */
 QDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
-		struct wifi_enhanched_pno_params *req)
+		struct wifi_enhanced_pno_params *req)
 {
 	wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
 
@@ -246,7 +246,7 @@
  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure.
  */
 QDF_STATUS wmi_unified_get_buf_extscan_hotlist_cmd(void *wmi_hdl,
-				   struct ext_scan_setbssi_hotlist_params *
+				   struct ext_scan_setbssid_hotlist_params *
 				   photlist, int *buf_len)
 {
 	wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
diff --git a/wmi/src/wmi_unified_extscan_tlv.c b/wmi/src/wmi_unified_extscan_tlv.c
index 6a43e66..dc2cd8b 100644
--- a/wmi/src/wmi_unified_extscan_tlv.c
+++ b/wmi/src/wmi_unified_extscan_tlv.c
@@ -144,7 +144,7 @@
  * Returns: 0 on success, error number otherwise
  */
 static QDF_STATUS send_set_epno_network_list_cmd_tlv(wmi_unified_t wmi_handle,
-		struct wifi_enhanched_pno_params *req)
+		struct wifi_enhanced_pno_params *req)
 {
 	wmi_nlo_config_cmd_fixed_param *cmd;
 	nlo_configured_parameters *nlo_list;
@@ -184,7 +184,7 @@
 		       WMITLV_TAG_STRUC_wmi_nlo_config_cmd_fixed_param,
 		       WMITLV_GET_STRUCT_TLVLEN(
 			       wmi_nlo_config_cmd_fixed_param));
-	cmd->vdev_id = req->session_id;
+	cmd->vdev_id = req->vdev_id;
 
 	/* set flag to reset if num of networks are 0 */
 	cmd->flags = (req->num_networks == 0 ?
@@ -276,7 +276,7 @@
 	}
 
 	WMI_LOGD("set ePNO list request sent successfully for vdev %d",
-		 req->session_id);
+		 req->vdev_id);
 
 	return ret;
 }
@@ -355,7 +355,7 @@
 		(wmi_extscan_get_cached_results_cmd_fixed_param));
 
 	cmd->request_id = pcached_results->request_id;
-	cmd->vdev_id = pcached_results->session_id;
+	cmd->vdev_id = pcached_results->vdev_id;
 	cmd->control_flags = pcached_results->flush;
 
 	if (wmi_unified_cmd_send(wmi_handle, wmi_buf, len,
@@ -406,7 +406,7 @@
 		(wmi_extscan_configure_wlan_change_monitor_cmd_fixed_param));
 
 	cmd->request_id = reset_req->request_id;
-	cmd->vdev_id = reset_req->session_id;
+	cmd->vdev_id = reset_req->vdev_id;
 	cmd->mode = 0;
 
 	buf_ptr += sizeof(*cmd);
@@ -436,7 +436,7 @@
  *
  * This function fills elements of change monitor request buffer.
  *
- * Return: CDF status
+ * Return: QDF status
  */
 static QDF_STATUS wmi_get_buf_extscan_change_monitor_cmd
 			(wmi_unified_t wmi_handle,
@@ -474,7 +474,7 @@
 	       (wmi_extscan_configure_wlan_change_monitor_cmd_fixed_param));
 
 	cmd->request_id = psigchange->request_id;
-	cmd->vdev_id = psigchange->session_id;
+	cmd->vdev_id = psigchange->vdev_id;
 	cmd->total_entries = numap;
 	cmd->mode = 1;
 	cmd->num_entries_in_page = numap;
@@ -592,7 +592,7 @@
 	(wmi_extscan_configure_hotlist_monitor_cmd_fixed_param));
 
 	cmd->request_id = photlist_reset->request_id;
-	cmd->vdev_id = photlist_reset->session_id;
+	cmd->vdev_id = photlist_reset->vdev_id;
 	cmd->mode = 0;
 
 	buf_ptr += sizeof(*cmd);
@@ -642,7 +642,7 @@
 			       (wmi_extscan_stop_cmd_fixed_param));
 
 	cmd->request_id = pstopcmd->request_id;
-	cmd->vdev_id = pstopcmd->session_id;
+	cmd->vdev_id = pstopcmd->vdev_id;
 
 	if (wmi_unified_cmd_send(wmi_handle, wmi_buf, len,
 				 WMI_EXTSCAN_STOP_CMDID)) {
@@ -681,7 +681,7 @@
 	uint8_t *buf_ptr;
 	int i, k, count = 0;
 	int len = sizeof(*cmd);
-	int nbuckets = pstart->numBuckets;
+	int nbuckets = pstart->num_buckets;
 	int nchannels = 0;
 
 	/* These TLV's are are NULL by default */
@@ -690,7 +690,7 @@
 	int num_bssid = 0;
 	int ie_len = 0;
 
-	uint32_t base_period = pstart->basePeriod;
+	uint32_t base_period = pstart->base_period;
 
 	/* TLV placeholder for ssid_list (NULL) */
 	len += WMI_TLV_HDR_SIZE;
@@ -711,7 +711,7 @@
 	/* TLV channel placeholder */
 	len += WMI_TLV_HDR_SIZE;
 	for (i = 0; i < nbuckets; i++) {
-		nchannels += src_bucket->numChannels;
+		nchannels += src_bucket->num_channels;
 		src_bucket++;
 	}
 
@@ -732,9 +732,9 @@
 		       WMITLV_GET_STRUCT_TLVLEN
 			       (wmi_extscan_start_cmd_fixed_param));
 
-	cmd->request_id = pstart->requestId;
-	cmd->vdev_id = pstart->sessionId;
-	cmd->base_period = pstart->basePeriod;
+	cmd->request_id = pstart->request_id;
+	cmd->vdev_id = pstart->vdev_id;
+	cmd->base_period = pstart->base_period;
 	cmd->num_buckets = nbuckets;
 	cmd->configuration_flags = 0;
 	if (pstart->configuration_flags & WMI_EXTSCAN_LP_EXTENDED_BATCHING)
@@ -747,7 +747,6 @@
 	cmd->max_scan_time = WMI_EXTSCAN_MAX_SCAN_TIME;
 	cmd->burst_duration = WMI_EXTSCAN_BURST_DURATION;
 #endif
-	cmd->max_bssids_per_scan_cycle = pstart->maxAPperScan;
 
 	/* The max dwell time is retrieved from the first channel
 	 * of the first bucket and kept common for all channels.
@@ -756,7 +755,7 @@
 	cmd->max_dwell_time_active = pstart->max_dwell_time_active;
 	cmd->min_dwell_time_passive = pstart->min_dwell_time_passive;
 	cmd->max_dwell_time_passive = pstart->max_dwell_time_passive;
-	cmd->max_bssids_per_scan_cycle = pstart->maxAPperScan;
+	cmd->max_bssids_per_scan_cycle = pstart->max_ap_per_scan;
 	cmd->max_table_usage = pstart->report_threshold_percent;
 	cmd->report_threshold_num_scans = pstart->report_threshold_num_scans;
 
@@ -818,15 +817,16 @@
 		dest_blist->exp_backoff = src_bucket->exponent;
 		dest_blist->exp_max_step_count = src_bucket->step_count;
 		dest_blist->channel_band = src_bucket->band;
-		dest_blist->num_channels = src_bucket->numChannels;
+		dest_blist->num_channels = src_bucket->num_channels;
 		dest_blist->notify_extscan_events = 0;
 
-		if (src_bucket->reportEvents & WMI_EXTSCAN_REPORT_EVENTS_EACH_SCAN)
+		if (src_bucket->report_events &
+					WMI_EXTSCAN_REPORT_EVENTS_EACH_SCAN)
 			dest_blist->notify_extscan_events =
 					WMI_EXTSCAN_CYCLE_COMPLETED_EVENT |
 					WMI_EXTSCAN_CYCLE_STARTED_EVENT;
 
-		if (src_bucket->reportEvents &
+		if (src_bucket->report_events &
 				WMI_EXTSCAN_REPORT_EVENTS_FULL_RESULTS) {
 			dest_blist->forwarding_flags =
 				WMI_EXTSCAN_FORWARD_FRAME_TO_HOST;
@@ -839,7 +839,8 @@
 				WMI_EXTSCAN_NO_FORWARDING;
 		}
 
-		if (src_bucket->reportEvents & WMI_EXTSCAN_REPORT_EVENTS_NO_BATCH)
+		if (src_bucket->report_events &
+					WMI_EXTSCAN_REPORT_EVENTS_NO_BATCH)
 			dest_blist->configuration_flags = 0;
 		else
 			dest_blist->configuration_flags =
@@ -863,7 +864,7 @@
 		/* save the channel info to later populate
 		 * the  channel TLV
 		 */
-		for (k = 0; k < src_bucket->numChannels; k++) {
+		for (k = 0; k < src_bucket->num_channels; k++) {
 			save_channel[count++].channel = src_channel->channel;
 			src_channel++;
 		}
@@ -975,7 +976,7 @@
  */
 static QDF_STATUS send_get_buf_extscan_hotlist_cmd_tlv
 			(wmi_unified_t wmi_handle,
-			struct ext_scan_setbssi_hotlist_params *photlist,
+			struct ext_scan_setbssid_hotlist_params *photlist,
 			int *buf_len)
 {
 	wmi_extscan_configure_hotlist_monitor_cmd_fixed_param *cmd = NULL;
@@ -988,7 +989,7 @@
 	int cmd_len = 0;
 	int num_entries;
 	int min_entries = 0;
-	uint32_t numap = photlist->numAp;
+	uint32_t numap = photlist->num_ap;
 	int len = sizeof(*cmd);
 
 	len += WMI_TLV_HDR_SIZE;
@@ -1027,8 +1028,8 @@
 		/* Multiple requests are sent until the num_entries_in_page
 		 * matches the total_entries
 		 */
-		cmd->request_id = photlist->requestId;
-		cmd->vdev_id = photlist->sessionId;
+		cmd->request_id = photlist->request_id;
+		cmd->vdev_id = photlist->vdev_id;
 		cmd->total_entries = numap;
 		cmd->mode = 1;
 		cmd->num_entries_in_page = min_entries;