Date: Thu, 7 Jun 2018 00:40:19 -0400 From: Farhan Khan <khanzf@gmail.com> To: freebsd-wireless@freebsd.org Subject: Ignoring R92C_C2H_EVT_DEBUG patch Message-ID: <CAFd4kYDQPePvDnPRG7555x-nG2nOzviFz=ohZyzg2w7791hzxw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Quick patch to rtwn's signal handling. Ignoring R92C_C2H_EVT_DEBUG interrupts rtl8188ee sends debugging interrupts a few times a second, which contain no information. Linux's rtl8723ae also ignores this signal. Currently, rtl8188ee prints endless C2H unhandled reports to the kernel messages, such as this: rtwn0: r92c_handle_c2h_task: C2H report 0 (len 0) was not handled rtwn0: r92c_handle_c2h_task: C2H report 0 (len 0) was not handled rtwn0: r92c_handle_c2h_task: C2H report 0 (len 0) was not handled ..... My associated git commit is located here: https://gitlab.com/farhankhan/freebsd/commit/9f9ff4bd883a88788376876fb09bac017dbb13e2 ============================================================================== diff --git a/sys/dev/rtwn/rtl8192c/r92c_fw.c b/sys/dev/rtwn/rtl8192c/r92c_fw.c index 0791990a0c00..14e517636c14 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_fw.c +++ b/sys/dev/rtwn/rtl8192c/r92c_fw.c @@ -477,6 +477,8 @@ r92c_handle_c2h_task(struct rtwn_softc *sc, union sec_param *data) __func__, i, sizeof(buf))); switch (id) { + case R92C_C2H_EVT_DEBUG: + break; case R92C_C2H_EVT_TX_REPORT: r92c_ratectl_tx_complete(sc, (uint8_t *)buf, len); break; ============================================================================== Thanks -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFd4kYDQPePvDnPRG7555x-nG2nOzviFz=ohZyzg2w7791hzxw>