How to Stop Ubuntu from Automatically Scanning for WiFi Networks

The Battery Draining Scans

Ubuntu uses NetworkManager to handle all wireless and wired connections. By default, when your Wi-Fi adapter is turned on but not connected to a network, or even when connected, NetworkManager periodically performs aggressive background scans. It constantly searches for available access points in your vicinity to populate the network drop-down list. While this ensures the list is always up-to-date, it forces the Wi-Fi radio to consume significant power, reducing laptop battery life. Furthermore, frequent background scanning can cause momentary latency spikes or micro-stutters if you are actively gaming or streaming on an existing, stable connection.

Disabling Background Wi-Fi Scans via BSSID

To stop Ubuntu from automatically scanning for new Wi-Fi networks in the background while you are connected, you need to bind your connection to a specific router address (BSSID) using the network configuration tools.

Open your terminal (`Ctrl + Alt + T`). You will use the `nmcli` (NetworkManager Command Line Interface) tool. First, find your current connection name by typing nmcli connection show --active. Note the exact name under the “NAME” column (e.g., “HomeWiFi”). Next, find the MAC address of the specific router access point you are connected to by running nmcli -f in-use,bssid dev wifi. Note the BSSID next to the asterisk. Now, you will lock your connection to this specific hardware address. Run the command: nmcli connection modify "YourConnectionName" 802-11-wireless.bssid "XX:XX:XX:XX:XX:XX" (replacing the placeholders with your actual network name and BSSID). Because the connection is now hardcoded to look for only one specific physical router, NetworkManager will completely stop performing broad background scans for other networks, instantly stabilizing your latency and saving battery power.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.