I've got a TP-Link WR1043ND set up as a repeater-bridge based on a combination of settings I've scratched together from various Howtos. Bottom line is that it works, but has 2 problems:
1. I can't access the router using an Ethernet cable plugged into one of the switch ports despite manually setting my PC to an IP in the correct subnet.
2. The wireless AP bit of the bridge doesn't appear until it's made its connection to the upstream AP.
Any suggestions as to what I've screwed up?
network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option gateway '192.168.1.254'
option dns '192.168.1.254'
option ipaddr '192.168.2.103'
config switch
option name 'rtl8366rb'
option reset '1'
option enable_learning '0'
option enable_vlan4k '1'
config switch_vlan
option device 'rtl8366rb'
option vlan '2'
option ports '0 5t'
config interface 'wwan'
option _orig_ifname 'wlan0-1'
option _orig_bridge 'false'
option proto 'static'
option ipaddr '192.168.1.2'
option netmask '255.255.255.0'
option gateway '192.168.1.254'
option dns '192.168.1.254'
config interface 'stabridge'
option proto 'relay'
option ipaddr '192.168.1.2'
option _orig_ifname 'wlan0-1'
option _orig_bridge 'false'
list network 'lan'
list network 'wwan'
wireless
config wifi-device 'radio0'
option type 'mac80211'
option macaddr '54:e6:fc:dc:b5:dc'
option hwmode '11ng'
option htmode 'HT20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'DSSS_CCK-40'
option country 'AU'
option txpower '20'
option disabled '0'
option channel '5'
config wifi-iface
option device 'radio0'
option mode 'sta'
option network 'wwan'
option ssid 'Wineyard'
option encryption 'psk2'
option key '****'
config wifi-iface
option device 'radio0'
option mode 'ap'
option ssid 'Boreshed'
option encryption 'psk'
option key '***'
option network 'lan stabridge'