Bug 240776

Summary: iwm: Can't find wifi networks after short time since network restart
Product: Base System Reporter: Johannes Lundberg <johalun>
Component: wirelessAssignee: freebsd-wireless (Nobody) <wireless>
Status: Open ---    
Severity: Affects Only Me CC: bz, dch, dpetrov67, emaste, gnn, grahamperrin, kevans
Priority: --- Keywords: needs-qa
Version: CURRENTFlags: koobs: mfc-stable12?
Hardware: amd64   
OS: Any   

Description Johannes Lundberg freebsd_committer freebsd_triage 2019-09-23 16:28:15 UTC
This has been a long existing problem for on my Dell laptops. Always running recent 13-CURRENT and the hardware is

iwm0@pci0:2:0:0:	class=0x028000 card=0x00508086 chip=0x24fd8086 rev=0x78 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wireless 8265 / 8275'
    class      = network

The other Dell laptop has the previous generation of this chip.

After using the laptop "normally" (wired or wireless) for a while, it stops finding networks on scan with the result that roaming almost never works (it doesn't find other networks as I move between work-home). I've tested this with and without lagg failover configured.

As soon as I do 'service netif restart' it can again see all networks with 'ifconfig wlan0 scan'. For a while that is. After a short time (sub-hour to hours), scan will show either only a subset of networks or none at all and the only remedy is to tear down the interfaces and configure them again.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-24 01:42:24 UTC
@Johannes

Could you include:

- Exact FreeBSD version (uname -a)

And as attachments:

- /var/run/dmesg.boot output
- pciconf -lv output 
- ifconfig -a output on the wlan interface (once associated)
- Any potentially relevant /var/log/messages (or console.log) messages
- Enable net.wlan.debug sysctl , any relevant output

You may also want to try (if relevant):

- wpa_supplicant(8) -d = increase debugging verbosity
- wlandebug(8)

See Also:

- base r324434 - Add support for Intel 8265 WiFi (committer cc'd)
- https://lists.freebsd.org/pipermail/freebsd-questions/2017-July/278103.html


I also note that man iwm only shows (explicit) support for:

          Intel Dual Band Wireless AC 8260

If 8265 / 8275 are explicitly supported, it may be worth adding these to the man page
Comment 2 Bjoern A. Zeeb freebsd_committer freebsd_triage 2022-11-26 16:21:37 UTC
wpa_cli blacklist
wpa_cli list_networks
wpa_cli scan_results

along with

ifconfig wlan0 list scan
and
ifconfig -v wlan0

is probably also a good first start to see the current state at various levels.
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-11-26 23:28:25 UTC
johalun@ are these Dell laptops still in use by you? 


(In reply to Kubilay Kocak from comment #1)

> - Enable net.wlan.debug sysctl , any relevant output

Context: wlan(4) DEBUGGING, <https://www.freebsd.org/cgi/man.cgi?query=wlan&sektion=4&manpath=FreeBSD#DEBUGGING>