[qca-nss-drv] Enable single core support for sysctl and debugfs

Change-Id: I44972b8214e4bd472abd837b4de6aac92c3bd94e
Signed-off-by: Suman Ghosh <sumaghos@codeaurora.org>
diff --git a/nss_stats.c b/nss_stats.c
index 71fca9d..c02f001 100644
--- a/nss_stats.c
+++ b/nss_stats.c
@@ -440,7 +440,7 @@
 		return;
 	}
 
-	for (i = 0; i < NSS_MAX_CORES; ++i) {
+	for (i = 0; i < nss_top_main.num_nss; ++i) {
 		memset(file_name, 0, sizeof(file_name));
 		scnprintf(file_name, sizeof(file_name), "core%d", i);
 		core_dentry = debugfs_create_dir(file_name,