Hey, I'm having the same problem here. If I turn my wifi off and on again, my Raspberry 4 won't connect automatically and if I force it manually I have to enter the passphrase again. Sometimes libreelec even needs a reboot before being able to reconnect. I am using Matrix here too but I have never tested with previous versions of KODI.