Staging: rtl8192u: ieee80211: ieee80211_rx: Remove commented printk messages
Remove commented out printk messages since they are not needed. Also remove the unnecessary braces and blank lines Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Reviewed-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
d91398347d
Коммит
879f3074c2
|
@ -492,14 +492,10 @@ static int is_duplicate_packet(struct ieee80211_device *ieee,
|
||||||
// }
|
// }
|
||||||
if ((*last_seq == seq) &&
|
if ((*last_seq == seq) &&
|
||||||
time_after(*last_time + IEEE_PACKET_RETRY_TIME, jiffies)) {
|
time_after(*last_time + IEEE_PACKET_RETRY_TIME, jiffies)) {
|
||||||
if (*last_frag == frag){
|
if (*last_frag == frag)
|
||||||
//printk(KERN_WARNING "[1] go drop!\n");
|
|
||||||
goto drop;
|
goto drop;
|
||||||
|
|
||||||
}
|
|
||||||
if (*last_frag + 1 != frag)
|
if (*last_frag + 1 != frag)
|
||||||
/* out-of-order fragment */
|
/* out-of-order fragment */
|
||||||
//printk(KERN_WARNING "[2] go drop!\n");
|
|
||||||
goto drop;
|
goto drop;
|
||||||
} else
|
} else
|
||||||
*last_seq = seq;
|
*last_seq = seq;
|
||||||
|
@ -510,7 +506,6 @@ static int is_duplicate_packet(struct ieee80211_device *ieee,
|
||||||
|
|
||||||
drop:
|
drop:
|
||||||
// BUG_ON(!(fc & IEEE80211_FCTL_RETRY));
|
// BUG_ON(!(fc & IEEE80211_FCTL_RETRY));
|
||||||
// printk("DUP\n");
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -578,14 +573,12 @@ void ieee80211_indicate_packets(struct ieee80211_device *ieee, struct ieee80211_
|
||||||
|
|
||||||
/* Indicat the packets to upper layer */
|
/* Indicat the packets to upper layer */
|
||||||
if (sub_skb) {
|
if (sub_skb) {
|
||||||
//printk("0skb_len(%d)\n", skb->len);
|
|
||||||
sub_skb->protocol = eth_type_trans(sub_skb, ieee->dev);
|
sub_skb->protocol = eth_type_trans(sub_skb, ieee->dev);
|
||||||
memset(sub_skb->cb, 0, sizeof(sub_skb->cb));
|
memset(sub_skb->cb, 0, sizeof(sub_skb->cb));
|
||||||
sub_skb->dev = ieee->dev;
|
sub_skb->dev = ieee->dev;
|
||||||
sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
|
sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
|
||||||
//skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */
|
//skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */
|
||||||
ieee->last_rx_ps_time = jiffies;
|
ieee->last_rx_ps_time = jiffies;
|
||||||
//printk("1skb_len(%d)\n", skb->len);
|
|
||||||
netif_rx(sub_skb);
|
netif_rx(sub_skb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -795,7 +788,6 @@ static u8 parse_subframe(struct sk_buff *skb,
|
||||||
if (rx_stats->bContainHTC) {
|
if (rx_stats->bContainHTC) {
|
||||||
LLCOffset += sHTCLng;
|
LLCOffset += sHTCLng;
|
||||||
}
|
}
|
||||||
//printk("ChkLength = %d\n", LLCOffset);
|
|
||||||
// Null packet, don't indicate it to upper layer
|
// Null packet, don't indicate it to upper layer
|
||||||
ChkLength = LLCOffset;/* + (Frame_WEP(frame)!=0 ?Adapter->MgntInfo.SecurityInfo.EncryptionHeadOverhead:0);*/
|
ChkLength = LLCOffset;/* + (Frame_WEP(frame)!=0 ?Adapter->MgntInfo.SecurityInfo.EncryptionHeadOverhead:0);*/
|
||||||
|
|
||||||
|
@ -1340,14 +1332,12 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Indicat the packets to upper layer */
|
/* Indicat the packets to upper layer */
|
||||||
//printk("0skb_len(%d)\n", skb->len);
|
|
||||||
sub_skb->protocol = eth_type_trans(sub_skb, dev);
|
sub_skb->protocol = eth_type_trans(sub_skb, dev);
|
||||||
memset(sub_skb->cb, 0, sizeof(sub_skb->cb));
|
memset(sub_skb->cb, 0, sizeof(sub_skb->cb));
|
||||||
sub_skb->dev = dev;
|
sub_skb->dev = dev;
|
||||||
sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
|
sub_skb->ip_summed = CHECKSUM_NONE; /* 802.11 crc not sufficient */
|
||||||
//skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */
|
//skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */
|
||||||
ieee->last_rx_ps_time = jiffies;
|
ieee->last_rx_ps_time = jiffies;
|
||||||
//printk("1skb_len(%d)\n", skb->len);
|
|
||||||
netif_rx(sub_skb);
|
netif_rx(sub_skb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1758,8 +1748,6 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee,
|
||||||
|
|
||||||
offset = (info_element->data[2] >> 1)*2;
|
offset = (info_element->data[2] >> 1)*2;
|
||||||
|
|
||||||
//printk("offset1:%x aid:%x\n",offset, ieee->assoc_id);
|
|
||||||
|
|
||||||
if(ieee->assoc_id < 8*offset ||
|
if(ieee->assoc_id < 8*offset ||
|
||||||
ieee->assoc_id > 8*(offset + info_element->len -3))
|
ieee->assoc_id > 8*(offset + info_element->len -3))
|
||||||
|
|
||||||
|
@ -2070,7 +2058,6 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee,
|
||||||
case MFIE_TYPE_COUNTRY:
|
case MFIE_TYPE_COUNTRY:
|
||||||
IEEE80211_DEBUG_SCAN("MFIE_TYPE_COUNTRY: %d bytes\n",
|
IEEE80211_DEBUG_SCAN("MFIE_TYPE_COUNTRY: %d bytes\n",
|
||||||
info_element->len);
|
info_element->len);
|
||||||
//printk("=====>Receive <%s> Country IE\n",network->ssid);
|
|
||||||
ieee80211_extract_country_ie(ieee, info_element, network, network->bssid);//addr2 is same as addr3 when from an AP
|
ieee80211_extract_country_ie(ieee, info_element, network, network->bssid);//addr2 is same as addr3 when from an AP
|
||||||
break;
|
break;
|
||||||
/* TODO */
|
/* TODO */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче