Solution 1
Use the 5GHz band or change your position

1) Reduce the distance to your router, or move the router.

2) If your router supports the 5 GHz band, enable it in the router settings.

3) Changing the Wi-Fi channel or network name can help, because neighbouring networks may use the same frequency or name.

Solution 2
Connect to Wi-Fi via terminal

1) Open a terminal window

2) get your Wi-Fi interface name ifconfig -a
Result e.g. en1

3) Enter sudo networksetup en1 <WIFI-NAME> <WIFI-PASSWORD

Solution 3
Reset your Wi-Fi configuration

1) Open your finder and GoTo (cmd + shift + G) /Library/Preferences/SystemConfiguration/

2) Back up all files to your desktop.

3) Delete the following files:

  • com.apple.airport.preferences.plist
  • com.apple.network.identification.plist
  • com.apple.wifi.message-tracer.plist
  • NetworkInterfaces.plist
  • preferences.plist

4) Restart your MacBook.

Solution 4
Renew your DHCP Lease and check config

1) Go to System Settings > Network and choose Wi-Fi.

2) Select or join your Wi-Fi network with its password.

3) Click on Advanced and open the TCP/IP tab.

4) Choose Renew DHCP Lease

5) Go to the DNS tab.

6) Add 8.8.8.8 and 8.8.4.4 to the DNS Servers list

Other Solutions

1) Disable your bluetooth

2) Run Apple’s Wireless Diagnostics.

3) Reset the SMC (System Management Controller), a chip on Intel-based Macs that manages important physical components. You don’t need to reset the SMC on M1 Macs.
https://support.apple.com/en-us/HT201295

4) Reset the PRAM (parameter RAM), which stores core settings of your Mac. PRAM stands for parameter random access memory.
Press `OPT + CMD + P + R` at startup. Your Mac restarts after about 20 seconds.

5) Reset the Wi-Fi network adapter:

a) Open a terminal window

b) Check for your Wi-Fi interface ifconfig -a
Result e.g. en1

c) Type `sudo ifconfig en1 down`

d) Type `sudo ifconfig en1 up`