Cant disable permanently power management on WiFi

Solution 1:

In Ubuntu 16.04 and above run this command to turn off power management.

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Reboot