Also enable the NAN_AWARE_IFACE to send NAN_DEBUG_COMMAND command

NAN_DEBUG_COMMAND is sent on the same interface as that of the
all other NAN commands, but is triggered before the NAN_ENABLE
is triggered. Hence, also enable the NAN_AWARE_IFACE before this
command is triggered, which otherwise was getting enabled only
during NAN_ENABLE.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
diff --git a/nan.c b/nan.c
index 0a05366..a93d966 100644
--- a/nan.c
+++ b/nan.c
@@ -2446,6 +2446,10 @@
 
 		memcpy(cfg_debug.debug_cmd_data, &device_type_val, sizeof(u32));
 		size = sizeof(u32) + sizeof(u32);
+
+		if (if_nametoindex(NAN_AWARE_IFACE))
+		    run_system_wrapper(dut, "ifconfig %s up", NAN_AWARE_IFACE);
+
 		sigma_dut_print(dut, DUT_MSG_INFO,
 				"%s: Device Type: cmd type = %d and command data = %u",
 				__func__, cfg_debug.cmd, device_type_val);