Bug 277868 - iwlwifi: Frequent disconnects from network, needs ifconfig scan or netif restart
Summary: iwlwifi: Frequent disconnects from network, needs ifconfig scan or netif restart
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks: iwlwifi
  Show dependency treegraph
 
Reported: 2024-03-21 15:31 UTC by Eirik Oeverby
Modified: 2024-05-13 12:39 UTC (History)
4 users (show)

See Also:


Attachments
/var/log/messages output (includes kernel msgs) (12.31 KB, text/plain)
2024-03-21 15:31 UTC, Eirik Oeverby
no flags Details
pciconf -lv (6.48 KB, text/plain)
2024-03-21 15:31 UTC, Eirik Oeverby
no flags Details
dmesg.boot (15.49 KB, text/plain)
2024-03-21 15:32 UTC, Eirik Oeverby
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eirik Oeverby 2024-03-21 15:31:17 UTC
Created attachment 249378 [details]
/var/log/messages output (includes kernel msgs)

Hardware: Framework 13".

At varying intervals, but quite frequent, I get disconnected from wifi and need to issue an `ifconfig wlan0 scan` or a `service netif restart wlan0` to reconnect.

`/var/log/messages` output attached, as is pciconf -lv and dmesg.boot.

Not sure what I can do to help with this?
Comment 1 Eirik Oeverby 2024-03-21 15:31:47 UTC
Created attachment 249379 [details]
pciconf -lv
Comment 2 Eirik Oeverby 2024-03-21 15:32:05 UTC
Created attachment 249380 [details]
dmesg.boot
Comment 3 Ed Maste freebsd_committer freebsd_triage 2024-03-22 13:07:20 UTC
For reference - dmesg indicates `FreeBSD 15.0-CURRENT #1 main-d0bf8b5aac: Mon Feb 19 00:43:40 CET 2024`
Comment 4 Cheng Cui freebsd_committer freebsd_triage 2024-03-22 14:01:00 UTC
(In reply to Eirik Oeverby from comment #0)

From the `/var/log/messages` output, looks the firmware keeps having microcode errors "WRT: Invalid buffer destination", etc.
Comment 5 Bjoern A. Zeeb freebsd_committer freebsd_triage 2024-03-29 16:16:27 UTC
(In reply to Cheng Cui from comment #4)

The "WRT: Invalid buffer destination" are because for (unknown) reasons the firmware disabled various debug buffers.
We've had this while discussing the HT fw assertions in February.

It's so much in the log because he issues a service netif restart and the VAP (wlan interface) gets destroyed and re-created.



Eirik, it's really hard to debug it like this.  Not sure if we tried in the past or with someone else given this is a Ubiquity again?

If ifconfig wlan0 scan as su does not help (wpa_cli scan), it would be interesting to know if ifconfig wlan0 down && sleep 1 && ifconfig wlan0 up helps (instead of serivce restart).

it would be helpful if could add at least one -d to the wpa_supplicant flags in rc.conf to get a bit more logging.

Of course it would be interesting to see if the AP has logs of these events too.  can you ssh into the AP and check?
Comment 6 Eirik Oeverby 2024-03-29 17:27:42 UTC
(In reply to Bjoern A. Zeeb from comment #5)

I have two -d's in rc.conf right now, you want more than that?
Also there are no debug logs of any kind available on the Amplifi HD :( Now that you mention it, I don't think I've seen this happening in the office, where we have more "pro-grade" wifi APs (Ubiquiti, so same maker, but quite different class).

It's also worth mentioning I have two APs in the house, one on each floor, and they're linked by gbit ethernet. So no fancy matrix stuff, just "ethernet backbone", in Amplify-speak. In my usual position in the house, the secondary AP is also visible in a scan, I don't know if this is relevant?

In light of the above, documentation states I have the following "advanced" options available to me:

*A-MSDU for wireless clients
Improves wireless clients throughput

802.11r - Fast BSS Transition
Faster authentication when roaming

*802.11k - Neighbor Report
Improves AP scan speed

*802.11v - BSS Transition Management
Directs stations to better AP

* = currently enabled.

Fun fact: STP is an optional feature, and disabled by default. Go figure. 

/Eirik