diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-02-07 06:45:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-08 15:26:33 -0500 |
commit | 79027596ff710f9662ccae5f5e85de43961420ed (patch) | |
tree | 4252ec4a241226f4366ba4ab879c9fa7545c2273 /net/mac80211 | |
parent | 77c06c2cb44fe68295efdd33939153c7d56de004 (diff) |
mac80211: add #ifdef CONFIG_MAC80211_VERBOSE_DEBUG for a debug printk
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>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/sta_info.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 31cd6d92531c..4034ee616022 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -1379,8 +1379,10 @@ int sta_info_move_state(struct sta_info *sta, | |||
1379 | return -EINVAL; | 1379 | return -EINVAL; |
1380 | } | 1380 | } |
1381 | 1381 | ||
1382 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | ||
1382 | printk(KERN_DEBUG "%s: moving STA %pM to state %d\n", | 1383 | printk(KERN_DEBUG "%s: moving STA %pM to state %d\n", |
1383 | sta->sdata->name, sta->sta.addr, new_state); | 1384 | sta->sdata->name, sta->sta.addr, new_state); |
1385 | #endif | ||
1384 | 1386 | ||
1385 | /* | 1387 | /* |
1386 | * notify the driver before the actual changes so it can | 1388 | * notify the driver before the actual changes so it can |