Yet another Captive Portal related issue (AR300M16)

Hello all.

I’ve been trying to get my AR300M16 to connect to a captive portal network but I can’t seem to make it work. I’ve tried a lot of the suggestions I found in the forum and no luck yet.

My firmware version is 3.203. I tried upgrading to 3.211 and had the same issue but with a different error message (“Wrong key”, which I found out that it is a bug in that firmware).

What I’m trying is:

  1. Connect the AR300M16 to the laptop via ethernet (LAN port)
  2. Connect to the captive portal network from a laptop
  3. Authenticate the laptop using the captive portal’s authentication popup
  4. Grab the laptop’s wifi card mac address
  5. Update the Your Router (WAN) to match the laptop’s mac address
  6. Disable the DNS Rebinding Attach Protection
  7. Disconnect the laptop from the captive portal network
  8. Find the network in the Internet>Wi-fi section
  9. Press join

After a long while I get an error saying: ERROR: Time out

I looked at the logs and here’s what it ends with:

Thu Jul  1 11:11:20 2021 user.info : saved ssid ignore: Open Sesame 0
Thu Jul  1 11:11:20 2021 user.info : [  810] gl-sdk>> bIsSaved=0, ssid=Open Sesame, encryption=none, bssid=8E:2A:A8:47:06:97, wds=0, device=radio0, identity=, channel=11
Thu Jul  1 11:11:20 2021 user.info : [ 3043] gl-wifi-core>> bIsStaEnabled=1
Thu Jul  1 11:11:20 2021 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Thu Jul  1 11:11:20 2021 daemon.notice hostapd: wlan0: AP-DISABLED
Thu Jul  1 11:11:20 2021 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Thu Jul  1 11:11:20 2021 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Thu Jul  1 11:11:20 2021 kern.info kernel: [ 3342.163490] device wlan0 left promiscuous mode
Thu Jul  1 11:11:20 2021 kern.info kernel: [ 3342.168284] br-lan: port 2(wlan0) entered disabled state
Thu Jul  1 11:11:20 2021 daemon.notice netifd: Network device 'wlan0' link is down
Thu Jul  1 11:11:21 2021 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Thu Jul  1 11:11:21 2021 daemon.notice netifd: radio0 (22396): sh: /usr/bin/ovs-vsctl: not found
Thu Jul  1 11:11:21 2021 daemon.notice netifd: radio0 (22396): sh: /usr/bin/ovs-vsctl: not found
Thu Jul  1 11:11:21 2021 kern.info kernel: [ 3343.473506] br-lan: port 2(wlan0) entered blocking state
Thu Jul  1 11:11:21 2021 kern.info kernel: [ 3343.479116] br-lan: port 2(wlan0) entered disabled state
Thu Jul  1 11:11:21 2021 kern.info kernel: [ 3343.485082] device wlan0 entered promiscuous mode
Thu Jul  1 11:11:21 2021 daemon.err hostapd: Using interface wlan0 with hwaddr 94:83:c4:12:73:c3 and ssid "GL-AR300M-3c3-NOR"
Thu Jul  1 11:11:22 2021 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->ENABLED
Thu Jul  1 11:11:22 2021 daemon.notice hostapd: wlan0: AP-ENABLED
Thu Jul  1 11:11:23 2021 daemon.notice wpa_supplicant[22633]: Successfully initialized wpa_supplicant
Thu Jul  1 11:11:23 2021 daemon.notice netifd: Interface 'wwan' is enabled
Thu Jul  1 11:11:24 2021 daemon.notice wpa_supplicant[22634]: wlan-sta: SME: Trying to authenticate with 8e:2a:a8:47:06:97 (SSID='Open Sesame' freq=2462 MHz)
Thu Jul  1 11:11:24 2021 kern.info kernel: [ 3345.594690] wlan-sta: authenticate with 8e:2a:a8:47:06:97
Thu Jul  1 11:11:24 2021 kern.info kernel: [ 3345.613911] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 1/3)
Thu Jul  1 11:11:24 2021 kern.info kernel: [ 3345.770564] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 2/3)
Thu Jul  1 11:11:24 2021 kern.info kernel: [ 3345.890562] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 3/3)
Thu Jul  1 11:11:24 2021 kern.info kernel: [ 3346.010565] wlan-sta: authentication with 8e:2a:a8:47:06:97 timed out
Thu Jul  1 11:11:26 2021 daemon.notice wpa_supplicant[22634]: wlan-sta: SME: Trying to authenticate with 8e:2a:a8:47:06:97 (SSID='Open Sesame' freq=2462 MHz)
Thu Jul  1 11:11:26 2021 kern.info kernel: [ 3348.105110] wlan-sta: authenticate with 8e:2a:a8:47:06:97
Thu Jul  1 11:11:26 2021 kern.info kernel: [ 3348.124319] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 1/3)
Thu Jul  1 11:11:26 2021 kern.info kernel: [ 3348.240572] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 2/3)
Thu Jul  1 11:11:26 2021 kern.info kernel: [ 3348.350564] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 3/3)
Thu Jul  1 11:11:26 2021 kern.info kernel: [ 3348.460569] wlan-sta: authentication with 8e:2a:a8:47:06:97 timed out
Thu Jul  1 11:11:29 2021 daemon.notice wpa_supplicant[22634]: wlan-sta: SME: Trying to authenticate with 8e:2a:a8:47:06:97 (SSID='Open Sesame' freq=2462 MHz)
Thu Jul  1 11:11:29 2021 kern.info kernel: [ 3351.455669] wlan-sta: authenticate with 8e:2a:a8:47:06:97
Thu Jul  1 11:11:29 2021 kern.info kernel: [ 3351.475001] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 1/3)
Thu Jul  1 11:11:30 2021 kern.info kernel: [ 3351.600573] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 2/3)
Thu Jul  1 11:11:30 2021 kern.info kernel: [ 3351.710559] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 3/3)
Thu Jul  1 11:11:30 2021 kern.info kernel: [ 3351.820559] wlan-sta: authentication with 8e:2a:a8:47:06:97 timed out
Thu Jul  1 11:11:30 2021 daemon.notice wpa_supplicant[22634]: wlan-sta: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Open Sesame" auth_failures=1 duration=10 reason=CONN_FAILED
Thu Jul  1 11:11:30 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:11:32 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:11:34 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:11:35 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:11:40 2021 daemon.notice wpa_supplicant[22634]: wlan-sta: CTRL-EVENT-SSID-REENABLED id=0 ssid="Open Sesame"
Thu Jul  1 11:11:42 2021 daemon.notice wpa_supplicant[22634]: wlan-sta: SME: Trying to authenticate with 8e:2a:a8:47:06:97 (SSID='Open Sesame' freq=2462 MHz)
Thu Jul  1 11:11:42 2021 kern.info kernel: [ 3363.825619] wlan-sta: authenticate with 8e:2a:a8:47:06:97
Thu Jul  1 11:11:42 2021 kern.info kernel: [ 3363.844820] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 1/3)
Thu Jul  1 11:11:42 2021 kern.info kernel: [ 3363.960594] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 2/3)
Thu Jul  1 11:11:42 2021 kern.info kernel: [ 3364.070573] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 3/3)
Thu Jul  1 11:11:42 2021 kern.info kernel: [ 3364.180600] wlan-sta: authentication with 8e:2a:a8:47:06:97 timed out
Thu Jul  1 11:11:42 2021 daemon.notice wpa_supplicant[22634]: wlan-sta: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Open Sesame" auth_failures=2 duration=20 reason=CONN_FAILED
Thu Jul  1 11:11:44 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:11:44 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:11:51 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:11:51 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:11:51 2021 user.info : [ 1893] gl-wifi-core>> Restart wifi...
Thu Jul  1 11:11:52 2021 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Thu Jul  1 11:11:52 2021 daemon.notice hostapd: wlan0: AP-DISABLED
Thu Jul  1 11:11:52 2021 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Thu Jul  1 11:11:52 2021 daemon.err wpa_supplicant[22634]:  Failed to stop hostapd AP interfaces
Thu Jul  1 11:11:52 2021 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Thu Jul  1 11:11:52 2021 daemon.notice wpa_supplicant[22634]: nl80211: deinit ifname=wlan-sta disabled_11b_rates=0
Thu Jul  1 11:11:52 2021 daemon.notice wpa_supplicant[22634]: wlan-sta: CTRL-EVENT-TERMINATING
Thu Jul  1 11:11:52 2021 kern.info kernel: [ 3373.771990] device wlan0 left promiscuous mode
Thu Jul  1 11:11:52 2021 kern.info kernel: [ 3373.776863] br-lan: port 2(wlan0) entered disabled state
Thu Jul  1 11:11:52 2021 daemon.notice netifd: Interface 'wwan' is disabled
Thu Jul  1 11:11:54 2021 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Thu Jul  1 11:11:54 2021 daemon.notice netifd: radio0 (23190): sh: /usr/bin/ovs-vsctl: not found
Thu Jul  1 11:11:54 2021 daemon.notice netifd: radio0 (23190): sh: /usr/bin/ovs-vsctl: not found
Thu Jul  1 11:11:54 2021 kern.info kernel: [ 3376.263556] br-lan: port 2(wlan0) entered blocking state
Thu Jul  1 11:11:54 2021 kern.info kernel: [ 3376.269165] br-lan: port 2(wlan0) entered disabled state
Thu Jul  1 11:11:54 2021 kern.info kernel: [ 3376.275036] device wlan0 entered promiscuous mode
Thu Jul  1 11:11:54 2021 daemon.err hostapd: Using interface wlan0 with hwaddr 94:83:c4:12:73:c3 and ssid "GL-AR300M-3c3-NOR"
Thu Jul  1 11:11:55 2021 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->ENABLED
Thu Jul  1 11:11:55 2021 daemon.notice hostapd: wlan0: AP-ENABLED
Thu Jul  1 11:11:55 2021 daemon.notice wpa_supplicant[23413]: Successfully initialized wpa_supplicant
Thu Jul  1 11:11:55 2021 daemon.notice netifd: Interface 'wwan' is enabled
Thu Jul  1 11:11:56 2021 daemon.notice wpa_supplicant[23420]: wlan-sta: SME: Trying to authenticate with 8e:2a:a8:47:06:97 (SSID='Open Sesame' freq=2462 MHz)
Thu Jul  1 11:11:56 2021 kern.info kernel: [ 3377.886400] wlan-sta: authenticate with 8e:2a:a8:47:06:97
Thu Jul  1 11:11:56 2021 kern.info kernel: [ 3377.905668] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 1/3)
Thu Jul  1 11:11:56 2021 kern.info kernel: [ 3378.020560] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 2/3)
Thu Jul  1 11:11:56 2021 kern.info kernel: [ 3378.130579] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 3/3)
Thu Jul  1 11:11:56 2021 kern.info kernel: [ 3378.250561] wlan-sta: authentication with 8e:2a:a8:47:06:97 timed out
Thu Jul  1 11:11:58 2021 daemon.notice wpa_supplicant[23420]: wlan-sta: SME: Trying to authenticate with 8e:2a:a8:47:06:97 (SSID='Open Sesame' freq=2462 MHz)
Thu Jul  1 11:11:58 2021 kern.info kernel: [ 3380.345248] wlan-sta: authenticate with 8e:2a:a8:47:06:97
Thu Jul  1 11:11:58 2021 kern.info kernel: [ 3380.364474] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 1/3)
Thu Jul  1 11:11:58 2021 kern.info kernel: [ 3380.490576] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 2/3)
Thu Jul  1 11:11:59 2021 kern.info kernel: [ 3380.610622] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 3/3)
Thu Jul  1 11:11:59 2021 kern.info kernel: [ 3380.720583] wlan-sta: authentication with 8e:2a:a8:47:06:97 timed out
Thu Jul  1 11:12:02 2021 daemon.notice wpa_supplicant[23420]: wlan-sta: SME: Trying to authenticate with 8e:2a:a8:47:06:97 (SSID='Open Sesame' freq=2462 MHz)
Thu Jul  1 11:12:02 2021 kern.info kernel: [ 3383.715808] wlan-sta: authenticate with 8e:2a:a8:47:06:97
Thu Jul  1 11:12:02 2021 kern.info kernel: [ 3383.735003] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 1/3)
Thu Jul  1 11:12:02 2021 kern.info kernel: [ 3383.850560] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 2/3)
Thu Jul  1 11:12:02 2021 kern.info kernel: [ 3384.010607] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 3/3)
Thu Jul  1 11:12:02 2021 kern.info kernel: [ 3384.120564] wlan-sta: authentication with 8e:2a:a8:47:06:97 timed out
Thu Jul  1 11:12:02 2021 daemon.notice wpa_supplicant[23420]: wlan-sta: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Open Sesame" auth_failures=1 duration=10 reason=CONN_FAILED
Thu Jul  1 11:12:08 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:12:08 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:12:12 2021 daemon.notice wpa_supplicant[23420]: wlan-sta: CTRL-EVENT-SSID-REENABLED id=0 ssid="Open Sesame"
Thu Jul  1 11:12:14 2021 daemon.notice wpa_supplicant[23420]: wlan-sta: SME: Trying to authenticate with 8e:2a:a8:47:06:97 (SSID='Open Sesame' freq=2462 MHz)
Thu Jul  1 11:12:14 2021 kern.info kernel: [ 3396.114999] wlan-sta: authenticate with 8e:2a:a8:47:06:97
Thu Jul  1 11:12:14 2021 kern.info kernel: [ 3396.134529] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 1/3)
Thu Jul  1 11:12:14 2021 kern.info kernel: [ 3396.250561] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 2/3)
Thu Jul  1 11:12:14 2021 kern.info kernel: [ 3396.360575] wlan-sta: send auth to 8e:2a:a8:47:06:97 (try 3/3)
Thu Jul  1 11:12:14 2021 kern.info kernel: [ 3396.480651] wlan-sta: authentication with 8e:2a:a8:47:06:97 timed out
Thu Jul  1 11:12:14 2021 daemon.notice wpa_supplicant[23420]: wlan-sta: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Open Sesame" auth_failures=2 duration=20 reason=CONN_FAILED
Thu Jul  1 11:12:17 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:12:18 2021 daemon.notice hostapd: handle_probe_req: send failed
Thu Jul  1 11:12:23 2021 user.info : [  817] gl-sdk>> wifi_join return=-5, channel=-1
Thu Jul  1 11:12:23 2021 user.info : [ 1893] gl-wifi-core>> Restart wifi...
Thu Jul  1 11:12:23 2021 daemon.notice netifd: Interface 'wwan' is disabled
Thu Jul  1 11:12:23 2021 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Thu Jul  1 11:12:23 2021 daemon.notice hostapd: wlan0: AP-DISABLED
Thu Jul  1 11:12:23 2021 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Thu Jul  1 11:12:23 2021 daemon.err wpa_supplicant[23420]:  Failed to stop hostapd AP interfaces
Thu Jul  1 11:12:23 2021 daemon.notice wpa_supplicant[23420]: nl80211: deinit ifname=wlan-sta disabled_11b_rates=0
Thu Jul  1 11:12:23 2021 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Thu Jul  1 11:12:23 2021 daemon.notice wpa_supplicant[23420]: wlan-sta: CTRL-EVENT-TERMINATING
Thu Jul  1 11:12:23 2021 kern.info kernel: [ 3405.462275] device wlan0 left promiscuous mode
Thu Jul  1 11:12:23 2021 kern.info kernel: [ 3405.466984] br-lan: port 2(wlan0) entered disabled state
Thu Jul  1 11:12:25 2021 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Thu Jul  1 11:12:25 2021 daemon.notice netifd: radio0 (23993): sh: /usr/bin/ovs-vsctl: not found
Thu Jul  1 11:12:25 2021 daemon.notice netifd: radio0 (23993): sh: /usr/bin/ovs-vsctl: not found
Thu Jul  1 11:12:25 2021 kern.info kernel: [ 3407.442020] br-lan: port 2(wlan0) entered blocking state
Thu Jul  1 11:12:25 2021 kern.info kernel: [ 3407.447632] br-lan: port 2(wlan0) entered disabled state
Thu Jul  1 11:12:25 2021 kern.info kernel: [ 3407.453508] device wlan0 entered promiscuous mode
Thu Jul  1 11:12:25 2021 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->HT_SCAN
Thu Jul  1 11:12:27 2021 daemon.notice hostapd: 20/40 MHz operation not permitted on channel pri=11 sec=7 based on overlapping BSSes
Thu Jul  1 11:12:27 2021 daemon.err hostapd: Using interface wlan0 with hwaddr 94:83:c4:12:73:c3 and ssid "GL-AR300M-3c3-NOR"
Thu Jul  1 11:12:27 2021 daemon.notice hostapd: wlan0: interface state HT_SCAN->ENABLED
Thu Jul  1 11:12:27 2021 kern.info kernel: [ 3408.945916] br-lan: port 2(wlan0) entered blocking state
Thu Jul  1 11:12:27 2021 kern.info kernel: [ 3408.951477] br-lan: port 2(wlan0) entered forwarding state
Thu Jul  1 11:12:27 2021 daemon.notice hostapd: wlan0: AP-ENABLED
Thu Jul  1 11:12:27 2021 daemon.notice netifd: Network device 'wlan0' link is up

Any advise?

Is this related to the wrong key problem?

Can you try 3.212 snapshot?

Looks like the issue was with the network I was trying to connect with. I set up a Unifi guest network, with the captive portal on, to test the router out, and I was getting those errors above. The network was set up to use both 2.4 and 5G. As soon as I took off the 5G support, it worked as expected.

Obviously in the real world this is still an issue. I’m yet to try with the 3.212 snapshot.