Methodize the TX power limit retrival in ieee80211_ioctl_get80211().
Submitted by: Neel Chauhan <neel AT neelc DOT org>
Differential D26018
Methodize the TX power limit retrival in ieee80211_ioctl_get80211() Authored by nc on Aug 9 2020, 7:17 PM. Tags Referenced Files
Details
Diff Detail
Event TimelineComment Actions 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. Comment Actions hi! Let's make it more generic - and I thought it was - oh yeah! Look at ieee80211_get_node_txpower(). Maybe do this:
Comment Actions I have the stupid question (without looking): where else do we need this calculation? It could be the answer to all of this is "no"(-a-like) and then sorry for the noise from a reply at 1am. Comment Actions 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. Comment Actions Making this an inline function for the point of making it a function seems hard to justify for single use code. |