Wifi not/late detecting in TV

Hello
On my newly configured ex5601-t56 I'm facing issue with TV detecting it. When I turn on TV it will not automatically connect to it. After about 5 minutes and that also sometimes it will detect it and once it detect connection will be fine. It works all fine with ISP provided router with auto connecting when it is turned on. Below is wifi config

 cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/soc/18000000.wifi'
        option band '2g'
        option channel '1'
        option htmode 'HE20'
        option country 'PL'
        option cell_density '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'ssid'
        option encryption 'psk-mixed'
        option key '123'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'platform/soc/18000000.wifi+1'
        option band '5g'
        option channel '36'
        option htmode 'HE80'
        option country 'PL'
        option cell_density '0'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'ssid'
        option encryption 'sae'
        option key '123'
        option ocv '0'

ssid and password is same for both bands, I've changed encryption to different for 2g band considering WPA3 might not be supported by TV.
Every other device is not having any issue with connecting. Only TV seems to have issue.
What could be wrong here?

You shouldn't use psk-mixed wifi encryption, try WPA2 or WPA3.

tried WPA2 as well, it will not immediately detect and show ssid

also in my ISP router it is mixed mode configured by default and it works fine

Many streaming sticks / TVs do not support Protected Management Frames (a.k.a. PMF / 802.11w), which is required for WPA3. I suspect part of your issue is that you have the same SSID / WiFi password on both radios, while simultaneously having different encryption options for each.

I would guess that your TV is not PMF-capable, and is attempting to connect to the radio with WPA3. Have you looked at the logs to see what is there about the connection attempts?
Perhaps reconsider changing the SSID to something different on Radio0 and see if the TV connects.

2 Likes

Or something different than the old router's SSID, if they're the same...

1 Like

i get this after every android tv upgrade, once you connect back it is automatic again. realtek-something platform tv if that matters.

I tried changing name of 2g ssid and there is little improvement that it connect but still after few minutes. In ISP router it connects immediately without much delay. Have configured WPA2 now.
Any further ideas?

Is the ISP router upstream of your OpenWrt router? If so, how are the two connected (i.e. lan-lan, or lan-wan)?

Probably worth taking a look at your complete config:

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall

No AdBlock, AGH, or similar installed on Openwrt router ?
Or alternative DNS provided via Openwrt router, replacing ISPs DNS ?

I've connected LAN port of ISP router to WAN port of this router. And I've turned of wifi of ISP router to avoid any interference. IP range of ISP router is 192.168.2.0/24

Below is config:

root@OpenWrt:~# ubus call system board
{
        "kernel": "6.6.86",
        "hostname": "OpenWrt",
        "system": "ARMv8 Processor rev 4",
        "model": "Zyxel EX5601-T0 ubootmod",
        "board_name": "zyxel,ex5601-t0-ubootmod",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "24.10.1",
                "revision": "r28597-0425664679",
                "target": "mediatek/filogic",
                "description": "OpenWrt 24.10.1 r28597-0425664679",
                "builddate": "1744562312"
        }
}
root@OpenWrt:~# cat /etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fddd:2206:6315::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option device 'eth1'
        option proto 'dhcp'

config interface 'wan6'
        option device 'eth1'
        option proto 'dhcpv6'

root@OpenWrt:~# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/soc/18000000.wifi'
        option band '2g'
        option channel '1'
        option htmode 'HE20'
        option country 'PL'
        option cell_density '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'ssid1'
        option encryption 'psk2'
        option key '123'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'platform/soc/18000000.wifi+1'
        option band '5g'
        option channel '36'
        option htmode 'HE80'
        option country 'PL'
        option cell_density '0'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'ssid2'
        option encryption 'sae'
        option key '123'
        option ocv '0'

root@OpenWrt:~# cat /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 cachesize '1000'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
        option nonwildcard '1'
        option localservice '1'
        option ednspacket_max '1232'
        option filter_aaaa '0'
        option filter_a '0'

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'
        option dhcpv4 'server'
        option dhcpv6 'server'
        option ra 'server'
        option ra_slaac '1'
        list ra_flags 'managed-config'
        list ra_flags 'other-config'

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'
        option loglevel '4'

root@OpenWrt:~# cat /etc/config/firewall
config defaults
        option syn_flood        1
        option input            REJECT
        option output           ACCEPT
        option forward          REJECT
# Uncomment this line to disable ipv6 rules
#       option disable_ipv6     1

config zone
        option name             lan
        list   network          'lan'
        option input            ACCEPT
        option output           ACCEPT
        option forward          ACCEPT

