qcacmn: Limit netlink log on console

WLAN registers with multicast group 1 which is used by some legacy
infrastructure, may receive some wlan irrelative events, don't need
print on console.

Change-Id: I48fca745a603fd9875e2161d48144b4283fd6493
CRs-Fixed: 3137354
Tento commit je obsažen v:
Jianmin Zhu
2022-02-25 14:48:26 +08:00
odevzdal Madan Koyyalamudi
rodič 6e77f9fcce
revize 5a0dd70fc9

Zobrazit soubor

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -720,9 +721,9 @@ static void nl_srv_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
/* Only requests are handled by kernel now */
if (!(nlh->nlmsg_flags & NLM_F_REQUEST)) {
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_WARN,
"NLINK: Received Invalid NL Req type [%x]",
nlh->nlmsg_flags);
QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_HDD,
"NLINK: Received Invalid NL Req type [%x]",
nlh->nlmsg_flags);
return;
}
@@ -730,8 +731,9 @@ static void nl_srv_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
/* Unknown message */
if (type < WLAN_NL_MSG_BASE || type >= WLAN_NL_MSG_MAX) {
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_WARN,
"NLINK: Received Invalid NL Msg type [%x]", type);
QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_HDD,
"NLINK: Received Invalid NL Msg type [%x]",
type);
return;
}
@@ -740,9 +742,9 @@ static void nl_srv_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
* Drop any message with invalid length
*/
if (nlh->nlmsg_len < NLMSG_LENGTH(sizeof(tAniMsgHdr))) {
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_WARN,
"NLINK: Received NL Msg with invalid len[%x]",
nlh->nlmsg_len);
QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_HDD,
"NLINK: Received NL Msg with invalid len[%x]",
nlh->nlmsg_len);
return;
}
@@ -753,8 +755,8 @@ static void nl_srv_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
if (nl_srv_msg_handler[type]) {
(nl_srv_msg_handler[type])(skb);
} else {
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_WARN,
"NLINK: No handler for Netlink Msg [0x%X]", type);
QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_HDD,
"NLINK: No handler for msg [0x%X]", type);
}
}