aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/mvm.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-03-26 05:47:53 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-04-03 16:49:04 -0400
commit6349437494c128b0ce9db74096019a5ad43ee02d (patch)
tree41c2f32ed37c767b93c61654d796293a6afba10a /drivers/net/wireless/iwlwifi/mvm/mvm.h
parentb510446b643572903535c3b1d3e63e9cfa4e94d9 (diff)
iwlwifi: mvm: add per-interface debugfs with mac_params file
Use the per-interface debugfs infrastructure to create a directory and symlink, and add a file containing debug data related to each virtual interface. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mvm.h')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mvm.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h
index 53d58968e30a..d7ffa6f95060 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mvm.h
+++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h
@@ -212,6 +212,7 @@ struct iwl_mvm_vif {
212 212
213#ifdef CONFIG_IWLWIFI_DEBUGFS 213#ifdef CONFIG_IWLWIFI_DEBUGFS
214 struct dentry *dbgfs_dir; 214 struct dentry *dbgfs_dir;
215 struct dentry *dbgfs_slink;
215 void *dbgfs_data; 216 void *dbgfs_data;
216#endif 217#endif
217}; 218};
@@ -471,8 +472,8 @@ void iwl_mvm_cancel_scan(struct iwl_mvm *mvm);
471/* MVM debugfs */ 472/* MVM debugfs */
472#ifdef CONFIG_IWLWIFI_DEBUGFS 473#ifdef CONFIG_IWLWIFI_DEBUGFS
473int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir); 474int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir);
474int iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif, 475void iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif);
475 struct dentry *dbgfs_dir); 476void iwl_mvm_vif_dbgfs_clean(struct iwl_mvm *mvm, struct ieee80211_vif *vif);
476void iwl_power_get_params(struct iwl_mvm *mvm, struct ieee80211_vif *vif, 477void iwl_power_get_params(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
477 struct iwl_powertable_cmd *cmd); 478 struct iwl_powertable_cmd *cmd);
478#else 479#else
@@ -481,6 +482,14 @@ static inline int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm,
481{ 482{
482 return 0; 483 return 0;
483} 484}
485static inline void
486iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
487{
488}
489static inline void
490iwl_mvm_vif_dbgfs_clean(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
491{
492}
484#endif /* CONFIG_IWLWIFI_DEBUGFS */ 493#endif /* CONFIG_IWLWIFI_DEBUGFS */
485 494
486/* rate scaling */ 495/* rate scaling */