Page MenuHomeFreeBSD

sys: convert ni->ni_txrate references use to the new net80211 API
Needs ReviewPublic

Authored by adrian on Thu, Jan 23, 2:35 AM.
Referenced Files
Unknown Object (File)
Wed, Feb 12, 1:32 AM
Unknown Object (File)
Sun, Feb 9, 10:41 PM
Unknown Object (File)
Sat, Feb 8, 1:41 AM
Unknown Object (File)
Thu, Feb 6, 11:11 PM
Unknown Object (File)
Wed, Feb 5, 8:41 PM
Unknown Object (File)
Tue, Feb 4, 1:56 AM
Unknown Object (File)
Sun, Feb 2, 12:17 PM
Unknown Object (File)
Sun, Feb 2, 11:09 AM

Details

Reviewers
bz
Group Reviewers
wireless
Summary

This just mechanically converts things.

  • For linuxkpi, it was just used for display.
  • For uath, it was just used for display, as firmware doesn't report it up.

Diff Detail

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

Event Timeline

thj added inline comments.
sys/dev/ath/ath_rate/onoe/onoe.c
394

Shouldn't this be divided by 2 if the rate is returned in 500kbit units?

bz requested changes to this revision.Sun, Jan 26, 10:23 PM
bz added a subscriber: bz.
bz added inline comments.
sys/dev/ath/ath_rate/onoe/onoe.c
206

uint8_t

394

This is sorted but nor marked as done?

sys/dev/ipw/if_ipw.c
841

Funny that iwi right below holds the reference over this but ipw did not...

sys/dev/mwl/if_mwl.c
3347

Can this be an uint8_t or does it have to stay int? ( I haven't checked the surrounding code )

sys/dev/wtap/if_wtap.c
620

Is there a leading blank here?

This revision now requires changes to proceed.Sun, Jan 26, 10:23 PM
sys/dev/ath/ath_rate/onoe/onoe.c
394

it's really kbit now, not 1/2mbit

sys/dev/ipw/if_ipw.c
841

Yeah this wasn't ever consistent. A lot (and I mean a /lot/) of hilarity in crashes in the past due to the node refcounting/garbage collecting locking changes same did years ago.

It would be great to also clean this stuff up and make it consistent.

sys/dev/mwl/if_mwl.c
3347

I think it's a HW field first, not a dot11rate

gavin added inline comments.
sys/dev/ath/ath_rate/onoe/onoe.c
225–227

Extra trailing brace?

adrian marked 4 inline comments as done.

update, fix things from gavin/bz

fixed, please re-review!

sys/dev/wtap/if_wtap.c
620

nope, just a tab!

add mtw, now that it landed in -head