OpenWrt Forum Archive

Topic: Same SSID for both bands

The content of this topic has been archived on 3 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
I have installed OpenWRT on TP-Link Archer C7 version 2, its a dual band device and I want to keep a single SSID for both bands and based on device type, AP automatically selects the band. But When I try to connect from my laptop to SSID, it sort of gets stuck and my laptop didnt even get the IP.
Please suggest if it is possible to have same SSID or whats the best way of handling this. Thanks

your config files* would be helpful

*)
/etc/config/wireless
/etc/config/dhcp
/etc/config/network

/etc/config/wireless

    config wifi-device 'radio0'
            option type 'mac80211'
            option hwmode '11a'
            option path 'pci0000:01/0000:01:00.0'
            option htmode 'VHT80'
            option disabled '0'
            option channel 'auto'

    config wifi-iface
            option device 'radio0'
            option network 'lan'
            option mode 'ap'
            option encryption 'none'
            option ssid 'Usman-Public-WiFi'

    config wifi-device 'radio1'
            option type 'mac80211'
            option hwmode '11g'
            option path 'platform/qca955x_wmac'
            option htmode 'HT20'
            option disabled '0'
            option channel 'auto'

    config wifi-iface
            option device 'radio1'
            option network 'lan'
            option mode 'ap'
            option encryption 'none'
            option ssid 'Usman-Public-WiFi'

/etc/config/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 'fd69:6744:19db::/48'

    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.10.1'

    config interface 'wan'
            option ifname 'eth0'
            option proto 'dhcp'

    config interface 'wan6'
            option ifname 'eth0'
            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 '0 2 3 4 5'

    config switch_vlan
            option device 'switch0'
            option vlan '2'
            option ports '1 6'

/etc/config/dhcp

    config dnsmasq
            option domainneeded '1'
            option boguspriv '1'
            option filterwin2k '0'
            option localise_queries '1'
            option rebind_protection '1'
            option rebind_localhost '1'
            option local '/lan/'
            option domain 'lan'
            option expandhosts '1'
            option nonegcache '0'
            option authoritative '1'
            option readethers '1'
            option leasefile '/tmp/dhcp.leases'
            option resolvfile '/tmp/resolv.conf.auto'
            option localservice '1'

    config dhcp 'lan'
            option interface 'lan'
            option start '100'
            option limit '150'
            option leasetime '12h'
            option dhcpv6 'server'
            option ra 'server'

    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'

Also to add I am using Coovachilli as captive portal, so the DHCP part is done by CoovaChilli.
When I set disabled to 1, then I was able to connect to SSID and surf properly.

config wifi-device 'radio1'
            option type 'mac80211'
            option hwmode '11g'
            option path 'platform/qca955x_wmac'
            option htmode 'HT20'
            option disabled '1'
            option channel 'auto'

Two things, have you tried this setup without the CoovaChilli Part?
Second, "option disabled '1'" means this band (2.4 Ghz) is disabled, so only the 5 Ghz band is active.

The discussion might have continued from here.