Enlarge swap size by modifying file /etc/dphys-swapfile
CONF_SWAPSIZE=2048Disable Protected Management Frames by adding the line to file /etc/NetworkManager/NetworkManager.conf
[connection]
wifi-sec.pmf=disableGet WiFi power save configuration
iw dev wlan0 get power_saveDisable WiFi power save configuration
sudo iw dev wlan0 set power_save off