diff options
author | Ajay Singh <ajay.kathat@microchip.com> | 2019-02-02 19:17:02 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-04 12:38:40 +0100 |
commit | 96ce4f83cd7ee5ff79812e5808184c7eb0bbca82 (patch) | |
tree | fb9041939d617aeb086593e59a98e189926140e6 /drivers/staging/wilc1000 | |
parent | bd3c7339548ad3d262c183b85996b0307d60a2d5 (diff) | |
download | linux-96ce4f83cd7ee5ff79812e5808184c7eb0bbca82.tar.gz linux-96ce4f83cd7ee5ff79812e5808184c7eb0bbca82.tar.bz2 linux-96ce4f83cd7ee5ff79812e5808184c7eb0bbca82.zip |
staging: wilc1000: remove unnecessary debug log messages
Remove unnecessary debug log messages.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r-- | drivers/staging/wilc1000/linux_wlan.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index b0249d264e4b..81472d212bd1 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -19,9 +19,7 @@ static int dev_state_ev_handler(struct notifier_block *this, struct wilc_priv *priv; struct host_if_drv *hif_drv; struct net_device *dev; - u8 *ip_addr_buf; struct wilc_vif *vif; - u8 null_ip[4] = {0}; char wlan_dev_name[5] = "wlan0"; if (!dev_iface || !dev_iface->ifa_dev || !dev_iface->ifa_dev->dev) @@ -56,13 +54,6 @@ static int dev_state_ev_handler(struct notifier_block *this, if (vif->wilc->enable_ps) wilc_set_power_mgmt(vif, 1, 0); - netdev_dbg(dev, "[%s] Up IP\n", dev_iface->ifa_label); - - ip_addr_buf = (char *)&dev_iface->ifa_address; - netdev_dbg(dev, "IP add=%d:%d:%d:%d\n", - ip_addr_buf[0], ip_addr_buf[1], - ip_addr_buf[2], ip_addr_buf[3]); - break; case NETDEV_DOWN: @@ -77,13 +68,6 @@ static int dev_state_ev_handler(struct notifier_block *this, wilc_resolve_disconnect_aberration(vif); - netdev_dbg(dev, "[%s] Down IP\n", dev_iface->ifa_label); - - ip_addr_buf = null_ip; - netdev_dbg(dev, "IP add=%d:%d:%d:%d\n", - ip_addr_buf[0], ip_addr_buf[1], - ip_addr_buf[2], ip_addr_buf[3]); - break; default: @@ -851,9 +835,6 @@ netdev_tx_t wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev) struct wilc *wilc = vif->wilc; struct tx_complete_data *tx_data = NULL; int queue_count; - char *udp_buf; - struct iphdr *ih; - struct ethhdr *eth_h; if (skb->dev != ndev) { netdev_err(ndev, "Packet not destined to this device\n"); @@ -871,18 +852,6 @@ netdev_tx_t wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev) tx_data->size = skb->len; tx_data->skb = skb; - eth_h = (struct ethhdr *)(skb->data); - if (eth_h->h_proto == cpu_to_be16(0x8e88)) - netdev_dbg(ndev, "EAPOL transmitted\n"); - - ih = (struct iphdr *)(skb->data + sizeof(struct ethhdr)); - - udp_buf = (char *)ih + sizeof(struct iphdr); - if ((udp_buf[1] == 68 && udp_buf[3] == 67) || - (udp_buf[1] == 67 && udp_buf[3] == 68)) - netdev_dbg(ndev, "DHCP Message transmitted, type:%x %x %x\n", - udp_buf[248], udp_buf[249], udp_buf[250]); - vif->netstats.tx_packets++; vif->netstats.tx_bytes += tx_data->size; tx_data->bssid = wilc->vif[vif->idx]->bssid; |