config zone
        option name             wan
        list   network          'wan'
        list   network          'wan6'
        option input            REJECT
        option output           ACCEPT
        option forward          REJECT
        option masq             1
        option mtu_fix          1

config forwarding
        option src              lan
        option dest             wan

# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
        option name             Allow-DHCP-Renew
        option src              wan
        option proto            udp
        option dest_port        68
        option target           ACCEPT
        option family           ipv4

# Allow IPv4 ping
config rule
        option name             Allow-Ping
        option src              wan
        option proto            icmp
        option icmp_type        echo-request
        option family           ipv4
        option target           ACCEPT

config rule
        option name             Allow-IGMP
        option src              wan
        option proto            igmp
        option family           ipv4
        option target           ACCEPT

# Allow DHCPv6 replies
# see https://github.com/openwrt/openwrt/issues/5066
config rule
        option name             Allow-DHCPv6
        option src              wan
        option proto            udp
        option dest_port        546
        option family           ipv6
        option target           ACCEPT

config rule
        option name             Allow-MLD
        option src              wan
        option proto            icmp
        option src_ip           fe80::/10
        list icmp_type          '130/0'
        list icmp_type          '131/0'
        list icmp_type          '132/0'
        list icmp_type          '143/0'
        option family           ipv6
        option target           ACCEPT

# Allow essential incoming IPv6 ICMP traffic
config rule
        option name             Allow-ICMPv6-Input
        option src              wan
        option proto    icmp
        list icmp_type          echo-request
        list icmp_type          echo-reply
        list icmp_type          destination-unreachable
        list icmp_type          packet-too-big
        list icmp_type          time-exceeded
        list icmp_type          bad-header
        list icmp_type          unknown-header-type
        list icmp_type          router-solicitation
        list icmp_type          neighbour-solicitation
        list icmp_type          router-advertisement
        list icmp_type          neighbour-advertisement
        option limit            1000/sec
        option family           ipv6
        option target           ACCEPT

# Allow essential forwarded IPv6 ICMP traffic
config rule
        option name             Allow-ICMPv6-Forward
        option src              wan
        option dest             *
        option proto            icmp
        list icmp_type          echo-request
        list icmp_type          echo-reply
        list icmp_type          destination-unreachable
        list icmp_type          packet-too-big
        list icmp_type          time-exceeded
        list icmp_type          bad-header
        list icmp_type          unknown-header-type
        option limit            1000/sec
        option family           ipv6
        option target           ACCEPT

config rule
        option name             Allow-IPSec-ESP
        option src              wan
        option dest             lan
        option proto            esp
        option target           ACCEPT

config rule
        option name             Allow-ISAKMP
        option src              wan
        option dest             lan
        option dest_port        500
        option proto            udp
        option target           ACCEPT


### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
#       option src              lan
#       option src_ip   192.168.45.2
#       option dest             wan
#       option proto    tcp
#       option target   REJECT

# block a specific mac on wan
#config rule
#       option dest             wan
#       option src_mac  00:11:22:33:44:66
#       option target   REJECT

# block incoming ICMP traffic on a zone
#config rule
#       option src              lan
#       option proto    ICMP
#       option target   DROP

# port redirect port coming in on wan to lan
#config redirect
#       option src                      wan
#       option src_dport        80
#       option dest                     lan
#       option dest_ip          192.168.16.235
#       option dest_port        80
#       option proto            tcp

# port redirect of remapped ssh port (22001) on wan
#config redirect
#       option src              wan
#       option src_dport        22001
#       option dest             lan
#       option dest_port        22
#       option proto            tcp

### FULL CONFIG SECTIONS
#config rule
#       option src              lan
#       option src_ip   192.168.45.2
#       option src_mac  00:11:22:33:44:55
#       option src_port 80
#       option dest             wan
#       option dest_ip  194.25.2.129
#       option dest_port        120
#       option proto    tcp
#       option target   REJECT

#config redirect
#       option src              lan
#       option src_ip   192.168.45.2
#       option src_mac  00:11:22:33:44:55
#       option src_port         1024
#       option src_dport        80
#       option dest_ip  194.25.2.129
#       option dest_port        120
#       option proto    tcp

@frollic as of now nothing else, just now installed banIP and trying to configure it but it has no impact on above mentioned behavior as just now installed it.

@psherman @frollic any suggestions please? Behavior is again almost same, new ssid also doesn't show up until after say 5-10 minutes of turning on

I'd tcpdump the TV's traffic, to see wtf's going on.

how will I get wireless dump from TV? :thinking:
or somehow I collect from router?

@bigopen I don't have a solution for you.

