mac80211: add #ifdef CONFIG_MAC80211_VERBOSE_DEBUG for a debug printk
authorFelix Fietkau <nbd@openwrt.org>
Tue, 7 Feb 2012 11:45:44 +0000 (12:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 8 Feb 2012 20:26:33 +0000 (15:26 -0500)
When not debugging mac80211 code, station state transitions do not need to
show up in the kernel log.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/sta_info.c

index 31cd6d92531c496fba6a795320da03ce591a1efe..4034ee6160222e8b3343ab91863c4b454acd8b16 100644 (file)
@@ -1379,8 +1379,10 @@ int sta_info_move_state(struct sta_info *sta,
                return -EINVAL;
        }
 
+#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
        printk(KERN_DEBUG "%s: moving STA %pM to state %d\n",
                sta->sdata->name, sta->sta.addr, new_state);
+#endif
 
        /*
         * notify the driver before the actual changes so it can