[RPi2B] Invalid Key/WiFi issues with USB dongle

  • If there was a general problem with DHCP on WiFi connections with LE13 nightlies there'd be a ton of posts on the topic, and there aren't. So whatever the issue is, i'm confident it's local to your environment.

    ConnMan debug logs are verbose and somewhat human-readable, but if you have a poor signal the inherent 'noise' that will add to the logs will make it challenging to spot any real issues. Poor signal is not the cause of the invalid-key issue, but as the issue is likely to be an unhandled radio/wireless error condition (the patch on the list is addressing that) poor signal correlates to the problem.

  • If there was a general problem with DHCP on WiFi connections with LE13 nightlies there'd be a ton of posts on the topic, and there aren't. So whatever the issue is, i'm confident it's local to your environment.

    I agree, but something seems to have changed between LE 12.0.2 and 12.2 that broke DHCP for me.

    I've built an image with the WiFi patch and flashed it to the Pi. It starts fine, but the DHCP issue persists. I haven't seen anything that looks like the invalid key issue, but I also have not tested for very long (<30 minutes) so I wouldn't say it's solved.
    Unfortunately, I can't really evaluate if the issue is fixed without a proper WiFi connection.

    I also tried moving the Pi as close to the AP as I can (~4m with a wall in line of sight; I'm limited by the availability of ethernet cable) and it reported signal strengths of 55-60 dBm which, according to a quick google search, seems to be excellent to good signal. Still the issue seemed to persist. When I tested the different versions earlier (in #17) I saw similar dBm values btw.

    I'll try current Raspbian (which seems to use kernel 6.12) next to see if the adapter fails in the same way there.

  • WiFi under RapberryPi OS works, but it uses rtl8192cu instead of the newer rtl8xxxu (which LibreELEC uses).

    Code
    pi@raspberrypi:~ $ lsmod | grep rtl
    rtl8192cu              86016  0
    rtl_usb                16384  1 rtl8192cu
    rtl8192c_common        61440  1 rtl8192cu
    rtlwifi               118784  3 rtl_usb,rtl8192c_common,rtl8192cu
    mac80211              954368  3 rtl_usb,rtlwifi,rtl8192cu
    cfg80211              888832  2 mac80211,rtlwifi
    rfkill                 28672  4 rtlwifi,cfg80211

    During research I've also found these two threads, might be relevant/interesting

    I'll try rtl8192cu under LibreELEC next.

    Edit: LibreELEC kernel does not seem to have this module. How would one enable it during the build process?

    Edited once, last by GamerBene19 (February 8, 2026 at 2:24 AM).

  • Quick update: I have switched to the other adapter (the one with the 'proper' antenna) -- the problem still occurs.

    When connected, I see dBm values <50 (which is an improvement), but the connection still drops frequently and is really unreliable.

    I'm thinking about buying simply buying something new to 'solve' the problem. What hardware is known to have reliable WiFi with LibreELEC? Does the newer Pi's onboard WiFi work reliably?

    This out of tree driver was dropped in favour of the now maintained in kernel mainline driver. https://github.com/LibreELEC/Libr…5c5c358151e3b61

    How can I temporarily re-enable that driver? Is reverting the three commits from the PR that disabled it enough?