qcacld-3.0: [HDD/TXRX] Reduce the log spam in kmsg
Move the logs to appropriate log levels to avoid excessive
logging in kmsg.
CRs-Fixed: 2029891
Change-Id: I782eadeb8c27f89ec635850201755720f068e955
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index f10f98f..7360e1b 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -247,6 +247,8 @@
* Function registered with the Linux OS for transmitting
* packets. This version of the function directly passes
* the packet to Transport Layer.
+ * In case of any packet drop or error, log the error with
+ * INFO HIGH/LOW/MEDIUM to avoid excessive logging in kmsg.
*
* Return: Always returns NETDEV_TX_OK
*/
@@ -308,26 +310,26 @@
hdd_softap_get_sta_id(pAdapter,
pDestMacAddress, &STAId)) {
QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA,
- QDF_TRACE_LEVEL_WARN,
+ QDF_TRACE_LEVEL_INFO_HIGH,
"%s: Failed to find right station", __func__);
goto drop_pkt;
}
if (STAId >= WLAN_MAX_STA_COUNT) {
QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA,
- QDF_TRACE_LEVEL_WARN,
+ QDF_TRACE_LEVEL_INFO_HIGH,
"%s: Failed to find right station", __func__);
goto drop_pkt;
} else if (false == pAdapter->aStaInfo[STAId].isUsed) {
QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA,
- QDF_TRACE_LEVEL_WARN,
+ QDF_TRACE_LEVEL_INFO_HIGH,
"%s: STA %d is unregistered", __func__,
STAId);
goto drop_pkt;
} else if (true == pAdapter->aStaInfo[STAId].
isDeauthInProgress) {
QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA,
- QDF_TRACE_LEVEL_WARN,
+ QDF_TRACE_LEVEL_INFO_HIGH,
"%s: STA %d deauth in progress", __func__,
STAId);
goto drop_pkt;
@@ -338,14 +340,14 @@
&& (OL_TXRX_PEER_STATE_AUTH !=
pAdapter->aStaInfo[STAId].tlSTAState)) {
QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA,
- QDF_TRACE_LEVEL_WARN,
+ QDF_TRACE_LEVEL_INFO_HIGH,
"%s: Station not connected yet", __func__);
goto drop_pkt;
} else if (OL_TXRX_PEER_STATE_CONN ==
pAdapter->aStaInfo[STAId].tlSTAState) {
if (ntohs(skb->protocol) != HDD_ETHERTYPE_802_1_X) {
QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA,
- QDF_TRACE_LEVEL_WARN,
+ QDF_TRACE_LEVEL_INFO_HIGH,
"%s: NON-EAPOL packet in non-Authenticated state",
__func__);
goto drop_pkt;
@@ -417,7 +419,7 @@
if (pAdapter->tx_fn(pAdapter->txrx_vdev,
(qdf_nbuf_t) skb) != NULL) {
- QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA, QDF_TRACE_LEVEL_WARN,
+ QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA, QDF_TRACE_LEVEL_INFO_HIGH,
"%s: Failed to send packet to txrx for staid:%d",
__func__, STAId);
++pAdapter->hdd_stats.hddTxRxStats.txXmitDroppedAC[ac];