Commit 60959e53 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: linux_mon.c: removes debug logs

This patches removes unnecessary debug logs.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8a84397e
...@@ -157,10 +157,8 @@ static int mon_mgmt_tx(struct net_device *dev, const u8 *buf, size_t len) ...@@ -157,10 +157,8 @@ static int mon_mgmt_tx(struct net_device *dev, const u8 *buf, size_t len)
{ {
struct tx_complete_mon_data *mgmt_tx = NULL; struct tx_complete_mon_data *mgmt_tx = NULL;
if (!dev) { if (!dev)
PRINT_D(HOSTAPD_DBG, "ERROR: dev == NULL\n");
return -EFAULT; return -EFAULT;
}
netif_stop_queue(dev); netif_stop_queue(dev);
mgmt_tx = kmalloc(sizeof(*mgmt_tx), GFP_ATOMIC); mgmt_tx = kmalloc(sizeof(*mgmt_tx), GFP_ATOMIC);
...@@ -205,17 +203,12 @@ static netdev_tx_t WILC_WFI_mon_xmit(struct sk_buff *skb, ...@@ -205,17 +203,12 @@ static netdev_tx_t WILC_WFI_mon_xmit(struct sk_buff *skb,
return -EFAULT; return -EFAULT;
mon_priv = netdev_priv(wilc_wfi_mon); mon_priv = netdev_priv(wilc_wfi_mon);
if (!mon_priv)
if (!mon_priv) {
PRINT_ER("Monitor interface private structure is NULL\n");
return -EFAULT; return -EFAULT;
}
rtap_len = ieee80211_get_radiotap_len(skb->data); rtap_len = ieee80211_get_radiotap_len(skb->data);
if (skb->len < rtap_len) { if (skb->len < rtap_len)
PRINT_ER("Error in radiotap header\n");
return -1; return -1;
}
/* skip the radiotap header */ /* skip the radiotap header */
PRINT_INFO(HOSTAPD_DBG, "Radiotap len: %d\n", rtap_len); PRINT_INFO(HOSTAPD_DBG, "Radiotap len: %d\n", rtap_len);
...@@ -306,11 +299,8 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devi ...@@ -306,11 +299,8 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devi
return wilc_wfi_mon; return wilc_wfi_mon;
wilc_wfi_mon = alloc_etherdev(sizeof(struct WILC_WFI_mon_priv)); wilc_wfi_mon = alloc_etherdev(sizeof(struct WILC_WFI_mon_priv));
if (!wilc_wfi_mon) { if (!wilc_wfi_mon)
PRINT_ER("failed to allocate memory\n");
return NULL; return NULL;
}
wilc_wfi_mon->type = ARPHRD_IEEE80211_RADIOTAP; wilc_wfi_mon->type = ARPHRD_IEEE80211_RADIOTAP;
strncpy(wilc_wfi_mon->name, name, IFNAMSIZ); strncpy(wilc_wfi_mon->name, name, IFNAMSIZ);
wilc_wfi_mon->name[IFNAMSIZ - 1] = 0; wilc_wfi_mon->name[IFNAMSIZ - 1] = 0;
...@@ -322,10 +312,8 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devi ...@@ -322,10 +312,8 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devi
return NULL; return NULL;
} }
priv = netdev_priv(wilc_wfi_mon); priv = netdev_priv(wilc_wfi_mon);
if (!priv) { if (!priv)
PRINT_ER("private structure is NULL\n");
return NULL; return NULL;
}
priv->real_ndev = real_dev; priv->real_ndev = real_dev;
......
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