aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2010-04-25 12:39:46 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-05-10 18:08:46 -0400
commit381733cc53ce7abf3d8498f8ccf7586546c0b264 (patch)
treea63a5d023ce17b661e6a4b69a11fa2bb75d9a431
parent1e460535ab3978b7a23e08e9f556af2f84c43235 (diff)
iwlwifi: remove powersave debugfs if it is not supported
For the devices do not have power save support, remove the power save control related debugfs files. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index 0aedbec9cbc8..f0d9b7247663 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -1612,8 +1612,11 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name)
1612 DEBUGFS_ADD_FILE(interrupt, dir_data, S_IWUSR | S_IRUSR); 1612 DEBUGFS_ADD_FILE(interrupt, dir_data, S_IWUSR | S_IRUSR);
1613 DEBUGFS_ADD_FILE(qos, dir_data, S_IRUSR); 1613 DEBUGFS_ADD_FILE(qos, dir_data, S_IRUSR);
1614 DEBUGFS_ADD_FILE(led, dir_data, S_IRUSR); 1614 DEBUGFS_ADD_FILE(led, dir_data, S_IRUSR);
1615 DEBUGFS_ADD_FILE(sleep_level_override, dir_data, S_IWUSR | S_IRUSR); 1615 if (!priv->cfg->broken_powersave) {
1616 DEBUGFS_ADD_FILE(current_sleep_command, dir_data, S_IRUSR); 1616 DEBUGFS_ADD_FILE(sleep_level_override, dir_data,
1617 S_IWUSR | S_IRUSR);
1618 DEBUGFS_ADD_FILE(current_sleep_command, dir_data, S_IRUSR);
1619 }
1617 DEBUGFS_ADD_FILE(thermal_throttling, dir_data, S_IRUSR); 1620 DEBUGFS_ADD_FILE(thermal_throttling, dir_data, S_IRUSR);
1618 DEBUGFS_ADD_FILE(disable_ht40, dir_data, S_IWUSR | S_IRUSR); 1621 DEBUGFS_ADD_FILE(disable_ht40, dir_data, S_IWUSR | S_IRUSR);
1619 DEBUGFS_ADD_FILE(rx_statistics, dir_debug, S_IRUSR); 1622 DEBUGFS_ADD_FILE(rx_statistics, dir_debug, S_IRUSR);