LibreELEC / LibreELEC.tv

Just enough OS for KODI
http://libreelec.tv
2.25k stars 1.11k forks source link

Wetek Play 2: Invalid-key while connecting to wifi #8760

Open rdorsch opened 6 months ago

rdorsch commented 6 months ago

Describe the bug

This is a continuation of issue #7166 but for LE12.

How to reproduce

Steps to reproduce the behavior:

  1. Install LibreELEC-AMLGX.aarch64-12.0-nightly-20240323-353213e-box.img.gz on Wetek Play 2
  2. Try to connect to a Wifi network
  3. Consistently an invalid-key message is obtained

Information

Log file

kodi.log: https://paste.libreelec.tv/in-elephant.log

dmesg output: https://paste.libreelec.tv/welcomed-sloth.log

Context

I have LE12 on rock64 working flawless on the same OpenWrt router. The wireless signal strength reported by the wetek is rather low (~50), but also with the wifi router next to the wetek (~78) the same error occurs.

What is weird: with an Android Wifi-Hotspot with similar signal strength (~76), wifi on the wetek play 2 works flawless.

heitbaum commented 6 months ago

I can see the following in the logs. The WPA3 error also in the 8731 report.

iwd[371]: Could not register frame watch type 00b0: -22 and WPA3 (CMD_SET_CQM failed line) the line before “connect failed”

Proposition “does iwd fail when the capabilities of the card don’t match the access point” eg FT, WPA3, ….

given you have a fail with bcm to openwrt. But success bcm to android HS.

I’m pretty sure the reported “invalid key” is the default error when the iwd gets an error during authentication. We saw this last year when doing detailed testing that the driver or wireless stack errors propagate.

given that you have a working scenario

a) bcm to android - what capabilities doesn’t that network offer that are offered by openwrt. Remove those from openwrt, retest, cross fingers…..

I don’t think this is the magic fix for all, it seems like different drivers have different results, and given your experience - the bcm driver is “more fragile/picky/???”

jonian commented 5 months ago

I'm having the same issue on RPi5 with LibreELEC 12 Beta 1. Had the same issue with LE 11 and updated to 12 in hope that it will be fixed. Irrelevant to this, but now I'm also having issues with BT connectivity and a DS4 controller. Edited and new issue created

vilhelmgray commented 5 months ago

I'm curious if you are able to connect to your OpenWrt router when configured for an unencrypted connection. In issue #8731, I seem to have trouble with unencrypted signals too which seems to indicate that the problem lies elsewhere in iwd rather than the security configuration. I suspect, as heitbaum pointed out, that the invalid-key error message is just a default failure code for any problem the arises during that point.