b89592a9 gbe Sept. 4, 2022, 10:55 a.m.
- s/occured/occurred/

MFC after:	3 days
cgit
09703627 gbe Sept. 4, 2022, 10:53 a.m.
- s/occured/occurred/
- s/the the/the/

MFC after:	3 days
cgit
f0d4c2af gbe Sept. 4, 2022, 10:52 a.m.
- s/occured/occurred/
- s/the the/the/

MFC after:	3 days
cgit
b197d4b8 gbe Sept. 4, 2022, 10:51 a.m.
- s/occured/occurred/
- s/the the/the/

MFC after:	3 days
cgit
88cdf609 gbe Sept. 4, 2022, 10:49 a.m.
- s/occured/occurred/

While here, fix some whitespace issues.

MFC after:	3 days
cgit
d07a5018 gbe Sept. 4, 2022, 10:47 a.m.
- s/occured/occurred/
- s/the the/the/

MFC after:	3 days
cgit
4d89e201 gbe Sept. 4, 2022, 10:46 a.m.
- s/occured/occurred/
- s/the the/the/

MFC after:	3 days
cgit
dc79640e gbe Sept. 4, 2022, 10:23 a.m.
- s/settting/setting/

MFC after:	5 days
cgit
4e50737f gbe Sept. 4, 2022, 9:23 a.m.
- s/availavle/available/

MFC after:	3 days
cgit
832b40f7 kib Sept. 4, 2022, 4:28 a.m.
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D36396
cgit
7444f54b kib Sept. 4, 2022, 4:28 a.m.
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D36396
cgit
a687683b kib Sept. 4, 2022, 4:28 a.m.
Rtld locks from libthr defer signals delivery, which means that binding
is not possible while a signal handler is executed.

Binding might upgrade read-locked rtld_bind_lock to write-lock, if
symbol resolution requires loading filters.  If a signal would be delivered
while rtld is in read-locked section, and signal handler needs binding
which upgrades the lock, for non-threaded image that uses default rtld
locks, we get the rtld data structures modified under the top-level
active rtld frame.

To correct the problem, mask signals for read-locking of default locks
in addition to the write-locking.  It is very cheap now with
sigfastblock(2).

Note that the global state is used to track pre-locked state of either
sigfastblock(2) or signal mask (if sigfastblock(2) is administratively
disabled).  It is fine for non-threaded images since there are no other
threads.  But I believe that it is fine for threaded images using libc_r
as well, since masking signals disables preemption (I did not tested
it).

NetBSD PR:	https://gnats.netbsd.org/56979
Reported by:	tmunro
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D36396
cgit
a486fbbd bz Sept. 3, 2022, 11:40 p.m.
For consistency rename LKPI_SCAN_RUNNING adding a LHW_ prefix.
Add a local flag LKPI_LHW_SCAN_HW mirroring the net80211
IEEE80211_FEXT_SCAN_OFFLOAD flag.
Slightly simplify the code.
Overload (*ic_scan_curchan) and (*ic_scan_mindwell) so that we can
call the net80211 implementation in case of software scan but skip it
in case of full-offload scans.
Also add a bandaid to our (*ic_set_channel) implementation to not siwtch
channels if we have an active hw_scan running.

Obtained from:	bz/wireless-dev
Sponsored by:	The FreeBSD Foundation (partially)
MFC after:	4 days
cgit
527687a9 bz Sept. 3, 2022, 11:11 p.m.
Implement the mac80211 (*get_antenna) call and after checking any
antenna information present query the current configuration on startup
(both informations should be identical at this point in theory).
Both the wiphy variables and function call report a bitmask not a count.
Count the bits for net80211 for as long as we get away with just a
number in ic_[rt]xstream.

Sponsored by:	The FreeBSD Foundation
MFC after:	4 days
cgit
b35f6cd0 bz Sept. 3, 2022, 10:51 p.m.
Rename TRY_HW_CRYPTO to LKPI_80211_HW_CRYPTO for consitency and make
it compileable again in case someone wants to sit down and make it
work.  It's probably not too much to do.  Otherwise I might eventually
get around to it.

Obtained from:	bz/wireless-dev
Sponsored by:	The FreeBSD Foundation
MFC after:	4 days
cgit