Page MenuHomeFreeBSD

net80211: refactor out ifp->if_broadcastaddr into ieee80211_freebsd.c
ClosedPublic

Authored by adrian on May 18 2025, 4:45 AM.
Referenced Files
F157189671: D50406.id155995.diff
Tue, May 19, 4:01 AM
F157164699: D50406.id155643.diff
Mon, May 18, 10:44 PM
F157159433: D50406.id155724.diff
Mon, May 18, 9:27 PM
F157154375: D50406.id156011.diff
Mon, May 18, 8:20 PM
Unknown Object (File)
Mon, May 18, 3:50 AM
Unknown Object (File)
Mon, May 18, 3:50 AM
Unknown Object (File)
Mon, May 18, 1:28 AM
Unknown Object (File)
Sun, May 17, 5:16 PM

Details

Summary
  • create ieee80211_vap_get_broadcast_address() to fetch the broadcast MAC address for the given VAP
  • refactor references to ifp->if_broadcastaddr -> ieee80211_vap_get_broadcast_address()

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 64281
Build 61165: arc lint + arc unit

Event Timeline

bz added a subscriber: bz.

Scrolling through apart from the local variable this looks good.

sys/net80211/ieee80211_freebsd.c
1329

Could pass vap->if_ifp here and save the local variable.

This revision is now accepted and ready to land.May 18 2025, 8:16 PM
This revision now requires review to proceed.May 19 2025, 4:11 AM
bz requested changes to this revision.May 24 2025, 11:27 PM

Just style.

sys/net80211/ieee80211_freebsd.c
1327

return (...)

sys/net80211/ieee80211_hostap.c
563

Can't say in Phabricator if indentation is right..

sys/net80211/ieee80211_wds.c
491

again indent unclear in Phabricator

This revision now requires changes to proceed.May 24 2025, 11:27 PM
This revision is now accepted and ready to land.May 25 2025, 1:38 PM