Page MenuHomeFreeBSD

net80211 / LinuxKPI 802.11: correct enum ieee80211_sta_rx_bw
ClosedPublic

Authored by bz on Jan 7 2025, 6:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 4, 2:45 AM
Unknown Object (File)
Thu, Jun 4, 2:27 AM
Unknown Object (File)
Wed, Jun 3, 10:21 PM
Unknown Object (File)
Mon, Jun 1, 6:42 PM
Unknown Object (File)
May 21 2026, 5:14 PM
Unknown Object (File)
May 21 2026, 6:55 AM
Unknown Object (File)
May 18 2026, 2:24 AM
Unknown Object (File)
May 18 2026, 2:24 AM

Details

Summary

When moving the enum from LinuxKPI to net80211 it got adjusted to be
used in net80211 style in order to use it with a print_mask (%b).
Turns out that change broke assumptions given the minimum value of
BW_20 no longer was 0. Adjust it back to a plain enum starting at 0
and use an inline function to convert to value names.

Sponsored by: The FreeBSD Foundation
Fixes: ca389486a9599768e0ba69dca13c208020623083
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable