2007-05-01 11:11:28

by Johannes Berg

[permalink] [raw]
Subject: [PATCH] fix mac80211 compile w/o VERBOSE_DEBUG but w/ DEBUG

This fixes mac80211 compilation when CONFIG_MAC80211_DEBUG is set but
CONFIG_MAC80211_VERBOSE_DEBUG is not.

Signed-off-by: Johannes Berg <[email protected]>

--- wireless-dev.orig/net/mac80211/ieee80211.c 2007-05-01 13:09:38.284734191 +0200
+++ wireless-dev/net/mac80211/ieee80211.c 2007-05-01 13:10:06.374734191 +0200
@@ -951,7 +951,7 @@ ieee80211_tx_h_check_assoc(struct ieee80

if (unlikely(!tx->u.tx.mgmt_interface && tx->sdata->ieee802_1x &&
!(sta_flags & WLAN_STA_AUTHORIZED))) {
-#ifdef CONFIG_MAC80211_DEBUG
+#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
printk(KERN_DEBUG "%s: dropped frame to " MAC_FMT
" (unauthorized port)\n", tx->dev->name,
MAC_ARG(hdr->addr1));




2007-05-01 15:47:12

by Jiri Benc

[permalink] [raw]
Subject: Re: [PATCH] fix mac80211 compile w/o VERBOSE_DEBUG but w/ DEBUG

On Tue, 01 May 2007 13:12:09 +0200, Johannes Berg wrote:
> This fixes mac80211 compilation when CONFIG_MAC80211_DEBUG is set but
> CONFIG_MAC80211_VERBOSE_DEBUG is not.

Applied. Thanks.

Jiri

--
Jiri Benc
SUSE Labs