qcacld-3.0: Add NAN datapath enabled flag to HDD context

qcacld-2.0 to qcacld-3.0 propagation

Add nan_datapath_enabled flag in HDD context to represent current
disable/enable state of NAN datapath feature.
Do not modify the .ini configured value because getConfig command
will show incorrect results.

Change-Id: Ib0b44168aca24802d8bd86b0665a1060ba3a1bf5
CRs-Fixed: 962367
diff --git a/core/hdd/src/wlan_hdd_nan_datapath.c b/core/hdd/src/wlan_hdd_nan_datapath.c
index 8b57e18..6c53f7b 100644
--- a/core/hdd/src/wlan_hdd_nan_datapath.c
+++ b/core/hdd/src/wlan_hdd_nan_datapath.c
@@ -86,9 +86,10 @@
 void hdd_nan_datapath_target_config(hdd_context_t *hdd_ctx,
 					struct wma_tgt_cfg *cfg)
 {
-	hdd_ctx->config->enable_nan_datapath &= cfg->nan_datapath_enabled;
-	hddLog(LOG1, FL("enable_nan_datapath: %d"),
-		hdd_ctx->config->enable_nan_datapath);
+	hdd_ctx->nan_datapath_enabled =
+		hdd_ctx->config->enable_nan_datapath &&
+			cfg->nan_datapath_enabled;
+	hdd_info(FL("enable_nan_datapath: %d"), hdd_ctx->nan_datapath_enabled);
 }
 
 /**
@@ -849,8 +850,8 @@
 		hdd_err(FL("Command not allowed in FTM mode"));
 		return -EPERM;
 	}
-	if (!hdd_ctx->config->enable_nan_datapath) {
-		hdd_err(FL("NAN datapath is not suported"));
+	if (!WLAN_HDD_IS_NDP_ENABLED(hdd_ctx)) {
+		hdd_err(FL("NAN datapath is not enabled"));
 		return -EPERM;
 	}
 	if (nla_parse(tb, QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX,