HomeFreeBSD

net80211: introduce (*iv_update_bss)()

Description

net80211: introduce (*iv_update_bss)()

Introduce (*iv_update_bss)() with a default implementation to allow
drivers to overload/intercept the time when we swap iv_bss.

This helps firmware based drivers to synchronize state with firmware.
Otherwise, for some state changes, we begin with one ni (and in
LinuxKPI lsta) and try to finish with another ni (and a new lsta
in different state) and may no longer have access to the previous state.
This also saves us from constantly checking for ni changes complicating
code.

No functional changes intended.

Sponsored by: The FreeBSD Foundation
Approved by: re (gjb)

(cherry picked from commit 91b4225aa1d81155668db6deed22084abf2ce23c)
(cherry picked from commit dd39ea27f356f660736d5eb45b0a5aece63698bb)

Details

Provenance
bzAuthored on Mar 22 2022, 2:46 PM
Parents
rG708928f4db90: net80211: improve one debug logging
Branches
Unknown
Tags
Unknown