traffic_agent: Change send() from blocking to non-blocking mode

Change send() socket call flag to non-blocking mode to avoid timeout.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
diff --git a/traffic_agent.c b/traffic_agent.c
index 890de54..a94aeb7 100644
--- a/traffic_agent.c
+++ b/traffic_agent.c
@@ -441,7 +441,7 @@
 		}
 
 		s->tx_act_frames++;
-		res = send(s->sock, pkt, s->payload_size, 0);
+		res = send(s->sock, pkt, s->payload_size, MSG_DONTWAIT);
 		if (res >= 0) {
 			s->tx_frames++;
 			s->tx_payload_bytes += res;
@@ -536,7 +536,7 @@
 		WPA_PUT_BE32(&pkt[16], now.tv_usec);
 
 		s->tx_act_frames++;
-		res = send(s->sock, pkt, s->payload_size, 0);
+		res = send(s->sock, pkt, s->payload_size, MSG_DONTWAIT);
 		if (res >= 0) {
 			s->tx_frames++;
 			s->tx_payload_bytes += res;
@@ -607,7 +607,7 @@
 		WPA_PUT_BE32(&pkt[12], now.tv_sec);
 		WPA_PUT_BE32(&pkt[16], now.tv_usec);
 
-		res = send(s->sock, pkt, s->payload_size, 0);
+		res = send(s->sock, pkt, s->payload_size, MSG_DONTWAIT);
 		if (res >= 0) {
 			s->tx_frames++;
 			s->tx_payload_bytes += res;