[PATCH] libertas: remove debugmode
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 2 Aug 2007 15:51:18 +0000 (11:51 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:52 +0000 (16:49 -0700)
There is nowhere any place that set's this variable.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/defs.h
drivers/net/wireless/libertas/dev.h
drivers/net/wireless/libertas/rx.c
drivers/net/wireless/libertas/tx.c

index eee8a49e358f03940daa6f6825f06f2c89887e3a..e47fadf37220235833328cea7083b6cd527b7ac0 100644 (file)
@@ -149,9 +149,6 @@ static inline void lbs_dbg_hex(char *prompt, u8 * buf, int len)
 #define        MRVDRV_CHANNELS_PER_SCAN                4
 #define        MRVDRV_MAX_CHANNELS_PER_SCAN            14
 
-#define MRVDRV_DEBUG_RX_PATH           0x00000001
-#define MRVDRV_DEBUG_TX_PATH           0x00000002
-
 #define MRVDRV_MIN_BEACON_INTERVAL             20
 #define MRVDRV_MAX_BEACON_INTERVAL             1000
 #define MRVDRV_BEACON_INTERVAL                 100
index 6acb8fb8733ed01d16b2e3a7ff597e225d266243..7c565cbf8cc4eeaf18a67fd070604381ff5dc27e 100644 (file)
@@ -393,7 +393,6 @@ struct _wlan_adapter {
        u16 txrate;
        u32 linkmode;
        u32 radiomode;
-       u32 debugmode;
        u8 fw_ready;
 
        u8 last_scanned_channel;
index e78636d6651a7cf48415b73ed27d19c9d2c0d3bd..c9251abbb964c78f2f0e0024fe9714cc91327823 100644 (file)
@@ -172,10 +172,6 @@ int libertas_process_rxed_packet(wlan_private * priv, struct sk_buff *skb)
 
        lbs_deb_enter(LBS_DEB_RX);
 
-       if (priv->adapter->debugmode & MRVDRV_DEBUG_RX_PATH)
-               lbs_dbg_hex("RX packet: ", skb->data,
-                        min_t(unsigned int, skb->len, 100));
-
        if (priv->adapter->linkmode == WLAN_LINKMODE_802_11)
                return process_rxed_802_11_packet(priv, skb);
 
index 7c383014a274e5a290a46494a6a7d022cc33b495..7743d3f30f61f13c437a8542f74443104e0bd3c8 100644 (file)
@@ -72,10 +72,6 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb)
        if (priv->adapter->surpriseremoved)
                return -1;
 
-       if ((priv->adapter->debugmode & MRVDRV_DEBUG_TX_PATH) != 0)
-               lbs_dbg_hex("TX packet: ", skb->data,
-                        min_t(unsigned int, skb->len, 100));
-
        if (!skb->len || (skb->len > MRVDRV_ETH_TX_PACKET_BUFFER_SIZE)) {
                lbs_deb_tx("tx err: skb length %d 0 or > %zd\n",
                       skb->len, MRVDRV_ETH_TX_PACKET_BUFFER_SIZE);
@@ -267,10 +263,6 @@ void libertas_send_tx_feedback(wlan_private * priv)
 
        radiotap_hdr = (struct tx_radiotap_hdr *)adapter->currenttxskb->data;
 
-       if ((adapter->debugmode & MRVDRV_DEBUG_TX_PATH) != 0)
-               lbs_dbg_hex("TX feedback: ", (u8 *) radiotap_hdr,
-                       min_t(unsigned int, adapter->currenttxskb->len, 100));
-
        txfail = (status >> 24);
 
 #if 0