Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Aug 2025 11:09:54 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        "freebsd-wireless@freebsd.org" <wireless@freebsd.org>
Subject:   Re: ifconfig wlan0 scan, while associated
Message-ID:  <n0pqo709-5r2p-3q2p-o712-n405572rr020@SerrOFQ.bet>
In-Reply-To: <647e8f42-07f2-42a1-840e-0b6da4c9365e@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail

On Wed, 27 Aug 2025, Andriy Gapon wrote:

>
> It seems that on the latest CURRENT, ifconfig wlan0 scan, executed while 
> associated, just hangs indefinitely.
> I recall that it used to work in the past (possibly losing association while 
> scanning).
>
> ifconfig's stack looks like it's waiting to receive something (over 
> netlink?):
>  PID    TID COMM                TDNAME              KSTACK
> 43416 100469 ifconfig            -                   mi_switch+0x188 
> sleepq_switch+0xec sleepq_catch_signals+0x2bc sleepq_wait_sig+0xc 
> _sleep+0x260 soreceive_generic_locked+0x1cc soreceive_generic+0xa8 
> soreceive+0x48 dofileread+0x74 kern_readv+0x4c sys_read+0x88 
> do_el0_sync+0x618 handle_el0_sync+0x4c
>
> Looks like it regressed in April/May time frame.
> Just in case, the hardware is rtwn on USB.

We used to leak BGSCANs even when disabled (32af70fae827ec) but with rtwn
that shouldn't be the problem as it is enabled by default if I do not
misremeber.

But the problem isn't new;  even with iwm years ago scans sometimes used
to hang.  ^c works, sometimes with multiple persuasions and waiting a
few seconds.

What you are saying is basically that there's more paths we leak some
scan state most likely and will scan "forever" without scanning.

If you try to scan from wpa_cli you get a BUSY back?

If you could break to ddb when in that state and do

show all vaps
show com /a <vap pointer>

I think it is (from memory) and gather the full state, that would be
great, at least to see if I am correctly guessing.

/bz

-- 
Bjoern A. Zeeb                                                     r15:7


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?n0pqo709-5r2p-3q2p-o712-n405572rr020>