Hello i have D-link DIR-300 rev. B5 working on Zyxel Keenetic Start firmware. I use my router as Wifi Client (to ISP) and AP to my home network at the same time. Everything works fine and i can simply configure this mode from WEBui.
Recently I decided to study OpenWrt using my D-link DIR-300 rev. B5 as test platform and tried to replicate the existing configuration Wifi Client and AP on one device. Install OpenWrt-15.05. Turn on LuCI.
In LuCI add WiFi Client to my ISP and everything OK. Packets from lan go to external networks.
Working /etc/config/wireless:
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path '10180000.wmac'
option txpower '20'
option country '00'
option disabled '0'
option channel '13'
option htmode 'HT20'
config wifi-iface
option network 'wwan'
option ssid 'kotya_wifi'
option encryption 'psk2'
option device 'radio0'
option mode 'sta'
option bssid '10:BF:xx:xx:xx:xx'
option key '12345678'
Working routing table:
root@OpenWrt:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.93.1 0.0.0.0 UG 0 0 0 wlan0
10.0.0.0 * 255.255.255.0 U 0 0 0 br-lan
192.168.93.0 * 255.255.255.0 U 0 0 0 wlan0
192.168.93.1 * 255.255.255.255 UH 0 0 0 wlan0
After that in Luci i add second wifi interface which will working as local AP. After applying changes wifi is down (wifi indicator light is off) and network not working. Rebooting don't help.
/etc/config/wireless become:
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path '10180000.wmac'
option htmode 'HT40'
option txpower '20'
option country '00'
option disabled '0'
option channel '13'
config wifi-iface
option network 'wwan'
option ssid 'kotya_wifi'
option encryption 'psk2'
option device 'radio0'
option mode 'sta'
option bssid '10:BF:xx:xx:xx:xx'
option key '12345678'
config wifi-iface
option device 'radio0'
option mode 'ap'
option ssid 'ZyXEL'
option wmm '0'
option encryption 'psk2+ccmp'
option key '12345678'
Routing table become:
root@OpenWrt:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 br-lan
When i from LuCI delete local AP and reboot network work again.
How to make work my DIR-300 rev. B5 WiFi as Client and AP mode at the same time? Whats wrong ?