HomeFreeBSD

net80211: migrate if_flags, if_drvflags out of most source files

Description

net80211: migrate if_flags, if_drvflags out of most source files

Migrate both if_flags and if_drvflags out of most source files.
Ideally it'd only be referenced in ieee80211_freebsd.c, but for now
it also ignores references in ieee80211_ioctl.c.

  • migrate if_flags set to if_setflags
  • migrate if_flags get to if_getflags
  • migrate if_drvflags get to if_getdrvflags
  • add ieee80211_vap_ifp_check_is_monitor() and ieee8021_vap_ifp_check_is_simplex() to abstract out the IFF_MONITOR and IFF_SIMPLEX flag checks.
  • add ieee80211_vap_ifp_check_is_running() and ieee80211_vap_ifp_set_running_state() to represent what IFF_DRV_RUNNING means (ie, mark the underlying OS network interface as active and inactive.)

Notably this doesn't yet clear up OACTIVE; I need to better describe
that.

Differential Revision: https://reviews.freebsd.org/D50405
Reviewed by: bz

Details

Provenance
adrianAuthored on May 18 2025, 4:32 AM
Reviewer
bz
Differential Revision
D50405: net80211: migrate if_flags, if_drvflags out of most source files
Parents
rG3f6a84ffbf39: net80211: refactor the if_input call into ieee80211_vap_deliver_data()
Branches
Unknown
Tags
Unknown