From: Johannes Berg Date: Wed, 24 Oct 2012 09:54:31 +0000 (+0200) Subject: mac80211_hwsim: print per interface TX power X-Git-Tag: v3.8-rc1~139^2~17^2^2~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbc668a7058222fe065727013097664fc83a700d;p=platform%2Fkernel%2Flinux-exynos.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 96e91dd..9b4f767 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,