mac80211_hwsim: print per interface TX power
authorJohannes Berg <johannes.berg@intel.com>
Wed, 24 Oct 2012 09:54:31 +0000 (11:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Oct 2012 08:11:35 +0000 (09:11 +0100)
Just for debugging, print the interface TX
power whenever it changes.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c

index 96e91dd17b34c4dad9d6454c2a8914b2ed2281b1..9b4f76718db72f1b2a5d31e5cf625351506534bf 100644 (file)
@@ -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,