mac80211 already keeps track of user limits and uses the regulatory limits properly, all we need to do is kick the hw config routines so that we can kick the hardware. Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx> --- net/mac80211/cfg.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 2577c45..188cc7c 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1666,6 +1666,12 @@ static int ieee80211_set_tx_power(struct wiphy *wiphy, return -EINVAL; local->user_power_level = MBM_TO_DBM(mbm); break; + case NL80211_TX_POWER_REG: + /* + * ieee80211_hw_config() already has the proper logic + * to deal with this. + */ + break; } ieee80211_hw_config(local, changes); -- 1.7.4.15.g7811d -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html