Commit 81e38636 authored by Larry Finger's avatar Larry Finger

staging: rtl8192e: Remove extraneous log message

The driver logs all DHCP transactions and thus spams the logs.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent e829d65e
......@@ -632,15 +632,13 @@ int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
goto success;
}
if (skb->len > 282){
if (skb->len > 282) {
if (ETH_P_IP == ether_type) {
const struct iphdr *ip = (struct iphdr *)((u8 *)skb->data+14);
if (IPPROTO_UDP == ip->protocol) {
struct udphdr *udp = (struct udphdr *)((u8 *)ip + (ip->ihl << 2));
if (((((u8 *)udp)[1] == 68) && (((u8 *)udp)[3] == 67)) ||
((((u8 *)udp)[1] == 67) && (((u8 *)udp)[3] == 68))) {
printk("DHCP pkt src port:%d, dest port:%d!!\n", ((u8 *)udp)[1],((u8 *)udp)[3]);
bdhcp = true;
ieee->LPSDelayCnt = 200;
}
......
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