diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-07-09 16:34:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-09 16:34:34 -0400 |
commit | 635d999fd3b9f0ddc899eaf45fc49bec65c0b8e2 (patch) | |
tree | 0456542caa85aff0f4edf91707e36850f76d585f /drivers/net/wireless/iwlwifi/dvm/debugfs.c | |
parent | 34202e28fe7fc8551313f9a035a8857db83de757 (diff) | |
parent | b48d96652626b315229b1b82c6270eead6a77a6d (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts:
net/mac80211/mlme.c
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/debugfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/iwlwifi/dvm/debugfs.c index 8a2d9e643b14..b0eff1c340c7 100644 --- a/drivers/net/wireless/iwlwifi/dvm/debugfs.c +++ b/drivers/net/wireless/iwlwifi/dvm/debugfs.c | |||
@@ -2228,6 +2228,7 @@ static ssize_t iwl_dbgfs_echo_test_write(struct file *file, | |||
2228 | return count; | 2228 | return count; |
2229 | } | 2229 | } |
2230 | 2230 | ||
2231 | #ifdef CONFIG_IWLWIFI_DEBUG | ||
2231 | static ssize_t iwl_dbgfs_log_event_read(struct file *file, | 2232 | static ssize_t iwl_dbgfs_log_event_read(struct file *file, |
2232 | char __user *user_buf, | 2233 | char __user *user_buf, |
2233 | size_t count, loff_t *ppos) | 2234 | size_t count, loff_t *ppos) |
@@ -2265,6 +2266,7 @@ static ssize_t iwl_dbgfs_log_event_write(struct file *file, | |||
2265 | 2266 | ||
2266 | return count; | 2267 | return count; |
2267 | } | 2268 | } |
2269 | #endif | ||
2268 | 2270 | ||
2269 | static ssize_t iwl_dbgfs_calib_disabled_read(struct file *file, | 2271 | static ssize_t iwl_dbgfs_calib_disabled_read(struct file *file, |
2270 | char __user *user_buf, | 2272 | char __user *user_buf, |
@@ -2334,7 +2336,9 @@ DEBUGFS_READ_FILE_OPS(bt_traffic); | |||
2334 | DEBUGFS_READ_WRITE_FILE_OPS(protection_mode); | 2336 | DEBUGFS_READ_WRITE_FILE_OPS(protection_mode); |
2335 | DEBUGFS_READ_FILE_OPS(reply_tx_error); | 2337 | DEBUGFS_READ_FILE_OPS(reply_tx_error); |
2336 | DEBUGFS_WRITE_FILE_OPS(echo_test); | 2338 | DEBUGFS_WRITE_FILE_OPS(echo_test); |
2339 | #ifdef CONFIG_IWLWIFI_DEBUG | ||
2337 | DEBUGFS_READ_WRITE_FILE_OPS(log_event); | 2340 | DEBUGFS_READ_WRITE_FILE_OPS(log_event); |
2341 | #endif | ||
2338 | DEBUGFS_READ_WRITE_FILE_OPS(calib_disabled); | 2342 | DEBUGFS_READ_WRITE_FILE_OPS(calib_disabled); |
2339 | 2343 | ||
2340 | /* | 2344 | /* |
@@ -2394,7 +2398,9 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name) | |||
2394 | DEBUGFS_ADD_FILE(rxon_flags, dir_debug, S_IWUSR); | 2398 | DEBUGFS_ADD_FILE(rxon_flags, dir_debug, S_IWUSR); |
2395 | DEBUGFS_ADD_FILE(rxon_filter_flags, dir_debug, S_IWUSR); | 2399 | DEBUGFS_ADD_FILE(rxon_filter_flags, dir_debug, S_IWUSR); |
2396 | DEBUGFS_ADD_FILE(echo_test, dir_debug, S_IWUSR); | 2400 | DEBUGFS_ADD_FILE(echo_test, dir_debug, S_IWUSR); |
2401 | #ifdef CONFIG_IWLWIFI_DEBUG | ||
2397 | DEBUGFS_ADD_FILE(log_event, dir_debug, S_IWUSR | S_IRUSR); | 2402 | DEBUGFS_ADD_FILE(log_event, dir_debug, S_IWUSR | S_IRUSR); |
2403 | #endif | ||
2398 | 2404 | ||
2399 | if (iwl_advanced_bt_coexist(priv)) | 2405 | if (iwl_advanced_bt_coexist(priv)) |
2400 | DEBUGFS_ADD_FILE(bt_traffic, dir_debug, S_IRUSR); | 2406 | DEBUGFS_ADD_FILE(bt_traffic, dir_debug, S_IRUSR); |