mbox series

[RFC,0/4] mac80211: handle transmit power envelope better

Message ID 20240423200019.192941-6-johannes@sipsolutions.net
Headers show
Series mac80211: handle transmit power envelope better | expand

Message

Johannes Berg April 23, 2024, 7:56 p.m. UTC
The TPE handling is a bit messy, we just collect 8 of them but don't
give the driver any help with interpreting, and really in ath11k
(the only user) it's already wrong for PSD, because we might use a
channel narrower than the AP, and then we use the wrong values.

Also, ath11k uses the chandef width, which might be wider than the
vif width, but that's an incidental finding.

We also want to have EHT support here, which is basically impossible
for drivers to do themselves since they don't necessarily know the
full AP chandef, and then cannot properly select the subset of the
PSD values to use.

So I've decided to move (really reimplement) all the parsing to (in)
mac80211 and give the driver information matching the vif's chanreq.

johannes