When an Operating System has several wireless networks available (and known, this is: in its "preferred" list), it is supposed to do an intelligent management of roaming between them, usually connecting to the best one (measuring it by several factors, like coverage or speed).
But, when working with some Linux distros (for example the intended for security auditing ones), I have found such management not so intelligent: sometimes the net keeps down (not behaving completely OK) and the operating system stays on that wireless network.
So, I was thinking about doing a script myself to force Linux to select another wireless network when the connected one slows down or directly fails (maybe checkable by pinging the router/access point).
For what I have read about command-line wireless management, the "connect to" thing seems a bit awkward.
Does anyone know about a good "switch-to-network" command-line tool running under Linux? Remember I don't need to connect to a new network: I just want to connect to an already-some-day connected network, so the operating system is supposed to know the password, encryption data and so on.
Possible command-line examples:
switchtowifi --essid MyWiFiNetwork switchtowifi --essid MyWiFiNetwork --bssid 11:22:33:44:55:66 switchtowifi --channel 5
The first example switches to any already-stored WiFi network named
The second example switches to the already-stored WiFi network named
MyWiFiNetwork whose BSSID is
The third example switches to any already-stored WiFi network on channel 5.