But recently I setup a Netgear R7800 running OpenWrt 24.10.1 with full wpad-openssl at a relative's place. They have some android phones (2x Galaxy S24 Ultra and 1x Pixel 6) and an ISP provided and branded Android TV based IPTV box (most likely running Android 12).

The ISP provides an ONT + WiFi Router combo device (Genexis GX Earth 2022). Before I setup the R7800, this ONT was the only router and the ISP's Android TV device connected to both the 2.4 GHz and 5 GHz WiFi SSIDs (separate SSIDs) of this ONT without any issues.

The ISP's Android TV device could never detect either the R7800's 2.4 GHz or the 5 GHz WiFi SSIDs (separate SSIDs). The three Android phones are able to detect and connect to the R7800's WiFi SSID (both 2.4 GHz and 5 GHz bands) just fine but not the Android TV device. I resolved the issue by connecting the Android TV box via Ethernet cable to R7800.

Right now at my location I do not have an Android TV box to test, but I also have an ISP (different one) provided ONT (Dasan H660GM-A) and a GL.iNet GL-MT6000 (Flint 2) running OpenWrt 24.10.1 and (full) wpad-openssl .

Based on https://www.reddit.com/r/openwrt/comments/pdb8l6/comment/he717e9/ I used https://vremsoftwaredevelopment.github.io/WiFiAnalyzer/ to see if there is any difference in the advertised SSID beacons of the Dasan ONT vs GL-MT6000. Here are the differences. Not sure if these affect whether the Android TV device (if I had one) can see my GL-MT6000's SSID vs ONT's SSID.

GL-MT6000 2.4 GHz SSID:

GL-MT6000 5 GHz SSID:

H660GM-A (ONT) 5 GHz SSID:

H660GM-A (ONT) 2.4 GHz WiFI Disabled.

If you notice the ONT's SSID has this:

[WPA2-PSK-CCMP]
[RSN-PSK-CCMP]
[ESS]
[PSK]

VS

GL-MT6000's SSID

[WPA2-PSK+PSK-SHA256-CCMP]
[RSN-PSK+PSK-SHA256-CCMP]
[ESS]
[MPFC]
[PSK]

/etc/config/wireless

config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/soc/18000000.wifi'
	option band '2g'
	option htmode 'HE20'
	option require_mode 'n'
	option beacon_int '100'
	option cell_density '3'
	option country 'IN'
	option channel '1'
	option channels '1 6 11'

config wifi-device 'radio1'
	option type 'mac80211'
	option path 'platform/soc/18000000.wifi+1'
	option band '5g'
	option htmode 'HE20'
	option acs_exclude_dfs '1'
	option require_mode 'n'
	option short_gi_160 '0'
	option vht160 '0'
	option beacon_int '100'
	option cell_density '3'
	option country 'IN'
	option channel '36'
	option disabled '0'

config wifi-iface 'wlan0_2ghz'
	option ifname 'wlan0_2ghz'
	option device 'radio0'
	option mode 'ap'
	option ssid ''REDACTED'
	option key ''REDACTED'
	option encryption 'psk2+ccmp'
	option network 'lan_1'
	option ieee80211w '1'
	option auth_cache '1'
	option wpa_disable_eapol_key_retries '1'
	option dtim_period '3'
	option wpa_group_rekey '3600'
	option multicast_to_unicast_all '0'
	option ocv '1'
	option time_advertisement '2'
	option time_zone 'IST-5:30'

config wifi-iface 'wlan0_5ghz'
	option ifname 'wlan0_5ghz'
	option device 'radio1'
	option mode 'ap'
	option ssid 'REDACTED'
	option key ''REDACTED'
	option encryption 'psk2+ccmp'
	option network 'lan_1'
	option ieee80211w '1'
	option auth_cache '1'
	option wpa_disable_eapol_key_retries '1'
	option dtim_period '3'
	option wpa_group_rekey '3600'
	option multicast_to_unicast_all '0'
	option ocv '1'
	option time_advertisement '2'
	option time_zone 'IST-5:30'

@bigopen You can also maybe try the solution mentioned at

https://www.reddit.com/r/AndroidTV/comments/12ckq5t/android_tv_suddenly_not_finding_any_wifi/

https://www.reddit.com/r/AndroidTV/comments/wve7v3/solution_ccwgtv_limited_connection_issue/

Thanks for this information but it didn't help instead after taking their advice I got no Internet connection error. After changing back to Automatic time, it connected.
Also checked with wifi analyzer and configuration of both looked same:


Tried changing to type to N as well still it is same. Also tried changing channel but still didn't help

Any other idea?