Skip to content

Commit

Permalink
mac80211: add #ifdef CONFIG_MAC80211_VERBOSE_DEBUG for a debug printk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Feb 8, 2012
1 parent 77c06c2 commit 7902759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/mac80211/sta_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7902759

Please sign in to comment.