OpenWRT in Wi-Fi STA mode: specify multiple access points

Hi Gurus, hope you can help me:

For a particular use-case, I need to configure OpenWRT in STA mode in such a way that it will connect to one of the nearby configured Access Points (kind of roaming idea). I would like OpenWRT to do this automatically for me so I need to configure at least two wireless networks.

I have the following UCI configuration:

package wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/10300000.wmac'
        option disabled '0'

config wifi-iface
        option network 'wwan'
        option device 'radio0'
        option mode 'sta'
        option ssid 'Wifi_test_A'
        option encryption 'psk2'
        option key 'AAAA'


config wifi-iface
        option network 'wwan'
        option device 'radio0'
        option mode 'sta'
        option ssid 'Wifi_test_B'
        option encryption 'psk2'
        option key 'BBBB'

Somehow this isn't working.
It does work when I configure only one of these WLANs.

Any hints on how to get this working?

not sure you can have the same wwan name for both.

Travelmate can do what you need.

2 Likes