mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
wil6210: dump Rx status message on errors
Dump all the Rx status message on different errors to allow more visibility of the case. Change-Id: I81e7f52f56068ea214f63dda1f74b102aeb605df Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
This commit is contained in:
parent
38b9d28be7
commit
07f5da041f
1 changed files with 10 additions and 0 deletions
|
|
@ -955,6 +955,11 @@ again:
|
|||
if (unlikely(!wil_val_in_range(buff_id, 1, wil->rx_buff_mgmt.size))) {
|
||||
wil_err(wil, "Corrupt buff_id=%d, sring->swhead=%d\n",
|
||||
buff_id, sring->swhead);
|
||||
print_hex_dump(KERN_ERR, "RxS ", DUMP_PREFIX_OFFSET, 16, 1,
|
||||
(void *)msg, wil->use_compressed_rx_status ?
|
||||
sizeof(struct wil_rx_status_compressed) :
|
||||
sizeof(struct wil_rx_status_extended), false);
|
||||
|
||||
wil_rx_status_reset_buff_id(sring);
|
||||
wil_sring_advance_swhead(sring);
|
||||
sring->invalid_buff_id_cnt++;
|
||||
|
|
@ -1015,6 +1020,11 @@ again:
|
|||
|
||||
if (unlikely(dmalen > sz)) {
|
||||
wil_err(wil, "Rx size too large: %d bytes!\n", dmalen);
|
||||
print_hex_dump(KERN_ERR, "RxS ", DUMP_PREFIX_OFFSET, 16, 1,
|
||||
(void *)msg, wil->use_compressed_rx_status ?
|
||||
sizeof(struct wil_rx_status_compressed) :
|
||||
sizeof(struct wil_rx_status_extended), false);
|
||||
|
||||
stats->rx_large_frame++;
|
||||
rxdata->skipping = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue