Page MenuHomeFreeBSD

rtwn: create a new HAL routine for enabling STA mode beacon processing
ClosedPublic

Authored by adrian on Dec 13 2024, 4:12 AM.
Referenced Files
Unknown Object (File)
Thu, Dec 26, 2:11 AM
Unknown Object (File)
Wed, Dec 25, 12:13 PM
Unknown Object (File)
Wed, Dec 25, 11:25 AM
Unknown Object (File)
Wed, Dec 25, 11:20 AM
Unknown Object (File)
Wed, Dec 25, 7:31 AM
Unknown Object (File)
Sun, Dec 22, 8:19 PM
Unknown Object (File)
Sun, Dec 22, 1:52 AM
Unknown Object (File)
Fri, Dec 20, 8:41 PM
Subscribers

Details

Summary

For some NICs (notably the rtl8192cu that I'm working on) the
firmware rate adaptation requires beacon processing to be enabled.

Instead of making assumptions in the if_rtwn beacon routines (and
honestly all of that should be in the HAL too), create a HAL method
for enabling/disabling beacon processing specifically in STA mode.

Since this isn't necessarily required for all NICs (notably the RTL8188E
NICs, where some will do firmware rate control and some will require
driver rate control), only enable it for the RTL8192CU and RT8192EU.

The RTL8188E and RTL8812/RTL8821 just have no-op routines for now.

Locally tested:

  • RTL8192CU, STA mode

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested changes to this revision.Wed, Dec 18, 12:55 PM
bz added a subscriber: bz.
bz added inline comments.
sys/dev/rtwn/rtl8192c/r92c_beacon.c
94

I'll mark it here for the entire file: "enable" is a bool; please use that in new code and no longer an int.

This revision now requires changes to proceed.Wed, Dec 18, 12:55 PM

use bool; requested by bz@

Missed one but good apart from that; I'll trust you to fix this before commit. Thank you!

sys/dev/rtwn/rtl8192c/r92c_beacon.c
73

bool

bz requested changes to this revision.Thu, Dec 19, 10:46 AM
This revision now requires changes to proceed.Thu, Dec 19, 10:46 AM
sys/dev/rtwn/rtl8192c/r92c_beacon.c
73

This is an existing routine, not a new one. I'll do a subsequent commit after this stack lands to clean the non-STA beacon API up!

emaste added inline comments.
sys/dev/rtwn/rtl8192c/r92c_beacon.c
73

I think including a change to bool on this would be fine rolled into this commit, but it doesn't really matter, fine as a subsequent cleanup too.

bz added inline comments.
sys/dev/rtwn/rtl8192c/r92c_beacon.c
73

Sorry. My fault.

This revision is now accepted and ready to land.Thu, Dec 19, 5:14 PM