Skip to content

Commit

Permalink
staging: rtl8192e: Remove extraneous log message
Browse files Browse the repository at this point in the history
The driver logs all DHCP transactions and thus spams the logs.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 25, 2011
1 parent e829d65 commit 81e3863
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/rtl8192e/rtllib_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 81e3863

Please sign in to comment.