]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: fix user-power when emulating chanctx
authorBen Greear <greearb@candelatech.com>
Thu, 10 Oct 2024 20:39:54 +0000 (13:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:50:39 +0000 (19:50 +0100)
commit8f6ef43aed111dd477c4541175f2a75ac2c11941
tree73baaf49cbe40897ce8d93bd7e4520715940b1c6
parent069e1d600bdc91b49a983649ef66b3e92a31c6b5
mac80211: fix user-power when emulating chanctx

[ Upstream commit 9b15c6cf8d2e82c8427cd06f535d8de93b5b995c ]

ieee80211_calc_hw_conf_chan was ignoring the configured
user_txpower.  If it is set, use it to potentially decrease
txpower as requested.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Link: https://patch.msgid.link/20241010203954.1219686-1-greearb@candelatech.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/main.c