From: "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
To: linux-wireless@vger.kernel.org
Cc: "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
Subject: [RFC 3/5] mac80211: add support for NL80211_TX_POWER_REG
Date: Wed, 23 Nov 2011 10:40:56 -0500 [thread overview]
Message-ID: <1322062858-15276-4-git-send-email-mcgrof@qca.qualcomm.com> (raw)
In-Reply-To: <1322062858-15276-1-git-send-email-mcgrof@qca.qualcomm.com>
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@qca.qualcomm.com>
---
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
next prev parent reply other threads:[~2011-11-23 15:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-23 15:40 [RFC 0/5] wireless: applying country IE and reg changes immediately Luis R. Rodriguez
2011-11-23 15:40 ` [RFC 1/5] cfg80211: allow following country IE power for custom regdom cards Luis R. Rodriguez
2011-11-23 15:40 ` [RFC 2/5] cfg80211: add support to immediately apply reg settings Luis R. Rodriguez
2011-11-24 16:44 ` Johannes Berg
2011-11-24 16:50 ` Luis R. Rodriguez
2011-11-24 16:52 ` Luis R. Rodriguez
2011-11-23 15:40 ` Luis R. Rodriguez [this message]
2011-11-23 15:40 ` [RFC 4/5] ath6kl: add support for NL80211_TX_POWER_REG Luis R. Rodriguez
2011-11-23 15:40 ` [RFC 5/5] wireless: annotate drivers that do not support NL80211_TX_POWER_REG Luis R. Rodriguez
2011-11-24 21:02 ` Jouni Malinen
2011-11-28 20:56 ` Luis R. Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1322062858-15276-4-git-send-email-mcgrof@qca.qualcomm.com \
--to=mcgrof@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.