Page MenuHomeFreeBSD

net80211: refactor sequence number assignment code
Needs ReviewPublic

Authored by adrian on Thu, Apr 10, 8:31 PM.

Details

Reviewers
None
Group Reviewers
wireless
Summary

Refactor out the sequence number assignment code for normal frames
and beacons.

Document the behaviour around fragments and packet lists.

Right now this should be a no-op; there's some verification code
in here to make sure that the TID selected by the existing code
matches the TID populated in the passed in mbuf/frame.

Locally tested:

  • rtwn(4), STA mode

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63434
Build 60318: arc lint + arc unit

Event Timeline

I need to understand this code and the callers. That'll take time. Hopefully I'll find an hour next week.

sys/net80211/ieee80211_output.c
4205

Do you not want uint8_t arg_tid and a bool XXX to use as indicator; changing signedness and size of tid is a pain to deal with usually.

4209

uint8_t you can fold it down together with uint8_t tid, type;

4227

tid=%u