There are multiple USB wifi cards connected to a single laptop (via powered hub)
Card 0 is reserved for ad hoc connections and is already working fine
The rest of the cards need to scan area frequently and connect to wifi networks found
There will be a file in which I can list the preferred networks with their key. (wep/wpa etc)
Every X minutes system will scan surrounding area
If some preferred network is found then connect to them using available cards.
cards and preferred network must be read top down for priority.
So if 5 cards are available and 3 preferred networks are found then card 1 will connect to first preferred network, card 2 to second etc.
After all preferred network have been connected to and connection works, ie can reach 188.8.131.52
connect to open networks with strongest network as highest priority.
DO ONE NEW CONNECTION EVERY X MINUTES
When a connected network is no longer in sight or can not reach 184.108.40.206. make the wifi card available.
Connect to new networks when seen.
every time a new network is connected to. Make that the default route.
Ensure that 1 network is connected to 1 wifi card max.
Do NOT move connection from 1 wifi card to another card just because signal strength has changed.
when i plug in the usb devices at this time i get
Jul 3 04:54:07 Ecuador2 kernel: rtl8192cu: Board Type 0
Jul 3 04:54:07 Ecuador2 [url removed, login to view]: Cannot find firmware file 'rtlwifi/[url removed, login to view]'
Jul 3 04:54:07 Ecuador2 kernel: usbcore: registered new interface driver usbserial
Jul 3 04:54:07 Ecuador2 kernel: USB Serial support registered for generic
Jul 3 04:54:07 Ecuador2 kernel: usbcore: registered new interface driver usbserial_generic
Jul 3 04:54:07 Ecuador2 kernel: usbserial: USB Serial Driver core
Jul 3 04:54:07 Ecuador2 kernel: USB Serial support registered for GSM modem (1-port)
Jul 3 04:54:07 Ecuador2 kernel: usbcore: registered new interface driver option
Jul 3 04:54:07 Ecuador2 kernel: option: v0.7.2:USB Driver for GSM modems
Jul 3 04:54:07 Ecuador2 logger: usb_modeswitch: adding device ID bda/8176/200: to driver "option"