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)
Tue, Mar 4, 6:44 AM
Unknown Object (File)
Sat, Feb 8, 4:29 AM
Unknown Object (File)
Fri, Feb 7, 6:02 PM
Unknown Object (File)
Wed, Feb 5, 2:43 PM
Unknown Object (File)
Feb 4 2025, 8:27 PM
Unknown Object (File)
Feb 3 2025, 4:05 PM
Unknown Object (File)
Feb 2 2025, 8:18 PM
Unknown Object (File)
Jan 12 2025, 8:04 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