# Unable to have stable Wifi with MT7697 over UART or SPI

**URL:** <https://mangoh.discourse.group/t/unable-to-have-stable-wifi-with-mt7697-over-uart-or-spi/2560>\
**Category:** mangOH Red\
**Created:** [April 17, 2019, 7:39am UTC](https://mangoh.discourse.group/t/unable-to-have-stable-wifi-with-mt7697-over-uart-or-spi/2560 "2019-04-17T07:39:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![c.pahl](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@c.pahl](https://mangoh.discourse.group/u/c.pahl)\
**Post date:** [April 17, 2019, 12:37pm UTC](https://mangoh.discourse.group/t/unable-to-have-stable-wifi-with-mt7697-over-uart-or-spi/2560/3 "2019-04-17T12:37:27Z")

</div>

Hmm, internet is working, but it’s not very stable. I tried to download a large file (`wget -O /dev/null http://speedtest.belwue.net/10G`), but it stalled somewhere in the middle and showed a lot of those lines in `dmesg`:

```auto
[14639.729649] mt7697core mt7697core: mt7697_proc_80211cmd(): unsupported cmd(165)
[14639.737244] mt7697core RSP 00000000: a5 a5 a5 a5 a5 a5 a5 a5
[14639.737259] mt7697serial mt7697serial: mt7697_uart_rx_work(): rx_fcn() failed(-22)

```

Sometimes messages like these are interspersed:

```auto
[564.632426] mt7697core mt7697core: mt7697_proc_mac_addr(): invalid MAC address rsp len(0 != 16)
[564.640895] mt7697core mt7697core: mt7697_proc_80211cmd(): mt7697_proc_mac_addr() failed(-22)
[564.819421] mt7697core mt7697core: mt7697_proc_connect_ind(): invalid connect ind len(14926 != 24)
[564.828610] mt7697core mt7697core: mt7697_proc_80211cmd(): mt7697_proc_connect_ind() failed(-22)
[565.809880] mt7697serial mt7697serial: mt7697_uart_rx_work(): Rx invalid message type(85)

```

Note that it did not seem to stall completely, but got slower the longer it ran and the more messages it produced. Letting it run without load seems to not trigger the behavior. Maybe it just takes longer. It still have the serial cable attached, if that’s important.

Any idea? Is the `mt7697wifi` a good choice when requiring a stable connection? Any experience on this?

**EDIT:** The same issue happens when using SPI ([as per this thread](https://mangoh.discourse.group/t/mediatek-wifi-on-spi-solved/2568))

```auto
[613.337877] mt7697core mt7697core: mt7697_rx_data(): invalid Rx frame size(18)
[613.337913] mt7697core mt7697core: mt7697_rx_raw(): mt7697_rx_data() failed(-22)
[613.345103] mt7697core mt7697core: mt7697_proc_80211cmd(): mt7697_rx_raw() failed(-22)

```

---

_[View the full topic](https://mangoh.discourse.group/t/unable-to-have-stable-wifi-with-mt7697-over-uart-or-spi/2560)._
