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
F139281174: D48375.diff
Wed, Dec 10, 10:01 AM
Unknown Object (File)
Sun, Nov 30, 10:44 PM
Unknown Object (File)
Sun, Nov 30, 7:24 AM
Unknown Object (File)
Sat, Nov 29, 1:25 AM
Unknown Object (File)
Wed, Nov 26, 9:10 AM
Unknown Object (File)
Sat, Nov 22, 11:22 AM
Unknown Object (File)
Tue, Nov 18, 9:50 PM
Unknown Object (File)
Tue, Nov 18, 11:08 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 Passed
Unit
No Test Coverage
Build Status
Buildable 61562
Build 58446: arc lint + arc unit