qcacld-3.0: Rate limit error logs in NAN and NDP cmd handlers

If NAN or NDP support is disabled through INI, repeated NAN/NDP
requests from upper layers flood console logs. Convert these
error prints to rate limited prints to avoid excessive logging.

Rate limit error logs in NAN and NDP cmd handlers.

Change-Id: Ie3e7fce9e829c64d3d21d856a72a957365a04aa8
CRs-Fixed: 2355727
diff --git a/core/hdd/src/wlan_hdd_nan.c b/core/hdd/src/wlan_hdd_nan.c
index 180c4d8..11d2be8 100644
--- a/core/hdd/src/wlan_hdd_nan.c
+++ b/core/hdd/src/wlan_hdd_nan.c
@@ -70,7 +70,7 @@
 	}
 
 	if (!cfg_nan_get_enable(hdd_ctx->psoc)) {
-		hdd_err("NaN support is not enabled in INI");
+		hdd_err_rl("NaN support is not enabled in INI");
 		return -EPERM;
 	}
 
diff --git a/core/hdd/src/wlan_hdd_nan_datapath.c b/core/hdd/src/wlan_hdd_nan_datapath.c
index 306b3b3..61b2ae5 100644
--- a/core/hdd/src/wlan_hdd_nan_datapath.c
+++ b/core/hdd/src/wlan_hdd_nan_datapath.c
@@ -354,18 +354,18 @@
 	}
 
 	if (!WLAN_HDD_IS_NDP_ENABLED(hdd_ctx)) {
-		hdd_err("NAN datapath is not enabled");
+		hdd_err_rl("NAN datapath is not enabled");
 		return -EPERM;
 	}
 	/* NAN data path coexists only with STA interface */
 	if (false == hdd_is_ndp_allowed(hdd_ctx)) {
-		hdd_err("Unsupported concurrency for NAN datapath");
+		hdd_err_rl("Unsupported concurrency for NAN datapath");
 		return -EPERM;
 	}
 
 	/* NAN data path coexists only with STA interface */
 	if (false == hdd_is_ndp_allowed(hdd_ctx)) {
-		hdd_err("Unsupported concurrency for NAN datapath");
+		hdd_err_rl("Unsupported concurrency for NAN datapath");
 		return -EPERM;
 	}