Switching between AP and STA

If the file works, then it's fine (but if that's the case - I don't really understand your post unless you're literally looking at the lines and just don't understand). I would just advise you not to be frustrated. I know it must be frustrating; but likewise, there's not much magic to using the default files that came with OpenWrt.

So the next step, would be to add STA config.

I assume this is the unaltered file.

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/10300000.wmac'
        option channel '1'
        option band '2g'
        option htmode 'HT20'
        option disabled '0'
        option country 'XX

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'
        option disabled '1'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'wwan' #<---this network has to be created
        option mode 'sta'
        option ssid 'upstream_ap_SSID'
        option encryption 'none'
  • Replace XX with your actual Country
  • This will connect you to a station with name upstream_ap_SSID
  • The Travelmate package can be used to better switch between enabling and disabling between STA and AP, see: Travelmate support thread