Comment 25 for bug 37821

Revision history for this message
Rodrigo Virote Kassick (kassick) wrote :

The solution would be an option to disable background scanning in nm -- sure

While no one in nm devel does so, i've done a hackish fix: in nm-device-802-11-wireless.c, changing 14 to 10 solved the problem (since my atheros has 11 channels)

/*¬
* A/B/G cards should only scan if they are disconnected. Set the timeout to active¬
* for the case we lose this connection shortly, it will reach this point and then¬
* nm_device_is_activated will return FALSE, letting the scan proceed.¬
*/¬

/////if ((self->priv->num_freqs > 14) && nm_device_is_activated (NM_DEVICE (self)) == TRUE)¬
/////Atheros does not like scanning too and has 11 channels, changing this to 10 (Kassick)
if ((self->priv->num_freqs > 10) && nm_device_is_activated (NM_DEVICE (self)) == TRUE)¬

   nm_device_802_11_wireless_set_scan_interval (app_data, self, NM_WIRELESS_SCAN_INTERVAL_ACTIVE);>¬
  goto reschedule;¬