openwrt / mt76

mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
738 stars 341 forks source link

Wifi clients are not accessible from other wifi clients after some time #350

Open tkso1997 opened 4 years ago

tkso1997 commented 4 years ago

I am Using a Xiaomi 3Pro with Openwrt. The Wifi Chip is a mt7615.

edit: other wifi clients are also affected (amazon FireTV and iPhone).

After about one day of usage my AirPrint Printer and Bose soundtouch Speaker are no longer visible on my Macbook and my ios devices (for the soundtouch I use the Bose app). Both the printer and the speaker are still connected to the wifi (at least the luci wireless page states that). After I rebooted the router, both things work again for the next couple of hours. I think it has something to do with the wifi, as using the closed source drivers (MTK with the same version of OpenWrt) does not lead to that kind of weird disconnection issues after some time.

the issue happens at least with the last master builds and 19.07.X

Any ideas what can cause the problems or is there anything I could do to help debugging it?

nbd168 commented 4 years ago

What's the revision number of the latest master build that you tried?

tkso1997 commented 4 years ago

OpenWrt SNAPSHOT, r12173-01c8f2e97c

tkso1997 commented 4 years ago

EDIT: problem occurs with hosted-2.8 as well. I have the feeling that it takes longer but its not "solved" by downgrading hostapd. ...

I did some more research and testing. As soon as my printer and Soundtuch speaker becoming unavailable I tried to ping their IP address from my MacBook. The result is that there is no ping going through. BUT I can still ping them from the router! I If I restart the wifi or reboot the router the connection is working again for a couple of hours before it starts agin...

The problem exists till the current master and I suspect its caused by hosted-2.9. I made an 19.07.2 image with the old hostapd-2.8 (from 4 May 2019, commit 8af79550e6c280717660f66032d89d21007b15d2) and it works perfectly, no disconnects after a couple of days.

Where should I report that, who is responsible for the hostapd implementation in openwrt?

tkso1997 commented 4 years ago

Problem still exists on newest master, while the same snapshot works on r7800 and c2600 (both use athk10) without this issue. Therefore I guess it has something to do with the mt76 wifi drivers. Its a really annoying bug! Let me know If I can do something to help narrowing the problem down ...

tkso1997 commented 4 years ago

apparently changing the time interval for the rekeying GTK to 0 sort of solves the issue. Maybe this information helps to find the underlying problem? Again: athk10 in the same network works fine.