iwlwifi: mvm: add debugfs entry for ps_disabled
authorLuciano Coelho <luciano.coelho@intel.com>
Thu, 7 Aug 2014 15:08:56 +0000 (18:08 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 3 Sep 2014 19:33:17 +0000 (22:33 +0300)
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>
drivers/net/wireless/iwlwifi/mvm/debugfs.c
drivers/net/wireless/iwlwifi/mvm/mvm.h

index 83e562b95a8ef4199bda3b0d29967250e0dd7196..1fcbc23678c434dc220f8449074f79785bef22c8 100644 (file)
@@ -1447,6 +1447,9 @@ int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir)
                goto err;
 #endif
 
+       if (!debugfs_create_u8("ps_disabled", S_IRUSR,
+                              mvm->debugfs_dir, &mvm->ps_disabled))
+               goto err;
        if (!debugfs_create_blob("nvm_hw", S_IRUSR,
                                  mvm->debugfs_dir, &mvm->nvm_hw_blob))
                goto err;
index 83a00abb508d97c7e2558ba254a021c3e0abf73c..d6b00b97ae66bd054f62d66198eb7b8e1209a7c7 100644 (file)
@@ -719,7 +719,7 @@ struct iwl_mvm {
        u8 last_agg_queue;
 
        /* Indicate if device power save is allowed */
-       bool ps_disabled;
+       u8 ps_disabled; /* u8 instead of bool to ease debugfs_create_* usage */
 
        struct ieee80211_vif __rcu *csa_vif;
        struct ieee80211_vif __rcu *csa_tx_blocked_vif;