>>> Sometimes some repeated >>> ifconfig wlan0 scan >>> as super user will also do it (you'll notice when it doesn't return >>> immediately). Might be less destructive than restarting networking. >> >> It did hang, but it didn't connect to 11ac. I ended up doing the restart >> method again. > > What was the scan result? Were the networks on 11a included at that > moment?
With rc.conf back to ifconfig_wlan0="WPA DHCP" There is no result. The first time I run it, it sits there and I eventually cancel it. doas ifconfig wlan0 scan ^C scanning a 2nd time I get. doas ifconfig wlan0 scan SSID/MESH ID BSSID CHAN RATE S:N INT CAPS BillieDougNet 88:3d:24:9b:08:0b 1 54M -86:-96 100 EPS RSN HTCAP WME BillieDougNet 88:3d:24:9a:f3:81 6 54M -80:-96 100 EPS RSN HTCAP WME MaeAutoDetail 14:91:82:8b:5b:14 11 54M -48:-96 100 EPS HTCAP VHTCAP VHTOPMODE WME ATH RSN WPS HyvonenHome b0:2a:43:cb:c5:57 11 54M -90:-96 100 EPS RSN HTCAP WME BillieDougNet 88:3d:24:9a:f3:34 11 54M -69:-96 100 EPS RSN HTCAP WME 5e:ef:68:3e:d7:51 11 54M -75:-96 100 EPS HTCAP VHTCAP VHTOPMODE WME ATH RSN 1a:91:82:8b:5b:14 11 54M -49:-96 100 EPS HTCAP VHTCAP VHTOPMODE WME ATH RSN MaeAutoDetail 58:ef:68:3e:d7:51 11 54M -75:-96 100 EPS HTCAP VHTCAP VHTOPMODE WME ATH RSN MaeAutoDetail 14:91:82:8b:5b:16 149 54M -41:-96 100 EP HTCAP VHTCAP VHTOPMODE VHTPWRENV WME ATH RSN STANHOME5.0 38:3b:c8:fb:ed:e2 149 54M -87:-96 100 EP BSSLOAD VHTPWRENV HTCAP WME RSN VHTCAP VHTOPMODE WPS ifconfig lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 groups: lo nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> ue0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=68009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> ether 48:65:ee:10:9d:fa inet 192.168.1.72 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::4a65:eeff:fe10:9dfa%ue0 prefixlen 64 scopeid 0x3 inet6 2600:1702:6251:ef0:4a65:eeff:fe10:9dfa prefixlen 64 autoconf pltime 3600 vltime 3600 media: Ethernet autoselect (1000baseT <full-duplex>) status: active nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=0 ether a0:80:69:f4:02:4f inet 192.168.1.131 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::a280:69ff:fef4:24f%wlan0 prefixlen 64 scopeid 0x2 inet6 2600:1702:6251:ef0:a280:69ff:fef4:24f prefixlen 64 autoconf pltime 3600 vltime 3600 groups: wlan ssid MaeAutoDetail channel 11 (2462 MHz 11g ht/20) bssid 14:91:82:8b:5b:14 regdomain FCC country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 3:128-bit txpower 30 bmiss 7 scanvalid 60 protmode CTS -ampdutx ampdurx ampdulimit 64k -amsdutx amsdurx shortgi -ldpctx ldpcrx -uapsd wme roaming MANUAL parent interface: iwlwifi0 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> > You could add multiple entries to wpa_supplicant.conf with bssid also set > and order them by priority. Shot in the dark. I tried setting a few different bssid and it only worked once on an 11ng connection. In ifconfig I see "status: no carrier". I was about to give up and tried one more time, and it worked! I still saw "status: no carrier" initially, but I walked away for a minute and it was connected to 11ac when I returned. > Can you try a bit more without setting it to 11ac and then check > wlanstat output or enable wlandebug wlan0 +scan if anything becomes > noticable. I'm not sure I understand what you would like me to do here. With the bssid set, and an 11ac connection. ("mode 11ac" is not set in rc.conf) wlanstats 13 rx from wrong bssid 3 rx discard 'cuz mcast echo 2 rx discard mgt frames 64 rx beacon frames 133 rx element unknown 10 rx frame chan mismatch 5 active scans started 86 rx management frames 2 rx action frames 1 tx failed 'cuz vap not in RUN state 22 total data frames received 4 unicast data frames received 18 multicast data frames received 8 total data frames transmit 8 unicast data frames sent 40.5M current transmit rate 49.0 current rssi -96 current noise floor (dBm) -47.0 current signal (dBm) doas wlandebug -i wlan0 +scan net.wlan.0.debug: 0x200000<scan> Is there something else to go along with that? Seems like I'm not getting info you need with that one. OK.. now for something *new*. To make this reply even more confusing. I noticed while testing that my 11ac connection quietly drops back to 11ng and/or even 11g when I'm right in the middle of documenting things!! At least according to ifconfig. When I run a speed test, I'm clearly not on 11g. I tested this a bit more, and when ifconfig initially says I'm on 11ng I get corresponding speeds. If I get connected with 11ac and ifconfig later shows it 11ng etc. I still get 11ac speeds. 300+ mbit. Below see reported 11g yet 300+ mbit speeds. ifconfig lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 groups: lo nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=0 ether a0:80:69:f4:02:4f inet 192.168.1.207 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::a280:69ff:fef4:24f%wlan0 prefixlen 64 scopeid 0x2 inet6 2600:1702:6251:ef0:a280:69ff:fef4:24f prefixlen 64 autoconf pltime 3600 vltime 3600 groups: wlan ssid MaeAutoDetail channel 36 (5180 MHz 11a vht/80+) bssid 14:91:82:8b:5b:15 regdomain FCC country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 3:128-bit txpower 30 bmiss 7 mcastrate 6 mgmtrate 6 scanvalid 60 -ampdutx ampdurx ampdulimit 64k -amsdutx amsdurx shortgi -ldpctx ldpcrx -uapsd vht vht40 vht80 vht160 -vht80p80 wme roaming MANUAL parent interface: iwlwifi0 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> speedtest Speedtest by Ookla [error] Error: [0] Timeout occurred in connect. Server: Boost Mobile - Houston, TX (id: 49853) ISP: AT&T Internet Idle Latency: 5.45 ms (jitter: 0.90ms, low: 4.32ms, high: 6.40ms) Download: 211.34 Mbps (data used: 129.6 MB) 11.22 ms (jitter: 8.56ms, low: 4.16ms, high: 44.82ms) Upload: 319.28 Mbps (data used: 352.9 MB) 25.86 ms (jitter: 11.36ms, low: 4.45ms, high: 65.02ms) Packet Loss: Not available. Result URL: https://www.speedtest.net/result/c/2ea6241c-6a20-4886-b4ea-1ca91f632272