]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/iwlwifi/iwl-debugfs.c
iwlwifi: check IEEE80211_TX_STAT_AMPDU for agg pkt
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / iwlwifi / iwl-debugfs.c
index f27dbb922739495d531dbb1b926b403beabb9d7a..36cfeccfafbcde17933cba2a1e6261a7c6023d04 100644 (file)
@@ -2,7 +2,7 @@
  *
  * GPL LICENSE SUMMARY
  *
- * Copyright(c) 2008 Intel Corporation. All rights reserved.
+ * Copyright(c) 2008 - 2009 Intel Corporation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of version 2 of the GNU General Public License as
@@ -306,14 +306,14 @@ static ssize_t iwl_dbgfs_eeprom_read(struct file *file,
        buf_size = 4 * eeprom_len + 256;
 
        if (eeprom_len % 16) {
-               IWL_ERROR("EEPROM size is not multiple of 16.\n");
+               IWL_ERR(priv, "EEPROM size is not multiple of 16.\n");
                return -ENODATA;
        }
 
        /* 4 characters for byte 0xYY */
        buf = kzalloc(buf_size, GFP_KERNEL);
        if (!buf) {
-               IWL_ERROR("Can not allocate Buffer\n");
+               IWL_ERR(priv, "Can not allocate Buffer\n");
                return -ENOMEM;
        }
 
@@ -370,7 +370,7 @@ static ssize_t iwl_dbgfs_channels_read(struct file *file, char __user *user_buf,
 
        buf = kzalloc(bufsz, GFP_KERNEL);
        if (!buf) {
-               IWL_ERROR("Can not allocate Buffer\n");
+               IWL_ERR(priv, "Can not allocate Buffer\n");
                return -ENOMEM;
        }
 
@@ -474,7 +474,7 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name)
        return 0;
 
 err:
-       IWL_ERROR("Can't open the debugfs directory\n");
+       IWL_ERR(priv, "Can't open the debugfs directory\n");
        iwl_dbgfs_unregister(priv);
        return ret;
 }