sudo gedit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf[connection]
wifi.powersave = 3
Change the powersave value from 3 to 2, to disable WiFi power management.wifi.powersave = 2
After saving the file run sudo systemctl restart NetworkManager
Here are the possible values for Power Save
(0): use the default value
(1): don't touch existing setting
(2): disable powersave
(3): enable powersave