[Solved] 'Invalid argument' connecting to Wifi

  • Hi,

    i am currently trying to setup LibreElec 8.1.6 for Wifi on a Beelink MXIII II box booting from USB.

    My WPA key has a length of 63 alphanumeric characters. I always reveive 'Invalid argument' when trying to connect to the wireless network.

    Do you have any hint?

    I don´t want to change the WPA key, since it works on all of my other wireless devices (such as iPhone, Android smartphone and tablet and a bunch of consoles).

    Thanks a lot.

  • Finally I find a workaround by myself:

    1.Router: set a simple WPA key

    2. Connected LibreElec successfully to the wireless network.

    3. Edited the corresponding network config file in ./cache/connman and exchanged the key with my old long WPA key.

    4. Router: set the old WPA key with a length of 63 alphanumeric characters.

    5. Connected LibreElec successfully to the wireless network.

    Maybe some kind of a timeout issue, since the input of the long key takes a while?!? Anyway, it works now :)

  • Code
    connmanctl
    agent on
    scan wifi
    connect wifi_blah_blah
    copy/paste the key when prompted

    ^ this avoids editing cache files that aren't supposed to be edited.