If you can’t connect to a Wi-Fi network on Mac
If you can’t connect to a Wi-Fi network on Mac - Apple Support
-2002F error
In Internet Recovery, these low negative thousands error messages indicate that your Wi-Fi Network is inadequate in some regard and cannot be used in its current condition. Make some changes:
Some known problems include—
Hidden Network name
Using of a proxy server to get Internet access
A required use of a login page to get Internet access
Use of a login server or certificate to get Internet access
Use of PPPoE in the Mac to get Internet access (typically only applies to DSL)
Use of Fixed IP address rather than DHCP
Variance of the time by more than five minutes
Failure of Router to provide workable DNS server addresses, or providing 0.0.0.0 [may produce -2002f]
You may in some cases be able to move your Mac close to the Router or connect to the Router directly using Ethernet cable.
The higher the number, the more obscure the problem.
Also, make certain the Date & Time and Time Zone are correct within 5 minutes.
ref: Grant Bennet-Alder
2002F error - Apple Community
You may in some cases be able to move your Mac close to the Router or connect to the Router directly using Ethernet cable.
Power Cycle your router
Disable any VPN or Proxy server
Uninstall any third party Cleaners,Optimizers,Anti-virus
Do a safe boot How to use safe mode on your Mac - Apple Support