aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2016-02-29 17:05:40 -0500
committerKalle Valo <kvalo@codeaurora.org>2016-03-10 15:29:18 +0200
commit739dc9f2f5c01dafc7336ffebd9d36bba4f9174e (patch)
treeae522e7bca3125f35346eea0ff37a6478f92ee00
parentrtl8xxxu: Report media status using the correct H2C command for 8723bu (diff)
downloadwireguard-linux-739dc9f2f5c01dafc7336ffebd9d36bba4f9174e.tar.xz
wireguard-linux-739dc9f2f5c01dafc7336ffebd9d36bba4f9174e.zip
rtl8xxxu: Dump contents of unhandled C2H events
Dump the contents of unhandled C2H events. We should be handling all expected events, so this is debugging help in case an unexpected event happens. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
index 3441361df981..07f4ee0c7cad 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
@@ -7446,7 +7446,10 @@ static void rtl8723bu_handle_c2h(struct rtl8xxxu_priv *priv,
c2h->bt_mp_info.ext_id, c2h->bt_mp_info.status);
break;
default:
- dev_info(dev, "Unhandled C2H event %02x\n", c2h->id);
+ dev_info(dev, "Unhandled C2H event %02x seq %02x\n",
+ c2h->id, c2h->seq);
+ print_hex_dump(KERN_INFO, "C2H content: ", DUMP_PREFIX_NONE,
+ 16, 1, c2h->raw.payload, len, false);
break;
}
}