mac80211_hwsim: remove maximum TX power
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Jan 2020 10:08:36 +0000 (11:08 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 15 Jan 2020 10:10:04 +0000 (11:10 +0100)
This is too low, at least ETSI regulatory domain would
allow 36 dBm on 5 GHz in (some? most?) cases. But there's
no reason hwsim should have a limit at all, so remove it.

See also
https://lore.kernel.org/r/20191108152013.13418-1-ramonreisfontes@gmail.com

Change-Id: I6edf81d2e82bc8ce7baa40bfc0f210b7b56ef275
Reported-by: Ramon Fontes <ramonreisfontes@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c

index 0373810..181d216 100644 (file)
@@ -300,14 +300,12 @@ static struct net_device *hwsim_mon; /* global monitor netdev */
        .band = NL80211_BAND_2GHZ, \
        .center_freq = (_freq), \
        .hw_value = (_freq), \
-       .max_power = 20, \
 }
 
 #define CHAN5G(_freq) { \
        .band = NL80211_BAND_5GHZ, \
        .center_freq = (_freq), \
        .hw_value = (_freq), \
-       .max_power = 20, \
 }
 
 static const struct ieee80211_channel hwsim_channels_2ghz[] = {