WiFi dies if phone tries to connect to it
Sigh...

I wiped everything and installed the OxygenOS Oreo beta through adb sideload and now it works.

Hell do I know why this works now, but not even a complete OS switch to LineageOS worked.