summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/debugfs.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-01-24 10:35:13 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-04-03 22:49:12 +0200
commit2b76ef13086ff0170abfc7f7ebfd104abfdee463 (patch)
treec9770839ddd7de19baacf6b936c4f97a83ca81b3 /drivers/net/wireless/iwlwifi/mvm/debugfs.c
parent6349437494c128b0ce9db74096019a5ad43ee02d (diff)
downloadblackbird-op-linux-2b76ef13086ff0170abfc7f7ebfd104abfdee463.tar.gz
blackbird-op-linux-2b76ef13086ff0170abfc7f7ebfd104abfdee463.zip
iwlwifi: mvm: implement reduced Tx power
This allows to have better wifi TPT when BT is active under good RSSI conditions. Wifi will have better chance to send Acks and Cts even if BT is active. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/debugfs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/debugfs.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
index 5cecb75241d1..2053dccefcd6 100644
--- a/drivers/net/wireless/iwlwifi/mvm/debugfs.c
+++ b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
@@ -333,9 +333,18 @@ static ssize_t iwl_dbgfs_mac_params_read(struct file *file,
mvmvif->queue_params[i].uapsd);
}
- if (vif->type == NL80211_IFTYPE_STATION)
- pos += scnprintf(buf+pos, bufsz-pos, "ap_sta_id %d\n",
- ap_sta_id);
+ if (vif->type == NL80211_IFTYPE_STATION &&
+ ap_sta_id != IWL_MVM_STATION_COUNT) {
+ struct ieee80211_sta *sta;
+ struct iwl_mvm_sta *mvm_sta;
+
+ sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[ap_sta_id],
+ lockdep_is_held(&mvm->mutex));
+ mvm_sta = (void *)sta->drv_priv;
+ pos += scnprintf(buf+pos, bufsz-pos,
+ "ap_sta_id %d - reduced Tx power %d\n",
+ ap_sta_id, mvm_sta->bt_reduced_txpower);
+ }
rcu_read_lock();
chanctx_conf = rcu_dereference(vif->chanctx_conf);
OpenPOWER on IntegriCloud