diff options
| author | Chandrasekaran, Manishekar <cmshekar@qti.qualcomm.com> | 2015-04-01 17:09:41 +0530 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-04-08 16:04:18 +0530 |
| commit | 24c2a76ec07011feedf29bdd1d968617865d27c5 (patch) | |
| tree | 1b13d1b0a62a63ef7d118f9e62f174df9cc077b3 | |
| parent | 634f9b0a64b5c0a37df340a8564995baf7d7b98b (diff) | |
qcacld: Multicast nl messages from driver except for registration
This change ensures that all nl messages from the driver are
multicast and only registration messages are unicast
Change-Id: Ib46c9dcd27517cbaff4912ceef6cb2898b2244ee
CRs-Fixed: 816403
| -rw-r--r-- | CORE/SVC/src/ptt/wlan_ptt_sock_svc.c | 10 | ||||
| -rw-r--r-- | CORE/VOSS/src/vos_diag.c | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/CORE/SVC/src/ptt/wlan_ptt_sock_svc.c b/CORE/SVC/src/ptt/wlan_ptt_sock_svc.c index 2264d348786b..69e18face235 100644 --- a/CORE/SVC/src/ptt/wlan_ptt_sock_svc.c +++ b/CORE/SVC/src/ptt/wlan_ptt_sock_svc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2014 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2015 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -102,7 +102,13 @@ int ptt_sock_send_msg_to_app(tAniHdr *wmsg, int radio, int src_mod, int pid) #ifdef PTT_SOCK_DEBUG_VERBOSE ptt_sock_dump_buf((const unsigned char *)skb->data, skb->len); #endif - err = nl_srv_ucast(skb, pid, MSG_DONTWAIT); + + if (pid != -1) { + err = nl_srv_ucast(skb, pid, MSG_DONTWAIT); + } else { + err = nl_srv_bcast(skb); + } + return err; } /* diff --git a/CORE/VOSS/src/vos_diag.c b/CORE/VOSS/src/vos_diag.c index 9135bdd5bb3b..0239fc1db3fb 100644 --- a/CORE/VOSS/src/vos_diag.c +++ b/CORE/VOSS/src/vos_diag.c @@ -175,7 +175,7 @@ void vos_log_submit(v_VOID_t *plog_hdr_ptr) if(pHddCtx->ptt_pid != INVALID_PID) { - if( ptt_sock_send_msg_to_app(wmsg, 0, ANI_NL_MSG_PUMAC, pHddCtx->ptt_pid) < 0) { + if( ptt_sock_send_msg_to_app(wmsg, 0, ANI_NL_MSG_PUMAC, -1) < 0) { VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, ("Ptt Socket error sending message to the app!!")); vos_mem_free((v_VOID_t *)wmsg); @@ -277,7 +277,7 @@ void vos_event_report_payload(v_U16_t event_Id, v_U16_t length, v_VOID_t *pPaylo vos_mem_copy(pBuf, pPayload, length); - if( ptt_sock_send_msg_to_app(wmsg, 0, ANI_NL_MSG_PUMAC, pHddCtx->ptt_pid) < 0) { + if( ptt_sock_send_msg_to_app(wmsg, 0, ANI_NL_MSG_PUMAC, -1) < 0) { VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, ("Ptt Socket error sending message to the app!!")); vos_mem_free((v_VOID_t*)wmsg); |
