wlan: Change nl_srv_ucast to take in flag argument

Modify the nl_srv_ucast function to take in flag argument which
will be used to indicate to do blocking or non blocking netlink
send.

Change-Id: I1f5af51d42f9a750fef82f212aff8c4b6d3d0f9e
Crs-Fixed: 628068
diff --git a/CORE/SVC/inc/wlan_nlink_srv.h b/CORE/SVC/inc/wlan_nlink_srv.h
index 708d2e4..ac61eff 100644
--- a/CORE/SVC/inc/wlan_nlink_srv.h
+++ b/CORE/SVC/inc/wlan_nlink_srv.h
@@ -56,7 +56,7 @@
 #endif /* WLAN_KD_READY_NOTIFIER */
 int nl_srv_register(tWlanNlModTypes msg_type, nl_srv_msg_callback msg_handler);
 int nl_srv_unregister(tWlanNlModTypes msg_type, nl_srv_msg_callback msg_handler);
-int nl_srv_ucast(struct sk_buff * skb, int dst_pid);
+int nl_srv_ucast(struct sk_buff * skb, int dst_pid, int flag);
 int nl_srv_bcast(struct sk_buff * skb);
 #ifdef WLAN_KD_READY_NOTIFIER
 void nl_srv_nl_ready_indication(void);
diff --git a/CORE/SVC/src/btc/wlan_btc_svc.c b/CORE/SVC/src/btc/wlan_btc_svc.c
index 7f97e7c..bc38829 100644
--- a/CORE/SVC/src/btc/wlan_btc_svc.c
+++ b/CORE/SVC/src/btc/wlan_btc_svc.c
@@ -199,7 +199,7 @@
    if(dest_pid == 0)
       (void)nl_srv_bcast(skb);
    else
-      (void)nl_srv_ucast(skb, dest_pid);
+      (void)nl_srv_ucast(skb, dest_pid, MSG_DONTWAIT);
 }
 /*
  * Activate BTC handler. This will register a handler to receive
diff --git a/CORE/SVC/src/nlink/wlan_nlink_srv.c b/CORE/SVC/src/nlink/wlan_nlink_srv.c
index 26e3de7..b3e0731 100644
--- a/CORE/SVC/src/nlink/wlan_nlink_srv.c
+++ b/CORE/SVC/src/nlink/wlan_nlink_srv.c
@@ -160,7 +160,7 @@
  * Unicast the message to the process in user space identfied
  * by the dst-pid
  */
-int nl_srv_ucast(struct sk_buff *skb, int dst_pid)
+int nl_srv_ucast(struct sk_buff *skb, int dst_pid, int flag)
 {
    int err;
 
@@ -171,7 +171,7 @@
 #endif
    NETLINK_CB(skb).dst_group = 0; //not multicast
 
-   err = netlink_unicast(nl_srv_sock, skb, dst_pid, MSG_DONTWAIT);
+   err = netlink_unicast(nl_srv_sock, skb, dst_pid, flag);
 
    if (err < 0)
       VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_WARN,
diff --git a/CORE/SVC/src/ptt/wlan_ptt_sock_svc.c b/CORE/SVC/src/ptt/wlan_ptt_sock_svc.c
index ede6f0b..25efd1f 100644
--- a/CORE/SVC/src/ptt/wlan_ptt_sock_svc.c
+++ b/CORE/SVC/src/ptt/wlan_ptt_sock_svc.c
@@ -118,7 +118,7 @@
 #ifdef PTT_SOCK_DEBUG_VERBOSE
    ptt_sock_dump_buf((const unsigned char *)skb->data, skb->len);
 #endif
-   err = nl_srv_ucast(skb, pid);
+   err = nl_srv_ucast(skb, pid, MSG_DONTWAIT);
    return err;
 }
 /*