OK. thanks for your reply.
Router Gl-Net GL-MT300A (Firmware: Lede trunk) connected via WIFI as client WIFI to the main router TP-Link WDR7500 (Firmware: Lede 17.01.0), access point: WF1.
The router TP-Link WDR7500 acts as a DHCP server. It is not installed relayd, because not needed. WPS is disabled, it is is necessary via relayd.
On the router Gl-Net GL-MT300A disabled local DHCP, installed relayd. Relayd exists in the list of running processes. Created WIFI access point (WF2). If you try to connect to the access point WF2 (Gl-Net GL-MT300A), then the IP is not allocated. Unable to connect.
On the main router (TP-Link WDR7500) in log many messages:
Fri Feb 24, 2017 9:42:02 daemon.info dnsmasq-dhcp [1609]: DHCPDISCOVER (br-lan)
Fri Feb 24, 2017 9:42:02 daemon.info dnsmasq-dhcp [1609]: DHCPOFFER (br-lan)
Fri Feb 24, 2017 9:42:07 daemon.info dnsmasq-dhcp [1609]: DHCPDISCOVER (br-lan)
Fri Feb 24, 2017 9:42:07 daemon.info dnsmasq-dhcp [1609]: DHCPOFFER (br-lan)
Configs main router (TP-Link WDR7500)
[details=TP-Link WDR7500]
dhcp
config dnsmasq
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option local '/loc/'
option domain 'loc'
option domainneeded '1'
option expandhosts '1'
option nonegcache '1'
option localise_queries '1'
option strictorder '1'
option rebind_protection '1'
option rebind_localhost '1'
option dnsforwardmax '1000'
list server '8.8.8.8'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
list dhcp_option '252,"\n"'
option ra 'server'
option ra_management '1'
option dhcpv6 'disabled'
config dhcp 'wan'
option interface 'wan'
option ignore '1'config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
config host
option name 'GlInet'
option mac 'xxx'
option ip '192.168.0.116'
network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'xxx'config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.0.1'
option _orig_ifname 'eth1 wlan0 wlan1'
option _orig_bridge 'true'config interface 'wan'
option ifname 'eth0'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'pppoe'
option username 'xxx'
option password 'xxx'
option mtu '1480'
option peerdns '0'
config interface 'wan6'
option ifname 'eth0'
option _orig_ifname 'eth0'
option proto 'dhcpv6'
option _orig_bridge 'false'
option peerdns '0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 5 0'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 6'
wireless
config wifi-device 'radio1'
option type 'mac80211'
option channel '11'
option path 'platform/qca955x_wmac'
option hwmode '11g'
option disabled '0'
option txpower '24'
option noscan '1'
option ar '1'
option bursting '1'
option ff '1'
option compression '1'
option distance '20'
option country 'US'
option htmode 'HT40-'
option frag '2346'
option rts '2347'
config wifi-iface 'default_radio1'
option hidden '0'
option device 'radio1'
option ssid 'WF1'
option key '12345'
option encryption 'psk2+ccmp'
option disabled '0'
option mode 'ap'
option network 'lan'
option wpa_group_rekey '7200'
option disassoc_low_ack '0'
firewall
config defaults
option syn_flood '1'
option input 'DROP'
option output 'DROP'
option forward 'DROP'
option drop_invalid '1'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'DROP'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
option mtu_fix '1'
config forwarding
option src lan
option dest wan[/details]
Configs for router as client WIFI (Gl-Net GL-MT300A)
[details=Gl-Net GL-MT300A]
dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option localservice '1'
option local '/lan/'
option domain 'lan'
option nonegcache '1'
list rebind_domain 'loc'
option nonwildcard '0'config dhcp 'lan'
option interface 'lan'
option ra 'server'
option ignore '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'config dhcp 'wwan'
option interface 'wwan'
option ignore '1'config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'xxx'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ip6assign '60'
option ipaddr '192.168.5.1'
option netmask '255.255.255.0'
option gateway '192.168.0.1'
option dns '192.168.0.1'
config device 'lan_dev'
option name 'eth0.1'
option macaddr 'xxx'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config device 'wan_dev'
option name 'eth0.2'
option macaddr 'xxx'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 6t'
config interface 'wwan'
option _orig_ifname 'wlan0'
option _orig_bridge 'false'
option proto 'static'
option ipaddr '192.168.0.116'
option gateway '192.168.0.1'
option dns '192.168.0.1'
option netmask '255.255.255.0'
config interface 'stabridge'
option proto 'relay'
option ipaddr '192.168.0.116'
list network 'lan'
list network 'wwan'
wireless
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/10180000.wmac'
option channel '11'
option txpower '20'
option country '00'
option ar '1'
option bursting '1'
option ff '1'
option compression '1'
option distance '20'
option frag '2346'
option rts '2347'
option noscan '1'
option htmode 'HT20'
config wifi-iface 'default_radio0'
option device 'radio0'
option mode 'sta'
option ssid 'WF1'
option encryption 'psk2+ccmp'
option key '12345'
option network 'wwan'
config wifi-iface 'default_radio1'
option device 'radio0'
option mode 'ap'
option network 'lan'
option encryption 'psk2+ccmp'
option key '12345'
option ssid 'WF2'
option wpa_group_rekey '7200'
firewall
config defaults
option input 'ACCEPT'
option output 'ACCEPT'
option drop_invalid '0'
option forward 'ACCEPT'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan wwan'
config zone
option name 'wan'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
option mtu_fix '1'
option network 'wan wan6'
config forwarding
option src 'lan'
option dest 'wan'[/details]