Cannot connect to WiFi after repair
I have a MacBook Pro 13" Late-2016 and a few weeks ago I noticed that the keyboard was not more responsive and characters were duplicated while typing, so I brought the machine to the Genius Bar. They replaced the whole bottom case including the battery and trackpad I guess, since there is a Quality Program for the specific macbook model. When I come back home with the repaired mac I noticed that I was no more able to connect to my home WiFi network, so I though that after repair I should do a clean installation of macOS Catalina 10.15.3, and so I did it (I completely formatted the hard drive and I reinstalled the system booting from the USB key) even resetting the NVRAM. The problem still remained, and I got the same error (Notice the "connection failed" message, it hardly ever appeared to me):
Since I am a computer engineer I started looking at logs, in particular the kernel logs and the wifi logs. In the meanwhile I noticed that by using the mobile hotspot from a samsung the wifi sometimes works. I thought about channels (weird because I connected the mac to the same router for about 2 years without having problems or changing configuration) and then WiFi security, and here I was right because open networks seems to work, while WPA2 seems having problem, so it's an authentication problem. The strange messages that I get from the kernel are the following:
Unexpected payload found for message 74, dataLen 104
payload Data 10 00 00 00 00 00 00 00 10 fe ed 34 2a 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Error storing postMessage 74
Unexpected payload found for message 9, dataLen 0
Error storing postMessage 9
en0: Terminating supplicant.
RSNSupplicant: Releasing authenticator for 00:00:00:00:00:00
Other things that I noticed are:
- this message on the syslog
- the (null) version of core wlan
- seems that the BSSID of the router is not obtained, see 00:00:00:00:00:00 in dmesg and in wifilog
I attach here the full logs, thank you to anyone that can help me
MacBook Pro