Page MenuHomeFreeBSD

net80211 / LinuxKPI 802.11: correct enum ieee80211_sta_rx_bw
ClosedPublic

Authored by bz on Tue, Jan 7, 6:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 12, 8:04 PM
Unknown Object (File)
Sun, Jan 12, 4:24 PM
Unknown Object (File)
Sun, Jan 12, 2:59 PM
Unknown Object (File)
Wed, Jan 8, 10:56 PM
Unknown Object (File)
Wed, Jan 8, 10:38 PM
Unknown Object (File)
Wed, Jan 8, 4:56 PM
Unknown Object (File)
Wed, Jan 8, 11:00 AM
Unknown Object (File)
Tue, Jan 7, 7:34 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