aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index e3e1494e769a..c9141e3df9ba 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -198,6 +198,9 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags,
198 if (chan->flags & IEEE80211_CHAN_RADAR) 198 if (chan->flags & IEEE80211_CHAN_RADAR)
199 NLA_PUT_FLAG(msg, NL80211_FREQUENCY_ATTR_RADAR); 199 NLA_PUT_FLAG(msg, NL80211_FREQUENCY_ATTR_RADAR);
200 200
201 NLA_PUT_U32(msg, NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
202 DBM_TO_MBM(chan->max_power));
203
201 nla_nest_end(msg, nl_freq); 204 nla_nest_end(msg, nl_freq);
202 } 205 }
203 206
@@ -1760,7 +1763,7 @@ static int nl80211_req_set_reg(struct sk_buff *skb, struct genl_info *info)
1760 return -EINVAL; 1763 return -EINVAL;
1761#endif 1764#endif
1762 mutex_lock(&cfg80211_drv_mutex); 1765 mutex_lock(&cfg80211_drv_mutex);
1763 r = __regulatory_hint(NULL, REGDOM_SET_BY_USER, data); 1766 r = __regulatory_hint(NULL, REGDOM_SET_BY_USER, data, 0, ENVIRON_ANY);
1764 mutex_unlock(&cfg80211_drv_mutex); 1767 mutex_unlock(&cfg80211_drv_mutex);
1765 return r; 1768 return r;
1766} 1769}