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)
Fri, Oct 24, 9:40 AM
Unknown Object (File)
Mon, Oct 13, 1:05 AM
Unknown Object (File)
Tue, Oct 7, 9:10 PM
Unknown Object (File)
Tue, Oct 7, 1:43 AM
Unknown Object (File)
Sun, Oct 5, 4:52 PM
Unknown Object (File)
Sun, Oct 5, 4:49 PM
Unknown Object (File)
Sep 26 2025, 2:45 PM
Unknown Object (File)
Sep 19 2025, 3:18 PM

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