|
@@ -1,5 +1,6 @@
|
|
/*
|
|
/*
|
|
* Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
|
|
* 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
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* 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 */
|
|
/* Only requests are handled by kernel now */
|
|
if (!(nlh->nlmsg_flags & NLM_F_REQUEST)) {
|
|
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;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -730,8 +731,9 @@ static void nl_srv_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
|
|
|
|
|
|
/* Unknown message */
|
|
/* Unknown message */
|
|
if (type < WLAN_NL_MSG_BASE || type >= WLAN_NL_MSG_MAX) {
|
|
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;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -740,9 +742,9 @@ static void nl_srv_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
|
|
* Drop any message with invalid length
|
|
* Drop any message with invalid length
|
|
*/
|
|
*/
|
|
if (nlh->nlmsg_len < NLMSG_LENGTH(sizeof(tAniMsgHdr))) {
|
|
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;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -753,8 +755,8 @@ static void nl_srv_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
|
|
if (nl_srv_msg_handler[type]) {
|
|
if (nl_srv_msg_handler[type]) {
|
|
(nl_srv_msg_handler[type])(skb);
|
|
(nl_srv_msg_handler[type])(skb);
|
|
} else {
|
|
} 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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|