commit 5c20aa5944d2023279578614c60751d7bed8763a Author: Howard Chu Date: Mon Apr 20 18:50:23 2009 -0700 Restore madwifi hack, don't scan when connected diff --git a/src/nm-device-wifi.c b/src/nm-device-wifi.c index 63c2c9d..07ddfd3 100644 --- a/src/nm-device-wifi.c +++ b/src/nm-device-wifi.c @@ -1777,7 +1777,16 @@ can_scan (NMDeviceWifi *self) return FALSE; } - return TRUE; + /* Devices supporting only B/G frequencies can scan when disconnected + * and activated, but not when activating. We don't allow a/b/g devices to + * scan when activated, because there are just too many channels to scan and + * it takes too long to scan them, so users get angry when their SSH + * sessions lag. + */ + if ((priv->num_freqs <= 14) && (dev_state == NM_DEVICE_STATE_ACTIVATED)) + return TRUE; + + return FALSE; } static gboolean