Re: Wireless network with bfwm sometimes works and sometimes doesn't
On Wed, Apr 10, 2024 at 12:53:12AM +0200, Stanislav Syekirin wrote: > Stefan Sperling wrote: > > Do you have any of iwn/iwm/iwx or another device which could capture > > raw 802.11 frames of failed association attempts in monitor mode? > > I have a neglected device with Intel Wireless 3160, which is listed on the > iwm man page. Assuming OpenBSD will run on that device, what do I have to > do? ifconfig iwm0 mediaopt monitor ifconfig iwm0 chan 112 # assuming the AP has not moved channels ifconfig iwm0 up tcpdump -n -i iwm0 -y IEEE802_11_RADIO -s 4096 -w /tmp/iwm0.pcap Now attempt the failing association, then cancel tcpdump with Ctrl-C and send me the /tmp/iwm0.pcap file offlist.
Re: Wireless network with bfwm sometimes works and sometimes doesn't
Stefan Sperling wrote: Do you have any of iwn/iwm/iwx or another device which could capture raw 802.11 frames of failed association attempts in monitor mode? I have a neglected device with Intel Wireless 3160, which is listed on the iwm man page. Assuming OpenBSD will run on that device, what do I have to do? Regards Stanislav Syekirin
Re: Wireless network with bfwm sometimes works and sometimes doesn't
On Tue, Apr 09, 2024 at 08:31:50PM +0200, Stanislav Syekirin wrote: > Yes, it does. I'm not sure whether it's always the case, but this time it > works. Dmesg output: > > bwfm0: SCAN -> AUTH > bwfm0: AUTH -> ASSOC > bwfm0: ASSOC -> RUN > bwfm0: associated with f0:af:85:9a:e4:22 ssid "Vodafone-7D3A" channel 6 > start 6Mb long preamble long slot time > bwfm0: missed beacon threshold set to 30 beacons, beacon interval is 100 TU > bwfm0: received msg 1/4 of the 4-way handshake from f0:af:85:9a:e4:22 > bwfm0: sending msg 2/4 of the 4-way handshake to f0:af:85:9a:e4:22 > bwfm0: received msg 3/4 of the 4-way handshake from f0:af:85:9a:e4:22 > bwfm0: sending msg 4/4 of the 4-way handshake to f0:af:85:9a:e4:22 That looks fine. No idea why 5 Ghz doesn't work. It's difficult to diagnose issues on this device without additoional hardware because the firmware doesn't expose details about management frames to the driver. Do you have any of iwn/iwm/iwx or another device which could capture raw 802.11 frames of failed association attempts in monitor mode?
Re: Wireless network with bfwm sometimes works and sometimes doesn't
Yes, it does. I'm not sure whether it's always the case, but this time it works. Dmesg output: bwfm0: SCAN -> AUTH bwfm0: AUTH -> ASSOC bwfm0: ASSOC -> RUN bwfm0: associated with f0:af:85:9a:e4:22 ssid "Vodafone-7D3A" channel 6 start 6Mb long preamble long slot time bwfm0: missed beacon threshold set to 30 beacons, beacon interval is 100 TU bwfm0: received msg 1/4 of the 4-way handshake from f0:af:85:9a:e4:22 bwfm0: sending msg 2/4 of the 4-way handshake to f0:af:85:9a:e4:22 bwfm0: received msg 3/4 of the 4-way handshake from f0:af:85:9a:e4:22 bwfm0: sending msg 4/4 of the 4-way handshake to f0:af:85:9a:e4:22 Regards Stanislav Syekirin On Di, 9 Apr 2024 19:47:36 +0200 Stefan Sperling wrote: On Tue, Apr 09, 2024 at 07:15:55PM +0200, Stanislav Syekirin wrote: Thank you so much for the hint, now I understand what the debug option does. I have actually tried it, but, because `man ifconfig` says "this turns on extra console error logging", I incorrectly assumed that it would output to stdout or stderr, not to the system message buffer. Then, calling ifconfig from xterm, I couldn't see any debug output and wondered why the option does nothing. Anyway, here is the result of `dmesg | grep bwfm0`. Vodafone-7D3A_5G is the one I try to connect to, Vodafone-7D3A is same router but different frequency The AP on channel 112 is not responding to the initial AUTH frame. Given that other devices work fine the AP probably does not receive the frame, but it is unclear why. Does bwfm manage to connect to the 7D3A AP on channel 6?
Re: Wireless network with bfwm sometimes works and sometimes doesn't
On Tue, Apr 09, 2024 at 07:15:55PM +0200, Stanislav Syekirin wrote: > Thank you so much for the hint, now I understand what the debug option does. > I have actually tried it, but, because `man ifconfig` says "this turns on > extra console error logging", I incorrectly assumed that it would output to > stdout or stderr, not to the system message buffer. Then, calling ifconfig > from xterm, I couldn't see any debug output and wondered why the option does > nothing. > > Anyway, here is the result of `dmesg | grep bwfm0`. Vodafone-7D3A_5G is the > one I try to connect to, Vodafone-7D3A is same router but different > frequency The AP on channel 112 is not responding to the initial AUTH frame. Given that other devices work fine the AP probably does not receive the frame, but it is unclear why. Does bwfm manage to connect to the 7D3A AP on channel 6?
Re: Wireless network with bfwm sometimes works and sometimes doesn't
Thank you so much for the hint, now I understand what the debug option does. I have actually tried it, but, because `man ifconfig` says "this turns on extra console error logging", I incorrectly assumed that it would output to stdout or stderr, not to the system message buffer. Then, calling ifconfig from xterm, I couldn't see any debug output and wondered why the option does nothing. Anyway, here is the result of `dmesg | grep bwfm0`. Vodafone-7D3A_5G is the one I try to connect to, Vodafone-7D3A is same router but different frequency, as for the others, I assume that they belong to my neighbours: bwfm0 at sdmmc0 function 1 bwfm0: address e4:5f:01:4d:c2:2c bwfm0: begin active scan bwfm0: INIT -> SCAN bwfm0: end active scan bwfm0: best AP f0:af:85:9a:e4:23 "Vodafone-7D3A_5G" score 77 bwfm0: switching to network "Vodafone-7D3A_5G" bwfm0: - 4c:09:d4:8b:a1:9d 11 +179 54M ess privacy rsn "WLAN-721313"! bwfm0: - d4:e2:cb:14:d6:a0 11 +180 54M ess privacy rsn "Vodafone-D69C"! bwfm0: - d8:07:b6:ab:34:f24 +182 54M ess privacy rsn "TP-LINK_34F2"! bwfm0: - f0:af:85:9a:e4:226 +195 54M ess privacy rsn "Vodafone-7D3A"! bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: - f2:af:85:9a:e4:126 +197 54M ess no! rsn! "Vodafone Hotspot"! bwfm0: - f2:af:85:9a:e4:326 +195 54M ess no! rsn! "Vodafone Homespot"! bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +190 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +189 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +192 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +193 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: AUTH -> ASSOC bwfm0: begin active scan bwfm0: ASSOC -> SCAN bwfm0: end active scan bwfm0: SCAN -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +192 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +190 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +190 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +190 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN bwfm0: end active scan bwfm0: + f0:af:85:9a:e4:23 112 +191 54M ess privacy rsn "Vodafone-7D3A_5G" bwfm0: SCAN -> AUTH bwfm0: begin active scan bwfm0: AUTH -> SCAN
Re: Wireless network with bfwm sometimes works and sometimes doesn't
On Mon, Apr 08, 2024 at 11:30:07PM +0200, Stanislav Syekirin wrote: > This is my /etc/hostname.bwfm0: Please add a line saying 'debug' at the top if hostname.bwfm0: debug > join NETWORK_IN_QUESTION_5G wpakey PASSWORD > inet6 autoconf > inet autoconf > > I would appreciate any suggestions. Show us what is printed in dmesg with debug enabled when it fails to connect. Among other info it shows scan results. Does your AP appear in the list?
Wireless network with bfwm sometimes works and sometimes doesn't
Hi all, I'm not sure how to debug this systematically. I have OpenBSD 7.5 on Raspberry Pi 4 (but I had the same problem with 7.4 as well). Sometimes the computer connects to the wireless network at boot, and sometimes it doesn't, without any obvious pattern. Whenever it connects, it works fine and doesn't seem to be flaky or unusually slow, though I didn't measure. If it doesn't connect, despairingly calling `doas sh /etc/netstart bwfm0` or `doas ifconfig bwfm0 inet autoconf` sometimes helps, but more often doesn't. Other computers connected to the same network don't seem to be affected. This is what the output of ping looks like when it doesn't connect: PING 192.168.0.1 (192.168.0.1): 56 data bytes ping: sendmsg: Can't assign requested address (these two lines repeat until I ^C) --- 192.168.0.1 ping statistics --- 9 packets transmitted, 0 packets received, 100.0% packet loss This is what the output of `ifconfig bwfm0` looks like when it doesn't connect: bwfm0: flags=a48843 mtu 1500 lladdr e4:5f:01:4d:c2:2c index 4 priority 4 llprio 3 groups: wlan media: IEEE802.11 autoselect (OFDM6 mode 11a) status: no network ieee80211: join NETWORK_IN_QUESTION_5G chan 112 bssid f0:af:85:9a:e4:23 -69dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp inet6 fe80::e65f:1ff:fe4d:c22c%bwfm0 prefixlen 64 scopeid 0x4 This is my /etc/hostname.bwfm0: join NETWORK_IN_QUESTION_5G wpakey PASSWORD inet6 autoconf inet autoconf I would appreciate any suggestions. Regards Stanislav Syekirin