Travelmate does not connect on boot

OpenWRT 18.06.9 on dir320-b1

I created an openwrt image with the travelmate package.
And set up wifi clients with uci. But trm doesn't connect to routers on boot.

After a couple of hours of searching, I found an error in /usr/bin/
If anyone encounters this, I will describe the solution.

Travelmate does not work correctly with named uci wifi sections that have "_" character in their name:

config wifi-iface 'wwan_asus'
        option device 'radio0'
        option mode 'sta'
        option bssid '***'
        option ssid 'asus'
        option encryption 'psk2'
        option key '***'
        option disassoc_low_ack '0'
        option network 'trm_wwan'
        option disabled '1'

Error in the, line 310:

                        sta_essid="$(uci_get wireless "${config}" ssid)"
                        sta_bssid="$(uci_get wireless "${config}" bssid)"
                        sta_iface="$(uci_get wireless "${config}" network)"

${sta%%_*} - truncates the name at the first occurrence of '_'.
"wwan_asus_radio0" becomes "wwan".

The solution is to not use underscores in wifi section names.

I'd have expected an upgrade from a 4 yrs old release to be the solution.

1 Like

Unfortunately, the supported version 21.02.3 listed here goes into a permanent reboot

Otherwise, version 18.06.9 +travelmate +wireguard, on dir320 for video surveillance, I am completely satisfied