Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2023 01:12:08 -0500
From:      "Farhan Khan" <farhan@farhan.codes>
To:        freebsd-wireless <freebsd-wireless@freebsd.org>
Subject:   Why newstate handler runs IEEE80211_LOCK/UNLOCK?
Message-ID:  <629e3534-705a-4dcc-ad16-edba170da251@app.fastmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I'm studying the implementations of net80211 and noticed that in all newstate handlers the code begins by running IEEE80211_UNLOCK(ic) and ends with IEEE80211_LOCK(ic). I was not clear on why this was, I would have expected the opposite order. Also, why not just use the softc device-wide mutex over one for ieee80211com. Overall, I do not seem to understand the intent of the unlock and am seeking clarification.

Thank you,
--
Farhan Khan
PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?629e3534-705a-4dcc-ad16-edba170da251>