Commit 31ce0d86 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: ks7010: replace KS_WLAN_DEBUG with DEBUG preprocessor directive

This commit replaces custom KS_WLAN_DEBUG which is not being used anymore
in favour of DEBUG which is the one included when debugging is enabled.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 127aaef4
obj-$(CONFIG_KS7010) += ks7010.o obj-$(CONFIG_KS7010) += ks7010.o
ccflags-y += -DKS_WLAN_DEBUG=0
ks7010-y := michael_mic.o ks_hostif.o ks_wlan_net.o ks7010_sdio.o ks7010-y := michael_mic.o ks_hostif.o ks_wlan_net.o ks7010_sdio.o
...@@ -385,11 +385,10 @@ static void ks_wlan_hw_rx(struct ks_wlan_private *priv, uint16_t size) ...@@ -385,11 +385,10 @@ static void ks_wlan_hw_rx(struct ks_wlan_private *priv, uint16_t size)
/* length check */ /* length check */
if (size > 2046 || size == 0) { if (size > 2046 || size == 0) {
#ifdef KS_WLAN_DEBUG #ifdef DEBUG
if (KS_WLAN_DEBUG > 5) print_hex_dump_bytes("INVALID DATA dump: ",
print_hex_dump_bytes("INVALID DATA dump: ", DUMP_PREFIX_OFFSET,
DUMP_PREFIX_OFFSET, rx_buffer->data, 32);
rx_buffer->data, 32);
#endif #endif
ret = ks7010_sdio_writeb(priv, READ_STATUS, REG_STATUS_IDLE); ret = ks7010_sdio_writeb(priv, READ_STATUS, REG_STATUS_IDLE);
if (ret) if (ret)
......
...@@ -2409,10 +2409,10 @@ void hostif_sme_enqueue(struct ks_wlan_private *priv, unsigned short event) ...@@ -2409,10 +2409,10 @@ void hostif_sme_enqueue(struct ks_wlan_private *priv, unsigned short event)
if (cnt_smeqbody(priv) < (SME_EVENT_BUFF_SIZE - 1)) { if (cnt_smeqbody(priv) < (SME_EVENT_BUFF_SIZE - 1)) {
priv->sme_i.event_buff[priv->sme_i.qtail] = event; priv->sme_i.event_buff[priv->sme_i.qtail] = event;
inc_smeqtail(priv); inc_smeqtail(priv);
#ifdef KS_WLAN_DEBUG #ifdef DEBUG
if (priv->sme_i.max_event_count < cnt_smeqbody(priv)) if (priv->sme_i.max_event_count < cnt_smeqbody(priv))
priv->sme_i.max_event_count = cnt_smeqbody(priv); priv->sme_i.max_event_count = cnt_smeqbody(priv);
#endif /* KS_WLAN_DEBUG */ #endif
} else { } else {
/* in case of buffer overflow */ /* in case of buffer overflow */
netdev_err(priv->net_dev, "sme queue buffer overflow\n"); netdev_err(priv->net_dev, "sme queue buffer overflow\n");
...@@ -2461,7 +2461,7 @@ int hostif_init(struct ks_wlan_private *priv) ...@@ -2461,7 +2461,7 @@ int hostif_init(struct ks_wlan_private *priv)
priv->sme_i.sme_status = SME_IDLE; priv->sme_i.sme_status = SME_IDLE;
priv->sme_i.qhead = 0; priv->sme_i.qhead = 0;
priv->sme_i.qtail = 0; priv->sme_i.qtail = 0;
#ifdef KS_WLAN_DEBUG #ifdef DEBUG
priv->sme_i.max_event_count = 0; priv->sme_i.max_event_count = 0;
#endif #endif
spin_lock_init(&priv->sme_i.sme_spin); spin_lock_init(&priv->sme_i.sme_spin);
......
...@@ -192,7 +192,7 @@ struct sme_info { ...@@ -192,7 +192,7 @@ struct sme_info {
int event_buff[SME_EVENT_BUFF_SIZE]; int event_buff[SME_EVENT_BUFF_SIZE];
unsigned int qhead; unsigned int qhead;
unsigned int qtail; unsigned int qtail;
#ifdef KS_WLAN_DEBUG #ifdef DEBUG
/* for debug */ /* for debug */
unsigned int max_event_count; unsigned int max_event_count;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment