Page MenuHomeFreeBSD

rtwn: add tx power training for RTL8812/RTL8821
Needs ReviewPublic

Authored by adrian on Sat, Dec 7, 3:49 PM.

Details

Reviewers
None
Group Reviewers
wireless
Summary

This apparently kicks off TX power level self-calibration, which
can't hurt.

Locally tested:

  • RTL8812AU, STA
  • RTL8821AU, STA

Obtained from: Linux rtw88

Diff Detail

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

Event Timeline

adrian requested review of this revision.Sat, Dec 7, 3:49 PM
sys/dev/rtwn/rtl8812a/r12a_chan.c
194

So there are 3 writes? Why the loop?

sys/dev/rtwn/rtl8812a/r12a_chan.c
194

For now i'm just trying to mirror what the BSD licenced rtw88 code is doing - save the underflow, which I addressed but their driver doesn't.

Once I know it's all working OK, we should absolutely clean it up before landing. It could be done with three lines and some ternary operators.