Can you test my version of the script and see if that issue with password still exists
Code:
wget -N -t 5 -T 10 https://github.com/jeremyb31/wireless-info/raw/master/wireless-info && chmod +x wireless-info && ./wireless-info
For the wifi try
Code:
sudo iwconfig wlp7s0 power off
Reboot