Here's the relevant configurations:

*WDS access point*

# /etc/config/network

config interface 'wds_bridge'
    option ifname 'wlan0'
    option ipaddr '192.168.0.2/24'  # this will allow you to reach the
station via IP
    option proto 'static'
    option type 'bridge'

# /etc/config/wireless

config wifi-device 'radio0'
    # ... the radio config options depend on your use case ... #
    option channel '11'
    option country 'IT'
    option htmode 'HT20'
    option hwmode '11g'
    option phy 'phy0'
    option txpower '20'
    option type 'mac80211'  # tested with mac80211 only

config wifi-iface
    option device 'radio0'
    option ifname 'wlan0'
    option mode 'ap'
    option network 'wds_bridge'  # must be attached to the bridge
    option ssid 'your-ssid'
    option wds '1'

*WDS station and repeater*

# /etc/config/network

config interface 'wifi_bridge'
    option ifname 'wlan0 wlan1'  # station and repeater AP must be
bridged to broadcast layer2 packets
    option ipaddr '192.168.0.3/24'  # this will allow you to reach the
station via IP
    option proto 'static'
    option type 'bridge'

# /etc/config/wireless

config wifi-device 'radio0'
    # ... the radio used as station must have the same config options as
the AP ... #
    option channel '11'
    option country 'IT'
    option htmode 'HT20'
    option hwmode '11g'
    option phy 'phy0'
    option txpower '5'
    option type 'mac80211'

config wifi-iface
    option bssid 'C0:4A:00:2D:05:FD'  # this is the AP mac address
    option device 'radio0'
    option mode 'sta'
    option network 'wifi_bridge' 
    option ssid 'your-ssid'  # must be attached to the bridge
    option wds '1'

config wifi-device 'radio1'
    # ... i'm using a separate radio on 5GHz band to repeat the wifi
signal ... #
    # ... but i'm pretty sure you can use the same radio, mind the
performance loss ... #
    option channel '36'
    option country 'IT'
    option disabled '0'
    option htmode 'HT20'
    option hwmode '11a'
    option phy 'phy1'
    option type 'mac80211'

config wifi-iface
    option device 'radio1'
    option mode 'ap'
    option network 'wifi_bridge'  # must be attached to the bridge
    option ssid 'your-ssid-repeater'

I hope it will be useful.

Nemesis


On 10/29/2015 05:17 PM, Nemesis wrote:
> I got it working, thanks also to Saverio who suggested me the solution
> via chat:
>
> the wireless interface (/etc/config/network) on the AP must be attached
> to a bridge interface in order for the WDS station to be bridged
> automatically.
>
> on the station I did mostly the same, I attached the two SSID (one STA
> and one AP) to a bridge interface.
>
> Federico
>
>
>
>
> On 10/23/2015 10:15 PM, Saverio Proto wrote:
>> post here
>>
>> cat /etc/config/network
>> cat /etc/config/wireless
>>
>> Saverio
>>
>>
>> 2015-10-23 18:19 GMT+02:00 Nemesis <[email protected]>:
>>> Hi everybody,
>>>
>>> I'm trying to understand how WDS works with 2 TP-Link WDR4300.
>>>
>>> Is this wiki page still relevant?
>>> http://wiki.openwrt.org/doc/recipes/atheroswds
>>>
>>> I have successfully connected the two routers via wifi, I see confirmation
>>> of this in the AP both via the luci interface and via ifconfig (because I
>>> see "wlan0.sta1").
>>>
>>> The problem is that the client doesn't et an IP address from the DHCP server
>>> running on the AP, so I cannot reach the internet nor any other host in the
>>> network.
>>>
>>> I also do not understand how to debug, what commands and tools should I use
>>> to understand what I'm doing wrong?
>>>
>>> the situation on the client router is as follows:
>>>
>>> the arp table is empty;
>>> the routing table is empty;
>>> bridge is brought up correctly between eth0.1 and wlan0 (wds client) but no
>>> DHCP lease is obtained from the AP
>>>
>>> Any other link to read and study?
>>>
>>> Thanks
>>> Federico
>>>
>>>
>>> _______________________________________________
>>> openwrt-users mailing list
>>> [email protected]
>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
>>>
>> _______________________________________________
>> openwrt-users mailing list
>> [email protected]
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to