From: Emmanuel Grumbach <egrumbach@gmail.com>
To: linux-wireless@vger.kernel.org
Cc: Haim Dreyfuss <haim.dreyfuss@intel.com>,
Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Subject: [PATCH 5/8] iwlwifi: mvm: Add tx power condition to bss_info_changed_ap_ibss
Date: Tue, 21 Oct 2014 19:04:36 +0300 [thread overview]
Message-ID: <1413907479-9073-5-git-send-email-egrumbach@gmail.com> (raw)
In-Reply-To: <CANUX_P0iZO6AGwcsKO3+xZZcH5ns+vMUimo+BxHNpyBhhURKRw@mail.gmail.com>
From: Haim Dreyfuss <haim.dreyfuss@intel.com>
The tx power should be limited from many reasons.
currently, setting the tx power is available by the mvm only for
station interface. Adding the tx power condition to
bss_info_changed_ap_ibss make it available also for AP.
Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
drivers/net/wireless/iwlwifi/mvm/mac80211.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
index c7a73c6..892a6bc 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
@@ -1734,6 +1734,13 @@ iwl_mvm_bss_info_changed_ap_ibss(struct iwl_mvm *mvm,
if (changes & BSS_CHANGED_BEACON &&
iwl_mvm_mac_ctxt_beacon_changed(mvm, vif))
IWL_WARN(mvm, "Failed updating beacon data\n");
+
+ if (changes & BSS_CHANGED_TXPOWER) {
+ IWL_DEBUG_CALIB(mvm, "Changing TX Power to %d\n",
+ bss_conf->txpower);
+ iwl_mvm_set_tx_power(mvm, vif, bss_conf->txpower);
+ }
+
}
static void iwl_mvm_bss_info_changed(struct ieee80211_hw *hw,
--
1.9.1
next prev parent reply other threads:[~2014-10-21 16:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-21 9:29 pull request: iwlwifi 2014-10-21 Emmanuel Grumbach
2014-10-21 16:04 ` [PATCH 1/8] iwlwifi: configure the LTR Emmanuel Grumbach
2014-10-21 16:04 ` [PATCH 2/8] iwlwifi: 8000: fix string given to MODULE_FIRMWARE Emmanuel Grumbach
2014-10-21 16:04 ` [PATCH 3/8] iwlwifi: mvm: BT Coex - update the MPLUT Boost register value Emmanuel Grumbach
2014-10-21 16:04 ` [PATCH 4/8] iwlwifi: mvm: BT coex - fix BT prio for probe requests Emmanuel Grumbach
2014-10-21 16:04 ` Emmanuel Grumbach [this message]
2014-10-21 16:04 ` [PATCH 6/8] iwlwifi: mvm: ROC - bug fixes around time events and locking Emmanuel Grumbach
2014-10-21 16:04 ` [PATCH 7/8] iwlwifi: dvm: drop non VO frames when flushing Emmanuel Grumbach
2014-10-21 16:04 ` [PATCH 8/8] Revert "iwlwifi: mvm: treat EAPOLs like mgmt frames wrt rate" Emmanuel Grumbach
2014-10-23 17:48 ` pull request: iwlwifi 2014-10-21 John W. Linville
2014-10-23 18:24 ` Emmanuel Grumbach
2014-10-27 17:37 ` John W. Linville
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=1413907479-9073-5-git-send-email-egrumbach@gmail.com \
--to=egrumbach@gmail.com \
--cc=emmanuel.grumbach@intel.com \
--cc=haim.dreyfuss@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).