NAN: Introduce versioning

Introduce versioning in sigma_dut for compatability with different
targets.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
diff --git a/nan.c b/nan.c
index 312ade8..9ab4ff6 100644
--- a/nan.c
+++ b/nan.c
@@ -1,6 +1,6 @@
 /*
  * Sigma Control API DUT (NAN functionality)
- * Copyright (c) 2014-2015, Qualcomm Atheros, Inc.
+ * Copyright (c) 2014-2017, Qualcomm Atheros, Inc.
  * All Rights Reserved.
  * Licensed under the Clear BSD license. See README for more details.
  */
@@ -12,6 +12,8 @@
 #include "wifi_hal.h"
 #include "nan_cert.h"
 
+#if NAN_CERT_VERSION >= 2
+
 pthread_cond_t gCondition;
 pthread_mutex_t gMutex;
 wifi_handle global_wifi_handle;
@@ -1215,3 +1217,43 @@
 	}
 	return 0;
 }
+
+#else /* #if NAN_CERT_VERSION */
+
+int nan_cmd_sta_preset_testparameters(struct sigma_dut *dut,
+				      struct sigma_conn *conn,
+				      struct sigma_cmd *cmd)
+{
+	return 1;
+}
+
+
+int nan_cmd_sta_get_parameter(struct sigma_dut *dut, struct sigma_conn *conn,
+			      struct sigma_cmd *cmd)
+{
+	return 0;
+
+}
+
+
+void nan_cmd_sta_reset_default(struct sigma_dut *dut, struct sigma_conn *conn,
+			       struct sigma_cmd *cmd)
+{
+	return;
+}
+
+
+int nan_cmd_sta_get_events(struct sigma_dut *dut, struct sigma_conn *conn,
+			   struct sigma_cmd *cmd)
+{
+	return 0;
+}
+
+
+int nan_cmd_sta_exec_action(struct sigma_dut *dut, struct sigma_conn *conn,
+			    struct sigma_cmd *cmd)
+{
+	return 0;
+}
+
+#endif /* #if NAN_CERT_VERSION */