Page MenuHomeFreeBSD

Methodize the TX power limit retrival in ieee80211_ioctl_get80211()
AcceptedPublic

Authored by nc on Aug 9 2020, 7:17 PM.
Referenced Files
Unknown Object (File)
Tue, Jul 21, 11:20 AM
Unknown Object (File)
Sun, Jul 19, 11:15 PM
Unknown Object (File)
Thu, Jul 16, 12:04 AM
Unknown Object (File)
Wed, Jul 15, 8:14 PM
Unknown Object (File)
Wed, Jul 15, 7:17 PM
Unknown Object (File)
Tue, Jul 14, 9:44 AM
Unknown Object (File)
Sat, Jul 4, 6:55 AM
Unknown Object (File)
May 17 2026, 12:20 PM

Details

Reviewers
adrian
bz
Summary

Methodize the TX power limit retrival in ieee80211_ioctl_get80211().

Submitted by: Neel Chauhan <neel AT neelc DOT org>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

nc requested review of this revision.Aug 9 2020, 7:17 PM

Keep in mind that should this patch get approved, someone other than me will need to commit this.

I am not a committer, I just share a name with one.

hi!

Let's make it more generic - and I thought it was - oh yeah! Look at ieee80211_get_node_txpower().

Maybe do this:

  • create a ieee80211_get_channel_txpower(), in ieee80211_var.h

.. next to the existing node one

  • make the ioctl api use that

How's that sound?

Sounds good, will post a patch shortly.

Here's the updated diff.

I have the stupid question (without looking):

where else do we need this calculation?
I cannot imagine it is just in the ioctl?
What do we need for 11h?
Do we have a function which does return the actual value without the ireq or should we have that?

It could be the answer to all of this is "no"(-a-like) and then sorry for the noise from a reply at 1am.

oh damn i missed this, I think it's worth refactoring it so we do have a specific place to pull the TX power from.

Also in today's tree there's ieee80211_get_node_txpower() which does this work too, so we could quickly refactor that as part of this commit.

I'll tackle it soon.

This revision is now accepted and ready to land.Wed, Jul 22, 3:43 AM

Making this an inline function for the point of making it a function seems hard to justify for single use code.
Can we at least keep it as a normal function in ioctl.c?