I can't connect to wifi, network manager says "wrong password" even though it is correct

After another update of kernel to 6.1.12-1 wifi works just fine, without changing any network settings.