After reading and searching some more, I found out that this functionality of temporarily enabling / disabling WiFi periodic scanning can be achieved like this:
The Network Manager also periodically scans for better channels. Disable it and setup wireless manually. Here is a set of commands that will do the job.
-------------------------------------------------------------------------------------------------------------------
sudo iw dev wlan0 scan //Just in case you want to scan available APs
sudo service network-manager stop //disable NM services
sudo touch /etc/wpa_supplicant/your-conf-file.conf //wpa_supplicant conf file used to exchange WPA keys with the AP
sudo wpa_passphrase <SSID> <Password> > /etc/wpa_supplicant/your-conf-file.conf //command to supply WPA credentials to the conf file
sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/your-conf-file.conf //command to associate wlan0 (interface) with the AP
sudo ifconfig wlan0 up //command to bring up the wireless interface
sudo dhclient wlan0 // command if you want IP configuration allocated through DHCP
----------------------------------------------------------------------------------------------------------------
Further details on these commands can be found here:
https://bbs.archlinux.org/viewtopic.php?id=141414
https://wiki.archlinux.org/index.php...p#Manual_setup
https://wiki.archlinux.org/index.php/WPA_Supplicant
https://wiki.archlinux.org/index.php...oint_discovery
Hopefuly this would be helpful to others.

Bookmarks