Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath10k: Move non-fatal warn logs to dbg level for SDIO chip

ath10k will receive some message with invalid peer id from firmware.
reason is:
There are incoming frames to MAC hardware that NOT find relative
address search table, then peer id is invalid set by MAC hardware,
it is hardware's logic, so fix it in ath10k will be more convenient.

log:
ath10k_sdio mmc1:0001:1: Got RX ind from invalid peer: 65535

Tested with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00007-QCARMSWP-1.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Wen Gong and committed by
Kalle Valo
bd1a4ac5 c709df58

+1 -1
+1 -1
drivers/net/wireless/ath/ath10k/htt_rx.c
··· 2165 2165 spin_lock_bh(&ar->data_lock); 2166 2166 peer = ath10k_peer_find_by_id(ar, peer_id); 2167 2167 spin_unlock_bh(&ar->data_lock); 2168 - if (!peer) 2168 + if (!peer && peer_id != HTT_INVALID_PEERID) 2169 2169 ath10k_warn(ar, "Got RX ind from invalid peer: %u\n", peer_id); 2170 2170 2171 2171 num_mpdu_ranges = MS(__le32_to_cpu(rx->hdr.info1),