aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/zd1211rw/zd_def.h5
-rw-r--r--drivers/net/wireless/zd1211rw/zd_mac.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_def.h b/drivers/net/wireless/zd1211rw/zd_def.h
index 5200db405610..b68f7c02c512 100644
--- a/drivers/net/wireless/zd1211rw/zd_def.h
+++ b/drivers/net/wireless/zd1211rw/zd_def.h
@@ -33,8 +33,13 @@ typedef u16 __nocast zd_addr_t;
33#ifdef DEBUG 33#ifdef DEBUG
34# define dev_dbg_f(dev, fmt, args...) \ 34# define dev_dbg_f(dev, fmt, args...) \
35 dev_printk_f(KERN_DEBUG, dev, fmt, ## args) 35 dev_printk_f(KERN_DEBUG, dev, fmt, ## args)
36# define dev_dbg_f_limit(dev, fmt, args...) do {\
37 if (net_ratelimit())
38 dev_printk_f(KERN_DEBUG, dev, fmt, ## args)
39} while (0)
36#else 40#else
37# define dev_dbg_f(dev, fmt, args...) do { (void)(dev); } while (0) 41# define dev_dbg_f(dev, fmt, args...) do { (void)(dev); } while (0)
42# define dev_dbg_f_limit(dev, fmt, args...) do { (void)(dev); } while (0)
38#endif /* DEBUG */ 43#endif /* DEBUG */
39 44
40#ifdef DEBUG 45#ifdef DEBUG
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c
index 651807dfb508..732b69f40978 100644
--- a/drivers/net/wireless/zd1211rw/zd_mac.c
+++ b/drivers/net/wireless/zd1211rw/zd_mac.c
@@ -793,10 +793,9 @@ static void zd_process_intr(struct work_struct *work)
793 struct zd_mac *mac = container_of(work, struct zd_mac, process_intr); 793 struct zd_mac *mac = container_of(work, struct zd_mac, process_intr);
794 794
795 int_status = le16_to_cpu(*(__le16 *)(mac->intr_buffer+4)); 795 int_status = le16_to_cpu(*(__le16 *)(mac->intr_buffer+4));
796 if (int_status & INT_CFG_NEXT_BCN) { 796 if (int_status & INT_CFG_NEXT_BCN)
797 if (net_ratelimit()) 797 dev_dbg_f_limit(zd_mac_dev(mac), "INT_CFG_NEXT_BCN\n");
798 dev_dbg_f(zd_mac_dev(mac), "INT_CFG_NEXT_BCN\n"); 798 else
799 } else
800 dev_dbg_f(zd_mac_dev(mac), "Unsupported interrupt\n"); 799 dev_dbg_f(zd_mac_dev(mac), "Unsupported interrupt\n");
801 800
802 zd_chip_enable_hwint(&mac->chip); 801 zd_chip_enable_hwint(&mac->chip);