From: Johannes Berg Date: Wed, 24 Oct 2012 09:54:31 +0000 (+0200) Subject: mac80211_hwsim: print per interface TX power X-Git-Tag: Ubuntu-5.13.0-19.19~23273^2~17^2^2~95 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=cbc668a7058222fe065727013097664fc83a700d;p=mirror_ubuntu-jammy-kernel.git mac80211_hwsim: print per interface TX power Just for debugging, print the interface TX power whenever it changes. Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 96e91dd17b34..9b4f76718db7 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -1083,6 +1083,9 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw, wiphy_debug(hw->wiphy, " BASIC_RATES: 0x%llx\n", (unsigned long long) info->basic_rates); } + + if (changed & BSS_CHANGED_TXPOWER) + wiphy_debug(hw->wiphy, " TX Power: %d dBm\n", info->txpower); } static int mac80211_hwsim_sta_add(struct ieee80211_hw *hw,