aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2014-08-07 11:08:56 -0400
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-09-03 15:33:17 -0400
commitbdd54839589f92fdfe80493e70aa7fe276da0c46 (patch)
treead7e6ca4538ebdb0e5118565c3f8a166004fc770 /drivers/net
parentd6ca18de129fc4dd4374389561930b32820f35ff (diff)
iwlwifi: mvm: add debugfs entry for ps_disabled
In order to make debugging easier, add an entry to export the ps_disabled value via debugfs. To make usage of the debugfs_create_*() function easier, change the ps_disabled element to u8. Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/debugfs.c3
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mvm.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
index 83e562b95a8e..1fcbc23678c4 100644
--- a/drivers/net/wireless/iwlwifi/mvm/debugfs.c
+++ b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
@@ -1447,6 +1447,9 @@ int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir)
1447 goto err; 1447 goto err;
1448#endif 1448#endif
1449 1449
1450 if (!debugfs_create_u8("ps_disabled", S_IRUSR,
1451 mvm->debugfs_dir, &mvm->ps_disabled))
1452 goto err;
1450 if (!debugfs_create_blob("nvm_hw", S_IRUSR, 1453 if (!debugfs_create_blob("nvm_hw", S_IRUSR,
1451 mvm->debugfs_dir, &mvm->nvm_hw_blob)) 1454 mvm->debugfs_dir, &mvm->nvm_hw_blob))
1452 goto err; 1455 goto err;
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h
index 83a00abb508d..d6b00b97ae66 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h
@@ -719,7 +719,7 @@ struct iwl_mvm {
719 u8 last_agg_queue; 719 u8 last_agg_queue;
720 720
721 /* Indicate if device power save is allowed */ 721 /* Indicate if device power save is allowed */
722 bool ps_disabled; 722 u8 ps_disabled; /* u8 instead of bool to ease debugfs_create_* usage */
723 723
724 struct ieee80211_vif __rcu *csa_vif; 724 struct ieee80211_vif __rcu *csa_vif;
725 struct ieee80211_vif __rcu *csa_tx_blocked_vif; 725 struct ieee80211_vif __rcu *csa_tx_blocked_vif;