]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: ieee80211_swscan_bg_scan() track return variable under lock
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 18 Feb 2023 01:15:21 +0000 (01:15 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 23 Feb 2023 21:12:23 +0000 (21:12 +0000)
commitc9ba91435a01a80632a5b68144d75b38241fc8be
treee852394e34f6c5bd36d7aa13e00d01c554d05de8
parent17a5a290032ef75ed4aa8a2aa68b3a7e08935c1c
net80211: ieee80211_swscan_bg_scan() track return variable under lock

As the comment says it probably does not matter but use a local
variable to track state under lock so we can return the last known
good state of what we thought we were operating under after unlocking.

Likely no functional changes.

Sponsored by: The FreeBSD Foundation
MFC atfer: 3 days
Reviewed by: enweiwu, adrian
Differential Revision: https://reviews.freebsd.org/D38660
sys/net80211/ieee80211_scan_sw.c