Nexus 5x No Wifi. Default MAC 02-00-00-00-00-00 change attempt
Install lineageos and see if it works
As I see, vendor firmwares are quite glitchy on nexus phones (I have nexus 5 (Hammerhead, non-X) and vendor android 6 worked with freezes while latest lineageos nightly works perfectly (though without gapps))