aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-08-02 11:51:18 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:52 -0400
commitf455eb1a4ba2bf0ff1bde7844bf3a811269d2d79 (patch)
tree74086ac6a4372ab3493c466f953fea11b78c0b59
parent0a6d0555e90850b7ce90e8937858f11b6b98b6d4 (diff)
[PATCH] libertas: remove debugmode
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>
-rw-r--r--drivers/net/wireless/libertas/defs.h3
-rw-r--r--drivers/net/wireless/libertas/dev.h1
-rw-r--r--drivers/net/wireless/libertas/rx.c4
-rw-r--r--drivers/net/wireless/libertas/tx.c8
4 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/wireless/libertas/defs.h b/drivers/net/wireless/libertas/defs.h
index eee8a49e358f..e47fadf37220 100644
--- a/drivers/net/wireless/libertas/defs.h
+++ b/drivers/net/wireless/libertas/defs.h
@@ -149,9 +149,6 @@ static inline void lbs_dbg_hex(char *prompt, u8 * buf, int len)
149#define MRVDRV_CHANNELS_PER_SCAN 4 149#define MRVDRV_CHANNELS_PER_SCAN 4
150#define MRVDRV_MAX_CHANNELS_PER_SCAN 14 150#define MRVDRV_MAX_CHANNELS_PER_SCAN 14
151 151
152#define MRVDRV_DEBUG_RX_PATH 0x00000001
153#define MRVDRV_DEBUG_TX_PATH 0x00000002
154
155#define MRVDRV_MIN_BEACON_INTERVAL 20 152#define MRVDRV_MIN_BEACON_INTERVAL 20
156#define MRVDRV_MAX_BEACON_INTERVAL 1000 153#define MRVDRV_MAX_BEACON_INTERVAL 1000
157#define MRVDRV_BEACON_INTERVAL 100 154#define MRVDRV_BEACON_INTERVAL 100
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h
index 6acb8fb8733e..7c565cbf8cc4 100644
--- a/drivers/net/wireless/libertas/dev.h
+++ b/drivers/net/wireless/libertas/dev.h
@@ -393,7 +393,6 @@ struct _wlan_adapter {
393 u16 txrate; 393 u16 txrate;
394 u32 linkmode; 394 u32 linkmode;
395 u32 radiomode; 395 u32 radiomode;
396 u32 debugmode;
397 u8 fw_ready; 396 u8 fw_ready;
398 397
399 u8 last_scanned_channel; 398 u8 last_scanned_channel;
diff --git a/drivers/net/wireless/libertas/rx.c b/drivers/net/wireless/libertas/rx.c
index e78636d6651a..c9251abbb964 100644
--- a/drivers/net/wireless/libertas/rx.c
+++ b/drivers/net/wireless/libertas/rx.c
@@ -172,10 +172,6 @@ int libertas_process_rxed_packet(wlan_private * priv, struct sk_buff *skb)
172 172
173 lbs_deb_enter(LBS_DEB_RX); 173 lbs_deb_enter(LBS_DEB_RX);
174 174
175 if (priv->adapter->debugmode & MRVDRV_DEBUG_RX_PATH)
176 lbs_dbg_hex("RX packet: ", skb->data,
177 min_t(unsigned int, skb->len, 100));
178
179 if (priv->adapter->linkmode == WLAN_LINKMODE_802_11) 175 if (priv->adapter->linkmode == WLAN_LINKMODE_802_11)
180 return process_rxed_802_11_packet(priv, skb); 176 return process_rxed_802_11_packet(priv, skb);
181 177
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c
index 7c383014a274..7743d3f30f61 100644
--- a/drivers/net/wireless/libertas/tx.c
+++ b/drivers/net/wireless/libertas/tx.c
@@ -72,10 +72,6 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb)
72 if (priv->adapter->surpriseremoved) 72 if (priv->adapter->surpriseremoved)
73 return -1; 73 return -1;
74 74
75 if ((priv->adapter->debugmode & MRVDRV_DEBUG_TX_PATH) != 0)
76 lbs_dbg_hex("TX packet: ", skb->data,
77 min_t(unsigned int, skb->len, 100));
78
79 if (!skb->len || (skb->len > MRVDRV_ETH_TX_PACKET_BUFFER_SIZE)) { 75 if (!skb->len || (skb->len > MRVDRV_ETH_TX_PACKET_BUFFER_SIZE)) {
80 lbs_deb_tx("tx err: skb length %d 0 or > %zd\n", 76 lbs_deb_tx("tx err: skb length %d 0 or > %zd\n",
81 skb->len, MRVDRV_ETH_TX_PACKET_BUFFER_SIZE); 77 skb->len, MRVDRV_ETH_TX_PACKET_BUFFER_SIZE);
@@ -267,10 +263,6 @@ void libertas_send_tx_feedback(wlan_private * priv)
267 263
268 radiotap_hdr = (struct tx_radiotap_hdr *)adapter->currenttxskb->data; 264 radiotap_hdr = (struct tx_radiotap_hdr *)adapter->currenttxskb->data;
269 265
270 if ((adapter->debugmode & MRVDRV_DEBUG_TX_PATH) != 0)
271 lbs_dbg_hex("TX feedback: ", (u8 *) radiotap_hdr,
272 min_t(unsigned int, adapter->currenttxskb->len, 100));
273
274 txfail = (status >> 24); 266 txfail = (status >> 24);
275 267
276#if 0 268#if 0