summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandrasekaran, Manishekar <cmshekar@qti.qualcomm.com>2015-04-28 16:08:24 +0530
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-04-30 19:08:22 +0530
commitb47b5353f7aec472857752e7755d770781e6ef42 (patch)
tree906c3431a4e4688b15e03c563f6b2cc7aa643503
parente7cbf20385ee3f56cc3fc54029f990b6a7472a99 (diff)
qcacld: Broadcast nl messages from driver for FW events
Broadcast all the nl messages generated by firmware event handler. Change-Id: I018ece8912fec88083ce44255797cca40afd250c CRs-Fixed: 821059
-rw-r--r--CORE/UTILS/FWLOG/dbglog_host.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/CORE/UTILS/FWLOG/dbglog_host.c b/CORE/UTILS/FWLOG/dbglog_host.c
index 2dfa45983a87..1a0590b65f8d 100644
--- a/CORE/UTILS/FWLOG/dbglog_host.c
+++ b/CORE/UTILS/FWLOG/dbglog_host.c
@@ -1694,7 +1694,7 @@ send_diag_netlink_data(const u_int8_t *buffer,
return -1;
}
- nlh = nlmsg_put(skb_out, 0, 0, NLMSG_DONE, slot_len, 0);
+ nlh = nlmsg_put(skb_out, 0, 0, WLAN_NL_MSG_CNSS_DIAG, slot_len, 0);
slot = (struct dbglog_slot *) nlmsg_data(nlh);
slot->diag_type = cmd;
slot->timestamp = cpu_to_le32(jiffies);
@@ -1702,12 +1702,11 @@ send_diag_netlink_data(const u_int8_t *buffer,
/* Version mapped to get_version here */
slot->dropped = get_version;
memcpy(slot->payload, buffer, len);
- NETLINK_CB(skb_out).dst_group = 0; /* not in mcast group */
- res = nl_srv_ucast(skb_out, cnss_diag_pid, MSG_DONTWAIT);
+ res = nl_srv_bcast(skb_out);
if (res < 0) {
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
- ("nl_srv_ucast failed 0x%x \n", res));
+ ("nl_srv_bcast failed 0x%x \n", res));
cnss_diag_pid = INVALID_PID;
return res;
}