提交 79027596 编写于 作者: F Felix Fietkau 提交者: John W. Linville

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: NFelix Fietkau <nbd@openwrt.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 77c06c2c
...@@ -1379,8 +1379,10 @@ int sta_info_move_state(struct sta_info *sta, ...@@ -1379,8 +1379,10 @@ int sta_info_move_state(struct sta_info *sta,
return -EINVAL; return -EINVAL;
} }
#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
printk(KERN_DEBUG "%s: moving STA %pM to state %d\n", printk(KERN_DEBUG "%s: moving STA %pM to state %d\n",
sta->sdata->name, sta->sta.addr, new_state); sta->sdata->name, sta->sta.addr, new_state);
#endif
/* /*
* notify the driver before the actual changes so it can * notify the driver before the actual changes so it can
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册