qcacld-3.0: HDD changes for common scan module

HDD changes to support scan start and abort

Change-Id: I3260369879108f167453d5e0b8435c30ed729c5e
CRs-Fixed: 2013212
diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c
index 3278e02..b8fe11f 100644
--- a/core/hdd/src/wlan_hdd_ioctl.c
+++ b/core/hdd/src/wlan_hdd_ioctl.c
@@ -6943,8 +6943,12 @@
 		hdd_err("value out of range");
 		return -EINVAL;
 	}
-
+#ifndef NAPIER_SCAN
+	/* This code will be removed*/
 	scan_pending = !qdf_list_empty(&hdd_ctx->hdd_scan_req_q);
+#else
+	scan_pending = ucfg_scan_get_pdev_status(hdd_ctx->hdd_pdev);
+#endif
 	status = sme_handle_set_fcc_channel(hdd_ctx->hHal, !fcc_constraint,
 					    scan_pending);
 	if (status != QDF_STATUS_SUCCESS) {