Remove commented printk
v2 cover Remove commented printk
These patches remove the printk messages which are not needed.
Changes in v2-
Fixed subject line.
Shraddha Barke (3):
Staging: rtl8192u: ieee80211: ieee80211_softmac: Remove commented printk messages
Staging: rtl8192u: ieee80211: ieee80211_wx: Remove commented printk messages
Staging: rtl8192u: ieee80211: ieee80211_rx: Remove commented printk messages
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 10 ---------- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 3 --- drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c | 8 -------- 3 files changed, 21 deletions(-)
Signature · 1 line
2.1.4
PATCH v2 1/3 Staging: rtl8192u: ieee80211: ieee80211_softmac: Remove commented printk messages
Remove commented printk since it is not needed
---
Changes in v2-
No change.
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 3 --- 1 file changed, 3 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -3
@@ -1272,7 +1272,6 @@ static void ieee80211_associate_step1(struct ieee80211_device *ieee)else { ieee->state =IEEE80211_ASSOCIATING_AUTHENTICATING ;IEEE80211_DEBUG_MGMT ("Sending authentication request\n" ); -//printk(KERN_WARNING "Sending authentication request\n"); softmac_mgmt_xmit (skb, ieee);//BUGON when you try to add_timer twice, using mod_timer may be better, john0709 if (!timer_pending (&ieee->associate_timer)) {
@@ -1735,11 +1734,9 @@ static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,return 0; */ dtim = ieee->current_network.dtim_data; -//printk("DTIM\n"); if (!(dtim &IEEE80211_DTIM_VALID ))return 0 ; timeout = ieee->current_network.beacon_interval;//should we use ps_timeout value or beacon_interval -//printk("VALID\n"); ieee->current_network.dtim_data =IEEE80211_DTIM_INVALID ;if (dtim & ((IEEE80211_DTIM_UCAST |IEEE80211_DTIM_MBCAST )& ieee->ps))
Signature · 1 line
2.1.4
PATCH v2 2/3 Staging: rtl8192u: ieee80211: ieee80211_wx: Remove commented printk messages
In reply to Shraddha BarkeRemove commented out printk messages since they are not needed
---
Changes in v2-
Fixed subject line.
drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c +0 -8
@@ -522,7 +522,6 @@ int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee,struct ieee80211_security sec = { .flags =0 , }; -//printk("======>encoding flag:%x,ext flag:%x, ext alg:%d\n", encoding->flags,ext->ext_flags, ext->alg); idx = encoding->flags &IW_ENCODE_INDEX ;if (idx) {if (idx <1 || idx >WEP_KEYS )
@@ -538,7 +537,6 @@ int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee, group_key =1 ; }else {/* some Cisco APs use idx>0 for unicast in dynamic WEP */ -//printk("not group key, flags:%x, ext->alg:%d\n", ext->ext_flags, ext->alg); if (idx !=0 && ext->alg !=IW_ENCODE_ALG_WEP )return -EINVAL ;if (ieee->iw_mode ==IW_MODE_INFRA )
@@ -567,7 +565,6 @@ int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee, sec.level =SEC_LEVEL_0 ; sec.flags |=SEC_LEVEL ; } -//printk("disabled: flag:%x\n", encoding->flags); goto done; }
@@ -638,7 +635,6 @@ int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee, goto done; }//skip_host_crypt: -//printk("skip_host_crypt:ext_flags:%x\n", ext->ext_flags); if (ext->ext_flags &IW_ENCODE_EXT_SET_TX_KEY ) { ieee->tx_keyidx = idx; sec.active_key = idx;
@@ -760,7 +756,6 @@ int ieee80211_wx_set_auth(struct ieee80211_device *ieee,switch (data->flags &IW_AUTH_INDEX ) {case IW_AUTH_WPA_VERSION :/*need to support wpa2 here*/ -//printk("wpa version:%x\n", data->value); break ;case IW_AUTH_CIPHER_PAIRWISE :case IW_AUTH_CIPHER_GROUP :
@@ -791,16 +786,13 @@ int ieee80211_wx_set_auth(struct ieee80211_device *ieee,else if (data->value &IW_AUTH_ALG_LEAP ){ ieee->open_wep =1 ; ieee->auth_mode =2 ; -//printk("hahahaa:LEAP\n"); }else return -EINVAL ; -//printk("open_wep:%d\n", ieee->open_wep); break ;case IW_AUTH_WPA_ENABLED : ieee->wpa_enabled = (data->value)?1 :0 ; -//printk("enalbe wpa:%d\n", ieee->wpa_enabled); break ;case IW_AUTH_RX_UNENCRYPTED_EAPOL :
Signature · 1 line
2.1.4
PATCH v2 3/3 Staging: rtl8192u: ieee80211: ieee80211_rx: Remove commented printk messages
In reply to Shraddha BarkeRemove commented out printk messages since they are not needed.
---
Changes in v2-
Fixed subject line.
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +0 -10
@@ -493,13 +493,11 @@ static int is_duplicate_packet(struct ieee80211_device *ieee,if ((*last_seq == seq) &&time_after (*last_time +IEEE_PACKET_RETRY_TIME , jiffies)) {if (*last_frag == frag){ -//printk(KERN_WARNING "[1] go drop!\n"); goto drop; }if (*last_frag +1 != frag)/* out-of-order fragment */ -//printk(KERN_WARNING "[2] go drop!\n"); goto drop; }else *last_seq = seq;
@@ -578,14 +576,12 @@ void ieee80211_indicate_packets(struct ieee80211_device *ieee, struct ieee80211_/* Indicat the packets to upper layer */ if (sub_skb) { -//printk("0skb_len(%d)\n", skb->len); sub_skb->protocol =eth_type_trans (sub_skb, ieee->dev);memset (sub_skb->cb,0 ,sizeof (sub_skb->cb)); sub_skb->dev = ieee->dev; sub_skb->ip_summed =CHECKSUM_NONE ;/* 802.11 crc not sufficient */ //skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */ ieee->last_rx_ps_time = jiffies; -//printk("1skb_len(%d)\n", skb->len); netif_rx (sub_skb); } }
@@ -795,7 +791,6 @@ static u8 parse_subframe(struct sk_buff *skb,if (rx_stats->bContainHTC) { LLCOffset += sHTCLng; } -//printk("ChkLength = %d\n", LLCOffset); // Null packet, don't indicate it to upper layer ChkLength = LLCOffset;/* + (Frame_WEP(frame)!=0 ?Adapter->MgntInfo.SecurityInfo.EncryptionHeadOverhead:0);*/
@@ -1340,14 +1335,12 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, }/* Indicat the packets to upper layer */ -//printk("0skb_len(%d)\n", skb->len); sub_skb->protocol =eth_type_trans (sub_skb, dev);memset (sub_skb->cb,0 ,sizeof (sub_skb->cb)); sub_skb->dev = dev; sub_skb->ip_summed =CHECKSUM_NONE ;/* 802.11 crc not sufficient */ //skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */ ieee->last_rx_ps_time = jiffies; -//printk("1skb_len(%d)\n", skb->len); netif_rx (sub_skb); } }
@@ -1758,8 +1751,6 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee, offset = (info_element->data[2 ] >>1 )*2 ; -//printk("offset1:%x aid:%x\n",offset, ieee->assoc_id); -if (ieee->assoc_id <8 *offset || ieee->assoc_id >8 *(offset + info_element->len -3 ))
@@ -2070,7 +2061,6 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee,case MFIE_TYPE_COUNTRY :IEEE80211_DEBUG_SCAN ("MFIE_TYPE_COUNTRY: %d bytes\n" , 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 break ;/* TODO */
Signature · 1 line
2.1.4
Re: [Outreachy kernel] [PATCH v2 3/3] Staging: rtl8192u: ieee80211: ieee80211_rx: Remove commented printk messages
Quoted 15 lines · Shraddha Barke
Remove commented out printk messages since they are not needed.
Signed-off-by Shraddha Barke <[email protected]>---
Changes in v2-
Fixed subject line.drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 10 ---------- 1 file changed, 10 deletions(-)drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +0
-0
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c static int is_duplicate_packet(struct ieee80211_device *ieee, · line 498
Quoted 7 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +0
-1@@ -493,13 +493,11 @@ static int is_duplicate_packet(struct ieee80211_device *ieee,if ((*last_seq == seq) &&time_after (*last_time +IEEE_PACKET_RETRY_TIME , jiffies)) {if (*last_frag == frag){ -//printk(KERN_WARNING "[1] go drop!\n"); goto drop; }
The braces are not needed here either, nor the blank line.
julia
Quoted 71 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +0
-10if (*last_frag +1 != frag)/* out-of-order fragment */ -//printk(KERN_WARNING "[2] go drop!\n"); goto drop; }else *last_seq = seq;@@ -578,14 +576,12 @@ void ieee80211_indicate_packets(struct ieee80211_device *ieee, struct ieee80211_/* Indicat the packets to upper layer */ if (sub_skb) { -//printk("0skb_len(%d)\n", skb->len); sub_skb->protocol =eth_type_trans (sub_skb, ieee->dev);memset (sub_skb->cb,0 ,sizeof (sub_skb->cb)); sub_skb->dev = ieee->dev; sub_skb->ip_summed =CHECKSUM_NONE ;/* 802.11 crc not sufficient */ //skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */ ieee->last_rx_ps_time = jiffies; -//printk("1skb_len(%d)\n", skb->len); netif_rx (sub_skb); } }@@ -795,7 +791,6 @@ static u8 parse_subframe(struct sk_buff *skb,if (rx_stats->bContainHTC) { LLCOffset += sHTCLng; } -//printk("ChkLength = %d\n", LLCOffset); // Null packet, don't indicate it to upper layer ChkLength = LLCOffset;/* + (Frame_WEP(frame)!=0 ?Adapter->MgntInfo.SecurityInfo.EncryptionHeadOverhead:0);*/ @@ -1340,14 +1335,12 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, }/* Indicat the packets to upper layer */ -//printk("0skb_len(%d)\n", skb->len); sub_skb->protocol =eth_type_trans (sub_skb, dev);memset (sub_skb->cb,0 ,sizeof (sub_skb->cb)); sub_skb->dev = dev; sub_skb->ip_summed =CHECKSUM_NONE ;/* 802.11 crc not sufficient */ //skb->ip_summed = CHECKSUM_UNNECESSARY; /* 802.11 crc not sufficient */ ieee->last_rx_ps_time = jiffies; -//printk("1skb_len(%d)\n", skb->len); netif_rx (sub_skb); } }@@ -1758,8 +1751,6 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee, offset = (info_element->data[2 ] >>1 )*2 ; -//printk("offset1:%x aid:%x\n",offset, ieee->assoc_id); -if (ieee->assoc_id <8 *offset || ieee->assoc_id >8 *(offset + info_element->len -3 ))@@ -2070,7 +2061,6 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee,case MFIE_TYPE_COUNTRY :IEEE80211_DEBUG_SCAN ("MFIE_TYPE_COUNTRY: %d bytes\n" , 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 break ;/* TODO */ --2.1.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1444478080-3348-4-git-send-email-shraddha.6596%40gmail.com.
For more options, visit https://groups.google.com/d/optout.