From 2c3cb6af582ac234255acdbec3633197989466c5 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Wed, 3 Feb 2010 09:18:38 +0100 Subject: [PATCH] Added new debug flags (RT2860_DEBUG_PROT and RT2860_DEBUG_WME) --- rt2860.c | 10 +++++----- rt2860_debug.h | 14 ++++++++------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/rt2860.c b/rt2860.c index 0f1b54c..6eac9a4 100644 --- a/rt2860.c +++ b/rt2860.c @@ -2724,7 +2724,7 @@ static void rt2860_asic_update_rtsthreshold(struct rt2860_softc *sc) ic = &sc->ic; - RT2860_DPRINTF(sc, RT2860_DEBUG_STATE, + RT2860_DPRINTF(sc, RT2860_DEBUG_PROT, "%s: updating RTS threshold: %d\n", device_get_nameunit(sc->dev), ic->ic_rtsthreshold); @@ -2873,7 +2873,7 @@ static void rt2860_asic_updateprot(struct rt2860_softc *sc) if (ic->ic_flags & IEEE80211_F_USEPROT) { - RT2860_DPRINTF(sc, RT2860_DEBUG_STATE, + RT2860_DPRINTF(sc, RT2860_DEBUG_PROT, "%s: updating protection mode: b/g protection mode=%s\n", device_get_nameunit(sc->dev), (ic->ic_protmode == IEEE80211_PROT_RTSCTS) ? "RTS/CTS" : @@ -2888,7 +2888,7 @@ static void rt2860_asic_updateprot(struct rt2860_softc *sc) } else { - RT2860_DPRINTF(sc, RT2860_DEBUG_STATE, + RT2860_DPRINTF(sc, RT2860_DEBUG_PROT, "%s: updating protection mode: b/g protection mode=%s\n", device_get_nameunit(sc->dev), "none"); @@ -2904,7 +2904,7 @@ static void rt2860_asic_updateprot(struct rt2860_softc *sc) else htopmode = ic->ic_curhtprotmode; - RT2860_DPRINTF(sc, RT2860_DEBUG_STATE, + RT2860_DPRINTF(sc, RT2860_DEBUG_PROT, "%s: updating protection mode: HT operation mode=0x%02x, protection mode=%s\n", device_get_nameunit(sc->dev), htopmode & IEEE80211_HTINFO_OPMODE, @@ -3045,7 +3045,7 @@ static void rt2860_asic_wme_update(struct rt2860_softc *sc) wme = &ic->ic_wme; wmep = wme->wme_chanParams.cap_wmeParams; - RT2860_DPRINTF(sc, RT2860_DEBUG_STATE, + RT2860_DPRINTF(sc, RT2860_DEBUG_WME, "%s: wme update: WME_AC_VO=%d/%d/%d/%d, WME_AC_VI=%d/%d/%d/%d, " "WME_AC_BK=%d/%d/%d/%d, WME_AC_BE=%d/%d/%d/%d\n", device_get_nameunit(sc->dev), diff --git a/rt2860_debug.h b/rt2860_debug.h index 2c5e2db..8072382 100644 --- a/rt2860_debug.h +++ b/rt2860_debug.h @@ -31,12 +31,14 @@ enum RT2860_DEBUG_CHAN = 0x00000020, RT2860_DEBUG_NODE = 0x00000040, RT2860_DEBUG_KEY = 0x00000080, - RT2860_DEBUG_BEACON = 0x00000100, - RT2860_DEBUG_BA = 0x00000200, - RT2860_DEBUG_STATS = 0x00000400, - RT2860_DEBUG_RATE = 0x00000800, - RT2860_DEBUG_PERIODIC = 0x00001000, - RT2860_DEBUG_WATCHDOG = 0x00002000, + RT2860_DEBUG_PROT = 0x00000100, + RT2860_DEBUG_WME = 0x00000200, + RT2860_DEBUG_BEACON = 0x00000400, + RT2860_DEBUG_BA = 0x00000800, + RT2860_DEBUG_STATS = 0x00001000, + RT2860_DEBUG_RATE = 0x00002000, + RT2860_DEBUG_PERIODIC = 0x00004000, + RT2860_DEBUG_WATCHDOG = 0x00008000, RT2860_DEBUG_ANY = 0xffffffff }; -- 2.11.4.GIT