Page MenuHomeFreeBSD

net80211 / LinuxKPI: 802.11: revert / redo enum ieee80211_sta_rx_bw
ClosedPublic

Authored by bz on Aug 21 2025, 8:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 2:13 PM
Unknown Object (File)
Thu, Oct 9, 2:13 PM
Unknown Object (File)
Thu, Oct 9, 1:11 PM
Unknown Object (File)
Mon, Sep 22, 7:07 PM
Unknown Object (File)
Sun, Sep 21, 2:53 AM
Unknown Object (File)
Fri, Sep 19, 11:32 PM
Unknown Object (File)
Wed, Sep 17, 11:15 AM
Unknown Object (File)
Sep 15 2025, 5:32 PM

Details

Summary

The initial thought of migrating the LinuxKPI 802.11 enum into net80211
for shared use did not work out well. Currently in the need for yet
another adjustment, I decided to undo/de-couple net80211 and
LinuxKPI 802.11 again.

The enum name now gets used in LinuxKPI based wifi drivers and it
turns out it is spelt differntly than what I used initially.
This creates a conflict.

net80211 still in the need to be able to express BW_320 in an uint8_t
will likely be fine with the current solution as well. Rename the
enum and prefixes in net80211 to "net80211" instead of "ieee80211"
(which it is not really either but that is what Linux uses).
Apart from the names/prefix we leave the values the same.

In LinuxKPI add the enum with the expected name and use it there
throughout to make modern versions of LinuxKPI based wifi drivers
compile.

Sponsored by: The FreeBSD Foundation
Fixes: ca389486a9599, 2c8b0d6205f6f
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 66402
Build 63285: arc lint + arc unit

Event Timeline

bz requested review of this revision.Aug 21 2025, 8:50 AM
bz added a subscriber: adrian.

@adrian what do you think about this? I would really love to get this one sorted and in before stable/15 happens next week.

This revision is now accepted and ready to land.Aug 29 2025, 6:48 PM