Skip to contentSkip to conversation

Staging:rtl8192u: ieee80211: Add space before that open '('

PATCH In review Hatice ERTÜRK 2 participants 4 messages Mar 2, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging:rtl8192u: ieee80211: Add space before that open '('

Space prohibited before that open parenthesis '(' . That's why add space before that open parenthesis.

---
 .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 232 ++++++++++-----------
 1 file changed, 116 insertions(+), 116 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +116 -116
index 71b7bb8..057d4d1 100644
@@ -112,7 +112,7 @@ static void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p)
 	*tag++ = 0x00;
 	*tag++ = 0x01;
 #ifdef SUPPORT_USPD
-	if(ieee->current_network.wmm_info & 0x80) {
+	if (ieee->current_network.wmm_info & 0x80) {
 		*tag++ = 0x0f|MAX_SP_Len;
 	} else {
 		*tag++ = MAX_SP_Len;
@@ -165,7 +165,7 @@ static struct sk_buff *dequeue_mgmt(struct ieee80211_device *ieee)
 {
 	struct sk_buff *ret;
 
-	if(ieee->mgmt_queue_tail == ieee->mgmt_queue_head)
+	if (ieee->mgmt_queue_tail == ieee->mgmt_queue_head)
 		return NULL;
 
 	ret = ieee->mgmt_queue_ring[ieee->mgmt_queue_tail];
@@ -187,14 +187,14 @@ static u8 MgntQuery_MgntFrameTxRate(struct ieee80211_device *ieee)
 	u8 rate;
 
 	/* 2008/01/25 MH For broadcom, MGNT frame set as OFDM 6M. */
-	if(pHTInfo->IOTAction & HT_IOT_ACT_MGNT_USE_CCK_6M)
+	if (pHTInfo->IOTAction & HT_IOT_ACT_MGNT_USE_CCK_6M)
 		rate = 0x0c;
 	else
 		rate = ieee->basic_rate & 0x7f;
 
-	if(rate == 0){
+	if (rate == 0){
 		/* 2005.01.26, by rcnjko. */
-		if(ieee->mode == IEEE_A||
+		if (ieee->mode == IEEE_A||
 		   ieee->mode== IEEE_N_5G||
 		   (ieee->mode== IEEE_N_24G&&!pHTInfo->bCurSuppCCK))
 			rate = 0x0c;
@@ -237,8 +237,8 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee
 	tcb_desc->bTxDisableRateFallBack = 1;
 	tcb_desc->bTxUseDriverAssingedRate = 1;
 
-	if(single){
-		if(ieee->queue_stop){
+	if (single){
+		if (ieee->queue_stop){
 			enqueue_mgmt(ieee, skb);
 		}else{
 			header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4);
@@ -267,7 +267,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee
 			ieee->seq_ctrl[0]++;
 
 		/* check whether the managed packet queued greater than 5 */
-		if(!ieee->check_nic_enough_desc(ieee->dev,tcb_desc->queue_index)||\
+		if (!ieee->check_nic_enough_desc(ieee->dev,tcb_desc->queue_index)||\
 				(skb_queue_len(&ieee->skb_waitQ[tcb_desc->queue_index]) != 0)||\
 				(ieee->queue_stop) ) {
 			/* insert the skb packet to the management queue */
@@ -293,7 +293,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *i
 		(struct ieee80211_hdr_3addr  *) skb->data;
 
 
-	if(single){
+	if (single){
 
 		header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
 
@@ -364,7 +364,7 @@ struct sk_buff *ieee80211_get_beacon_(struct ieee80211_device *ieee);
 static void ieee80211_send_beacon(struct ieee80211_device *ieee)
 {
 	struct sk_buff *skb;
-	if(!ieee->ieee_up)
+	if (!ieee->ieee_up)
 		return;
 	/* unsigned long flags; */
 	skb = ieee80211_get_beacon_(ieee);
@@ -378,7 +378,7 @@ static void ieee80211_send_beacon(struct ieee80211_device *ieee)
 		(MSECS( ieee->current_network.beacon_interval -5));
 
 	spin_lock_irqsave(&ieee->beacon_lock,flags); */
-	if(ieee->beacon_txing && ieee->ieee_up){
+	if (ieee->beacon_txing && ieee->ieee_up){
 		/* if(!timer_pending(&ieee->beacon_timer))
 			add_timer(&ieee->beacon_timer); */
 		mod_timer(&ieee->beacon_timer,jiffies+(MSECS(ieee->current_network.beacon_interval-5)));
@@ -430,14 +430,14 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
 	memcpy(channel_map, GET_DOT11D_INFO(ieee)->channel_map, MAX_CHANNEL_NUMBER+1);
 	down(&ieee->scan_sem);
 
-	while(1)
+	while (1)
 	{
 
 		do{
 			ch++;
 			if (ch > MAX_CHANNEL_NUMBER)
 				goto out; /* scan completed */
-		}while(!channel_map[ch]);
+		}while (!channel_map[ch]);
 
 		/* this function can be called in two situations
 		 * 1- We have switched to ad-hoc mode and we are
@@ -461,13 +461,13 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
 		if (ieee->state == IEEE80211_LINKED)
 			goto out;
 		ieee->set_chan(ieee->dev, ch);
-		if(channel_map[ch] == 1)
+		if (channel_map[ch] == 1)
 		ieee80211_send_probe_requests(ieee);
 
 		/* this prevent excessive time wait when we
 		 * need to wait for a syncro scan to end..
 		 */
-		if(ieee->state < IEEE80211_LINKED)
+		if (ieee->state < IEEE80211_LINKED)
 			;
 		else
 		if (ieee->sync_scan_hurryup)
@@ -478,13 +478,13 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
 
 	}
 out:
-	if(ieee->state < IEEE80211_LINKED){
+	if (ieee->state < IEEE80211_LINKED){
 		ieee->actscanning = false;
 		up(&ieee->scan_sem);
 	}
 	else{
 	ieee->sync_scan_hurryup = 0;
-	if(IS_DOT11D_ENABLE(ieee))
+	if (IS_DOT11D_ENABLE(ieee))
 		DOT11D_ScanComplete(ieee);
 	up(&ieee->scan_sem);
 }
@@ -498,7 +498,7 @@ static void ieee80211_softmac_scan_wq(struct work_struct *work)
 	static short watchdog;
 	u8 channel_map[MAX_CHANNEL_NUMBER+1];
 	memcpy(channel_map, GET_DOT11D_INFO(ieee)->channel_map, MAX_CHANNEL_NUMBER+1);
-	if(!ieee->ieee_up)
+	if (!ieee->ieee_up)
 		return;
 	down(&ieee->scan_sem);
 	do{
@@ -512,11 +512,11 @@ static void ieee80211_softmac_scan_wq(struct work_struct *work)
 				goto out; /* no good chans */
 			}
 		}
-	}while(!channel_map[ieee->current_network.channel]);
+	}while (!channel_map[ieee->current_network.channel]);
 	if (ieee->scanning == 0 )
 		goto out;
 	ieee->set_chan(ieee->dev, ieee->current_network.channel);
-	if(channel_map[ieee->current_network.channel] == 1)
+	if (channel_map[ieee->current_network.channel] == 1)
 		ieee80211_send_probe_requests(ieee);
 
 
@@ -525,7 +525,7 @@ static void ieee80211_softmac_scan_wq(struct work_struct *work)
 	up(&ieee->scan_sem);
 	return;
 out:
-	if(IS_DOT11D_ENABLE(ieee))
+	if (IS_DOT11D_ENABLE(ieee))
 		DOT11D_ScanComplete(ieee);
 	ieee->actscanning = false;
 	watchdog = 0;
@@ -562,7 +562,7 @@ static void ieee80211_beacons_stop(struct ieee80211_device *ieee)
 
 void ieee80211_stop_send_beacons(struct ieee80211_device *ieee)
 {
-	if(ieee->stop_send_beacons)
+	if (ieee->stop_send_beacons)
 		ieee->stop_send_beacons(ieee->dev);
 	if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
 		ieee80211_beacons_stop(ieee);
@@ -571,9 +571,9 @@ EXPORT_SYMBOL(ieee80211_stop_send_beacons);
 
 void ieee80211_start_send_beacons(struct ieee80211_device *ieee)
 {
-	if(ieee->start_send_beacons)
+	if (ieee->start_send_beacons)
 		ieee->start_send_beacons(ieee->dev, ieee->basic_rate);
-	if(ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
+	if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
 		ieee80211_beacons_start(ieee);
 }
 EXPORT_SYMBOL(ieee80211_start_send_beacons);
@@ -609,9 +609,9 @@ EXPORT_SYMBOL(ieee80211_stop_scan);
 /* called with ieee->lock held */
 static void ieee80211_start_scan(struct ieee80211_device *ieee)
 {
-	if(IS_DOT11D_ENABLE(ieee) )
+	if (IS_DOT11D_ENABLE(ieee) )
 	{
-		if(IS_COUNTRY_IE_VALID(ieee))
+		if (IS_COUNTRY_IE_VALID(ieee))
 		{
 			RESET_CIE_WATCHDOG(ieee);
 		}
@@ -629,9 +629,9 @@ static void ieee80211_start_scan(struct ieee80211_device *ieee)
 /* called with wx_sem held */
 void ieee80211_start_scan_syncro(struct ieee80211_device *ieee)
 {
-	if(IS_DOT11D_ENABLE(ieee) )
+	if (IS_DOT11D_ENABLE(ieee) )
 	{
-		if(IS_COUNTRY_IE_VALID(ieee))
+		if (IS_COUNTRY_IE_VALID(ieee))
 		{
 			RESET_CIE_WATCHDOG(ieee);
 		}
@@ -670,11 +670,11 @@ inline struct sk_buff *ieee80211_authentication_req(struct ieee80211_network *be
 	memcpy(auth->header.addr3, beacon->bssid, ETH_ALEN);
 
 	/* auth->algorithm = ieee->open_wep ? WLAN_AUTH_OPEN : WLAN_AUTH_SHARED_KEY; */
-	if(ieee->auth_mode == 0)
+	if (ieee->auth_mode == 0)
 		auth->algorithm = WLAN_AUTH_OPEN;
-	else if(ieee->auth_mode == 1)
+	else if (ieee->auth_mode == 1)
 		auth->algorithm = WLAN_AUTH_SHARED_KEY;
-	else if(ieee->auth_mode == 2)
+	else if (ieee->auth_mode == 2)
 		auth->algorithm = WLAN_AUTH_OPEN;/* 0x80; */
 	printk("=================>%s():auth->algorithm is %d\n",__func__,auth->algorithm);
 	auth->transaction = cpu_to_le16(ieee->associate_seq);
@@ -712,14 +712,14 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 	u8 *tmp_generic_ie_buf=NULL;
 	u8 tmp_generic_ie_len=0;
 
-	if(rate_ex_len > 0) rate_ex_len+=2;
+	if (rate_ex_len > 0) rate_ex_len+=2;
 
-	if(ieee->current_network.capability & WLAN_CAPABILITY_IBSS)
+	if (ieee->current_network.capability & WLAN_CAPABILITY_IBSS)
 		atim_len = 4;
 	else
 		atim_len = 0;
 
-	if(ieee80211_is_54g(&ieee->current_network))
+	if (ieee80211_is_54g(&ieee->current_network))
 		erp_len = 3;
 	else
 		erp_len = 0;
@@ -739,7 +739,7 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 	HTConstructInfoElement(ieee,tmp_ht_info_buf,&tmp_ht_info_len, encrypt);
 
 
-	if(pHTInfo->bRegRT2RTAggregation)
+	if (pHTInfo->bRegRT2RTAggregation)
 	{
 		tmp_generic_ie_buf = ieee->pHTInfo->szRT2RTAggBuffer;
 		tmp_generic_ie_len = sizeof(ieee->pHTInfo->szRT2RTAggBuffer);
@@ -776,7 +776,7 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 	beacon_buf->capability |=
 		cpu_to_le16(ieee->current_network.capability & WLAN_CAPABILITY_SHORT_PREAMBLE); /* add short preamble here */
 
-	if(ieee->short_slot && (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_SLOT))
+	if (ieee->short_slot && (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_SLOT))
 		beacon_buf->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);
 
 	crypt = ieee->crypt[ieee->tx_keyidx];
@@ -803,7 +803,7 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 	*(tag++) = 1;
 	*(tag++) = ieee->current_network.channel;
 
-	if(atim_len){
+	if (atim_len){
 		*(tag++) = MFIE_TYPE_IBSS_SET;
 		*(tag++) = 2;
 
@@ -812,12 +812,12 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 		tag+=2;
 	}
 
-	if(erp_len){
+	if (erp_len){
 		*(tag++) = MFIE_TYPE_ERP;
 		*(tag++) = 1;
 		*(tag++) = erpinfo_content;
 	}
-	if(rate_ex_len){
+	if (rate_ex_len){
 		*(tag++) = MFIE_TYPE_RATES_EX;
 		*(tag++) = rate_ex_len-2;
 		memcpy(tag, ieee->current_network.rates_ex, rate_ex_len-2);
@@ -870,7 +870,7 @@ static struct sk_buff *ieee80211_assoc_resp(struct ieee80211_device *ieee,
 		WLAN_CAPABILITY_BSS : WLAN_CAPABILITY_IBSS);
 
 
-	if(ieee->short_slot)
+	if (ieee->short_slot)
 		assoc->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);
 
 	if (ieee->host_encrypt)
@@ -1016,12 +1016,12 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 	encrypt = ieee->host_encrypt && crypt && crypt->ops && ((0 == strcmp(crypt->ops->name,"WEP") || wpa_ie_len));
 
 	/* Include High Throuput capability && Realtek proprietary */
-	if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT)
+	if (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT)
 	{
 		ht_cap_buf = (u8 *)&(ieee->pHTInfo->SelfHTCap);
 		ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap);
 		HTConstructCapabilityElement(ieee, ht_cap_buf, &ht_cap_len, encrypt);
-		if(ieee->pHTInfo->bCurrentRT2RTAggregation)
+		if (ieee->pHTInfo->bCurrentRT2RTAggregation)
 		{
 			realtek_ie_buf = ieee->pHTInfo->szRT2RTAggBuffer;
 			realtek_ie_len = sizeof( ieee->pHTInfo->szRT2RTAggBuffer);
@@ -1029,16 +1029,16 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 
 		}
 	}
-	if(ieee->qos_support){
+	if (ieee->qos_support){
 		wmm_info_len = beacon->qos_data.supported?9:0;
 	}
 
 
-	if(beacon->bCkipSupported)
+	if (beacon->bCkipSupported)
 	{
 		ckip_ie_len = 30+2;
 	}
-	if(beacon->bCcxRmEnable)
+	if (beacon->bCcxRmEnable)
 	{
 		ccxrm_ie_len = 6+2;
 	}
@@ -1098,7 +1098,7 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 	if (beacon->capability & WLAN_CAPABILITY_SHORT_PREAMBLE)
 		hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_PREAMBLE); /* add short_preamble here */
 
-	if(ieee->short_slot)
+	if (ieee->short_slot)
 		hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);
 	if (wmm_info_len) //QOS
 		hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_QOS);
@@ -1142,7 +1142,7 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 		tag += osCcxAironetIE.Length;
 	}
 
-	if(beacon->bCcxRmEnable)
+	if (beacon->bCcxRmEnable)
 	{
 		static u8 CcxRmCapBuf[] = {0x00, 0x40, 0x96, 0x01, 0x01, 0x00};
 		OCTET_STRING osCcxRmCap;
@@ -1169,8 +1169,8 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 		tag += osCcxVerNum.Length;
 	}
 	/* HT cap element */
-	if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
-		if(ieee->pHTInfo->ePeerHTSpecVer != HT_SPEC_VER_EWC)
+	if (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
+		if (ieee->pHTInfo->ePeerHTSpecVer != HT_SPEC_VER_EWC)
 		{
 			tag = skb_put(skb, ht_cap_len);
 			*tag++ = MFIE_TYPE_HT_CAP;
@@ -1188,18 +1188,18 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 	}
 
 	tag = skb_put(skb, wmm_info_len);
-	if(wmm_info_len) {
+	if (wmm_info_len) {
 	  ieee80211_WMM_Info(ieee, &tag);
 	}
 #ifdef THOMAS_TURBO
 	tag = skb_put(skb, turbo_info_len);
-	if(turbo_info_len) {
+	if (turbo_info_len) {
 		ieee80211_TURBO_Info(ieee, &tag);
 	}
 #endif
 
-	if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
-		if(ieee->pHTInfo->ePeerHTSpecVer == HT_SPEC_VER_EWC)
+	if (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
+		if (ieee->pHTInfo->ePeerHTSpecVer == HT_SPEC_VER_EWC)
 		{
 			tag = skb_put(skb, ht_cap_len);
 			*tag++ = MFIE_TYPE_GENERIC;
@@ -1208,7 +1208,7 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 			tag += ht_cap_len -2;
 		}
 
-		if(ieee->pHTInfo->bCurrentRT2RTAggregation){
+		if (ieee->pHTInfo->bCurrentRT2RTAggregation){
 			tag = skb_put(skb, realtek_ie_len);
 			*tag++ = MFIE_TYPE_GENERIC;
 			*tag++ = realtek_ie_len - 2;
@@ -1274,7 +1274,7 @@ static void ieee80211_associate_step1(struct ieee80211_device *ieee)
 		/* 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)){
+		if (!timer_pending(&ieee->associate_timer)){
 			ieee->associate_timer.expires = jiffies + (HZ / 2);
 			add_timer(&ieee->associate_timer);
 		}
@@ -1337,7 +1337,7 @@ static void ieee80211_associate_complete_wq(struct work_struct *work)
 {
 	struct ieee80211_device *ieee = container_of(work, struct ieee80211_device, associate_complete_wq);
 	printk(KERN_INFO "Associated successfully\n");
-	if(ieee80211_is_54g(&ieee->current_network) &&
+	if (ieee80211_is_54g(&ieee->current_network) &&
 		(ieee->modulation & IEEE80211_OFDM_MODULATION)){
 
 		ieee->rate = 108;
@@ -1359,17 +1359,17 @@ static void ieee80211_associate_complete_wq(struct work_struct *work)
 	}
 	ieee->LinkDetectInfo.SlotNum = 2 * (1 + ieee->current_network.beacon_interval/500);
 	/* To prevent the immediately calling watch_dog after association. */
-	if(ieee->LinkDetectInfo.NumRecvBcnInPeriod==0||ieee->LinkDetectInfo.NumRecvDataInPeriod==0 )
+	if (ieee->LinkDetectInfo.NumRecvBcnInPeriod==0||ieee->LinkDetectInfo.NumRecvDataInPeriod==0 )
 	{
 		ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1;
 		ieee->LinkDetectInfo.NumRecvDataInPeriod= 1;
 	}
 	ieee->link_change(ieee->dev);
-	if(ieee->is_silent_reset == 0){
+	if (ieee->is_silent_reset == 0){
 		printk("============>normal associate\n");
 	notify_wx_assoc_event(ieee);
 	}
-	else if(ieee->is_silent_reset == 1)
+	else if (ieee->is_silent_reset == 1)
 	{
 		printk("==================>silent reset associate\n");
 		ieee->is_silent_reset = 0;
@@ -1477,7 +1477,7 @@ inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee
 					/* Join the network for the first time */
 					ieee->AsocRetryCount = 0;
 					/* for HT by amy 080514 */
-					if((ieee->current_network.qos_data.supported == 1) &&
+					if ((ieee->current_network.qos_data.supported == 1) &&
 					  /* (ieee->pHTInfo->bEnableHT && ieee->current_network.bssht.bdSupportHT)) */
 					   ieee->current_network.bssht.bdSupportHT)
 /*WB, 2008.09.09:bCurrentHTSupport and bEnableHT two flags are going to put together to check whether we are in HT now, so needn't to check bEnableHT flags here. That's is to say we will set to HT support whenever joined AP has the ability to support HT. And whether we are in HT or not, please check bCurrentHTSupport&&bEnableHT now please.*/
@@ -1493,7 +1493,7 @@ inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee
 					ieee->state = IEEE80211_ASSOCIATING;
 					queue_work(ieee->wq, &ieee->associate_procedure_wq);
 				}else{
-					if(ieee80211_is_54g(&ieee->current_network) &&
+					if (ieee80211_is_54g(&ieee->current_network) &&
 						(ieee->modulation & IEEE80211_OFDM_MODULATION)){
 						ieee->rate = 108;
 						ieee->SetWirelessMode(ieee->dev, IEEE_G);
@@ -1548,10 +1548,10 @@ static inline u16 auth_parse(struct sk_buff *skb, u8 **challenge, int *chlen)
 	}
 	*challenge = NULL;
 	a = (struct ieee80211_authentication *) skb->data;
-	if(skb->len > (sizeof(struct ieee80211_authentication) +3)){
+	if (skb->len > (sizeof(struct ieee80211_authentication) +3)){
 		t = skb->data + sizeof(struct ieee80211_authentication);
 
-		if(*(t++) == MFIE_TYPE_CHALLENGE){
+		if (*(t++) == MFIE_TYPE_CHALLENGE){
 			*chlen = *(t++);
 			*challenge = kmemdup(t, *chlen, GFP_ATOMIC);
 			if (!*challenge)
@@ -1652,7 +1652,7 @@ static inline u16 assoc_parse(struct ieee80211_device *ieee, struct sk_buff *skb
 	*aid = le16_to_cpu(response_head->aid) & 0x3fff;
 
 	status_code = le16_to_cpu(response_head->status);
-	if((status_code==WLAN_STATUS_ASSOC_DENIED_RATES || \
+	if ((status_code==WLAN_STATUS_ASSOC_DENIED_RATES || \
 	   status_code==WLAN_STATUS_CAPS_UNSUPPORTED)&&
 	   ((ieee->mode == IEEE_G) &&
 	    (ieee->current_network.mode == IEEE_N_24G) &&
@@ -1737,34 +1737,34 @@ static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,
 	*/
 	dtim = ieee->current_network.dtim_data;
 	/* printk("DTIM\n"); */
-	if(!(dtim & IEEE80211_DTIM_VALID))
+	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))
+	if (dtim & ((IEEE80211_DTIM_UCAST | IEEE80211_DTIM_MBCAST)& ieee->ps))
 		return 2;
 
-	if(!time_after(jiffies, ieee->dev->trans_start + MSECS(timeout)))
+	if (!time_after(jiffies, ieee->dev->trans_start + MSECS(timeout)))
 		return 0;
 
-	if(!time_after(jiffies, ieee->last_rx_ps_time + MSECS(timeout)))
+	if (!time_after(jiffies, ieee->last_rx_ps_time + MSECS(timeout)))
 		return 0;
 
-	if((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE ) &&
+	if ((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE ) &&
 		(ieee->mgmt_queue_tail != ieee->mgmt_queue_head))
 		return 0;
 
-	if(time_l){
+	if (time_l){
 		*time_l = ieee->current_network.last_dtim_sta_time[0]
 			+ (ieee->current_network.beacon_interval
 			* ieee->current_network.dtim_period) * 1000;
 	}
 
-	if(time_h){
+	if (time_h){
 		*time_h = ieee->current_network.last_dtim_sta_time[1];
-		if(time_l && *time_l < ieee->current_network.last_dtim_sta_time[0])
+		if (time_l && *time_l < ieee->current_network.last_dtim_sta_time[0])
 			*time_h += 1;
 	}
 
@@ -1783,7 +1783,7 @@ static inline void ieee80211_sta_ps(struct ieee80211_device *ieee)
 
 	spin_lock_irqsave(&ieee->lock, flags);
 
-	if((ieee->ps == IEEE80211_PS_DISABLED ||
+	if ((ieee->ps == IEEE80211_PS_DISABLED ||
 		ieee->iw_mode != IW_MODE_INFRA ||
 		ieee->state != IEEE80211_LINKED)){
 
@@ -1797,19 +1797,19 @@ static inline void ieee80211_sta_ps(struct ieee80211_device *ieee)
 
 	sleep = ieee80211_sta_ps_sleep(ieee,&th, &tl);
 	/* 2 wake, 1 sleep, 0 do nothing */
-	if(sleep == 0)
+	if (sleep == 0)
 		goto out;
 
-	if(sleep == 1){
+	if (sleep == 1){
 
-		if(ieee->sta_sleep == 1)
+		if (ieee->sta_sleep == 1)
 			ieee->enter_sleep_state(ieee->dev, th, tl);
 
-		else if(ieee->sta_sleep == 0){
+		else if (ieee->sta_sleep == 0){
 			/* printk("send null 1\n"); */
 			spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
 
-			if(ieee->ps_is_queue_empty(ieee->dev)){
+			if (ieee->ps_is_queue_empty(ieee->dev)){
 
 
 				ieee->sta_sleep = 2;
@@ -1826,7 +1826,7 @@ static inline void ieee80211_sta_ps(struct ieee80211_device *ieee)
 		}
 
 
-	}else if(sleep == 2){
+	}else if (sleep == 2){
 /* #warning CHECK_LOCK_HERE */
 		spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
 
@@ -1842,8 +1842,8 @@ out:
 
 void ieee80211_sta_wakeup(struct ieee80211_device *ieee, short nl)
 {
-	if(ieee->sta_sleep == 0){
-		if(nl){
+	if (ieee->sta_sleep == 0){
+		if (nl){
 			printk("Warning: driver is probably failing to report TX ps error\n");
 			ieee->ps_request_tx_ack(ieee->dev);
 			ieee80211_sta_ps_send_null_frame(ieee, 0);
@@ -1852,12 +1852,12 @@ void ieee80211_sta_wakeup(struct ieee80211_device *ieee, short nl)
 
 	}
 
-	if(ieee->sta_sleep == 1)
+	if (ieee->sta_sleep == 1)
 		ieee->sta_wake_up(ieee->dev);
 
 	ieee->sta_sleep = 0;
 
-	if(nl){
+	if (nl){
 		ieee->ps_request_tx_ack(ieee->dev);
 		ieee80211_sta_ps_send_null_frame(ieee, 0);
 	}
@@ -1869,9 +1869,9 @@ void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success)
 
 	spin_lock_irqsave(&ieee->lock, flags);
 
-	if(ieee->sta_sleep == 2){
+	if (ieee->sta_sleep == 2){
 		/* Null frame with PS bit set */
-		if(success){
+		if (success){
 			ieee->sta_sleep = 1;
 			ieee->enter_sleep_state(ieee->dev,ieee->ps_th,ieee->ps_tl);
 		}
@@ -1882,7 +1882,7 @@ void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success)
 	/* 21112005 - tx again null without PS bit if lost */
 	else {
 
-		if((ieee->sta_sleep == 0) && !success){
+		if ((ieee->sta_sleep == 0) && !success){
 			spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
 			ieee80211_sta_ps_send_null_frame(ieee, 0);
 			spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
@@ -1935,16 +1935,16 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 	/* struct ieee80211_info_element *info_element; */
 	bool bSupportNmode = true, bHalfSupportNmode = false; /* default support N mode, disable halfNmode */
 
-	if(!ieee->proto_started)
+	if (!ieee->proto_started)
 		return 0;
 
-	if(ieee->sta_sleep || (ieee->ps != IEEE80211_PS_DISABLED &&
+	if (ieee->sta_sleep || (ieee->ps != IEEE80211_PS_DISABLED &&
 		ieee->iw_mode == IW_MODE_INFRA &&
 		ieee->state == IEEE80211_LINKED))
 
 		tasklet_schedule(&ieee->ps_task);
 
-	if(WLAN_FC_GET_STYPE(header->frame_ctl) != IEEE80211_STYPE_PROBE_RESP &&
+	if (WLAN_FC_GET_STYPE(header->frame_ctl) != IEEE80211_STYPE_PROBE_RESP &&
 		WLAN_FC_GET_STYPE(header->frame_ctl) != IEEE80211_STYPE_BEACON)
 		ieee->last_rx_ps_time = jiffies;
 
@@ -1968,7 +1968,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 				ieee->softmac_stats.rx_ass_ok++;
 				/* station support qos */
 				/* Let the register setting defaultly with Legacy station */
-				if(ieee->qos_support) {
+				if (ieee->qos_support) {
 					assoc_resp = (struct ieee80211_assoc_response_frame *)skb->data;
 					memset(network, 0, sizeof(*network));
 					if (ieee80211_parse_info_param(ieee,assoc_resp->info_element,\
@@ -1994,7 +1994,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 				IEEE80211_DEBUG_MGMT(
 					"Association response status code 0x%x\n",
 					errcode);
-				if(ieee->AsocRetryCount < RT_ASOC_RETRY_LIMIT) {
+				if (ieee->AsocRetryCount < RT_ASOC_RETRY_LIMIT) {
 					queue_work(ieee->wq, &ieee->associate_procedure_wq);
 				} else {
 					ieee80211_associate_abort(ieee);
@@ -2022,15 +2022,15 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 
 					errcode = auth_parse(skb, &challenge, &chlen);
 					if (!errcode) {
-						if(ieee->open_wep || !challenge){
+						if (ieee->open_wep || !challenge){
 							ieee->state = IEEE80211_ASSOCIATING_AUTHENTICATED;
 							ieee->softmac_stats.rx_auth_rs_ok++;
-							if(!(ieee->pHTInfo->IOTAction&HT_IOT_ACT_PURE_N_MODE))
+							if (!(ieee->pHTInfo->IOTAction&HT_IOT_ACT_PURE_N_MODE))
 							{
 								if (!ieee->GetNmodeSupportBySecCfg(ieee->dev))
 								{
 											/* WEP or TKIP encryption */
-									if(IsHTHalfNmodeAPs(ieee))
+									if (IsHTHalfNmodeAPs(ieee))
 									{
 										bSupportNmode = true;
 										bHalfSupportNmode = true;
@@ -2044,7 +2044,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 								}
 							}
 							/* Dummy wirless mode setting to avoid encryption issue */
-							if(bSupportNmode) {
+							if (bSupportNmode) {
 								/* N mode setting */
 								ieee->SetWirelessMode(ieee->dev, \
 										ieee->current_network.mode);
@@ -2153,11 +2153,11 @@ void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *
 	ieee->stats.tx_bytes += txb->payload_size;
 	ieee->stats.tx_packets++;
 	tcb_desc = (cb_desc *)(txb->fragments[0]->cb + MAX_DEV_ADDR_SIZE);
-	if(tcb_desc->bMulticast) {
+	if (tcb_desc->bMulticast) {
 		ieee->stats.multicast++;
 	}
 	/* if xmit available, just xmit it immediately, else just insert it to the wait queue */
-	for(i = 0; i < txb->nr_frags; i++) {
+	for (i = 0; i < txb->nr_frags; i++) {
 #ifdef USB_TX_DRIVER_AGGREGATION_ENABLE
 		if ((skb_queue_len(&ieee->skb_drv_aggQ[queue_index]) != 0) ||
 #else
@@ -2198,7 +2198,7 @@ EXPORT_SYMBOL(ieee80211_softmac_xmit);
 static void ieee80211_resume_tx(struct ieee80211_device *ieee)
 {
 	int i;
-	for(i = ieee->tx_pending.frag; i < ieee->tx_pending.txb->nr_frags; i++) {
+	for (i = ieee->tx_pending.frag; i < ieee->tx_pending.txb->nr_frags; i++) {
 
 		if (ieee->queue_stop){
 			ieee->tx_pending.frag = i;
@@ -2248,7 +2248,7 @@ void ieee80211_wake_queue(struct ieee80211_device *ieee)
 
 	ieee->queue_stop = 0;
 
-	if(ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE){
+	if (ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE){
 		while (!ieee->queue_stop && (skb = dequeue_mgmt(ieee))){
 
 			header = (struct ieee80211_hdr_3addr  *) skb->data;
@@ -2327,7 +2327,7 @@ void ieee80211_start_master_bss(struct ieee80211_device *ieee)
 
 static void ieee80211_start_monitor_mode(struct ieee80211_device *ieee)
 {
-	if(ieee->raw_tx){
+	if (ieee->raw_tx){
 
 		if (ieee->data_hard_resume)
 			ieee->data_hard_resume(ieee->dev);
@@ -2347,7 +2347,7 @@ static void ieee80211_start_ibss_wq(struct work_struct *work)
 	 * (abort) this wq (when syncro scanning) before sleeping
 	 * on the semaphore
 	 */
-	if(!ieee->proto_started){
+	if (!ieee->proto_started){
 		printk("==========oh driver down return\n");
 		return;
 	}
@@ -2386,10 +2386,10 @@ static void ieee80211_start_ibss_wq(struct work_struct *work)
 	/* the network definitively is not here.. create a new cell */
 	if (ieee->state == IEEE80211_NOLINK){
 		printk("creating new IBSS cell\n");
-		if(!ieee->wap_set)
+		if (!ieee->wap_set)
 			ieee80211_randomize_cell(ieee);
 
-		if(ieee->modulation & IEEE80211_CCK_MODULATION){
+		if (ieee->modulation & IEEE80211_CCK_MODULATION){
 
 			ieee->current_network.rates_len = 4;
 
@@ -2401,7 +2401,7 @@ static void ieee80211_start_ibss_wq(struct work_struct *work)
 		}else
 			ieee->current_network.rates_len = 0;
 
-		if(ieee->modulation & IEEE80211_OFDM_MODULATION){
+		if (ieee->modulation & IEEE80211_OFDM_MODULATION){
 			ieee->current_network.rates_ex_len = 8;
 
 			ieee->current_network.rates_ex[0] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_6MB;
@@ -2424,7 +2424,7 @@ static void ieee80211_start_ibss_wq(struct work_struct *work)
 		ieee->SetWirelessMode(ieee->dev, IEEE_G);
 		ieee->current_network.atim_window = 0;
 		ieee->current_network.capability = WLAN_CAPABILITY_IBSS;
-		if(ieee->short_slot)
+		if (ieee->short_slot)
 			ieee->current_network.capability |= WLAN_CAPABILITY_SHORT_SLOT;
 
 	}
@@ -2458,9 +2458,9 @@ void ieee80211_start_bss(struct ieee80211_device *ieee)
 	 Ref: 802.11d 11.1.3.3
 	 STA shall not start a BSS unless properly formed Beacon frame including a Country IE.
 	*/
-	if(IS_DOT11D_ENABLE(ieee) && !IS_COUNTRY_IE_VALID(ieee))
+	if (IS_DOT11D_ENABLE(ieee) && !IS_COUNTRY_IE_VALID(ieee))
 	{
-		if(! ieee->bGlobalDomain)
+		if (! ieee->bGlobalDomain)
 		{
 			return;
 		}
@@ -2499,7 +2499,7 @@ void ieee80211_disassociate(struct ieee80211_device *ieee)
 
 	if (ieee->data_hard_stop)
 			ieee->data_hard_stop(ieee->dev);
-	if(IS_DOT11D_ENABLE(ieee))
+	if (IS_DOT11D_ENABLE(ieee))
 		Dot11d_Reset(ieee);
 	ieee->state = IEEE80211_NOLINK;
 	ieee->is_set_key = false;
@@ -2517,10 +2517,10 @@ static void ieee80211_associate_retry_wq(struct work_struct *work)
 	unsigned long flags;
 
 	down(&ieee->wx_sem);
-	if(!ieee->proto_started)
+	if (!ieee->proto_started)
 		goto exit;
 
-	if(ieee->state != IEEE80211_ASSOCIATING_RETRY)
+	if (ieee->state != IEEE80211_ASSOCIATING_RETRY)
 		goto exit;
 
 	/* until we do not set the state to IEEE80211_NOLINK
@@ -2542,7 +2542,7 @@ static void ieee80211_associate_retry_wq(struct work_struct *work)
 
 	spin_lock_irqsave(&ieee->lock, flags);
 
-	if(ieee->state == IEEE80211_NOLINK)
+	if (ieee->state == IEEE80211_NOLINK)
 		ieee80211_start_scan(ieee);
 
 	spin_unlock_irqrestore(&ieee->lock, flags);
@@ -2576,7 +2576,7 @@ struct sk_buff *ieee80211_get_beacon(struct ieee80211_device *ieee)
 	struct ieee80211_probe_response *b;
 
 	skb = ieee80211_get_beacon_(ieee);
-	if(!skb)
+	if (!skb)
 		return NULL;
 
 	b = (struct ieee80211_probe_response *) skb->data;
@@ -2640,7 +2640,7 @@ void ieee80211_start_protocol(struct ieee80211_device *ieee)
 			ch++;
 			if (ch > MAX_CHANNEL_NUMBER)
 				return; /* no channel found */
-		}while(!GET_DOT11D_INFO(ieee)->channel_map[ch]);
+		}while (!GET_DOT11D_INFO(ieee)->channel_map[ch]);
 		ieee->current_network.channel = ch;
 	}
 
@@ -2649,7 +2649,7 @@ void ieee80211_start_protocol(struct ieee80211_device *ieee)
 	/* printk("===>%s(), chan:%d\n", __func__, ieee->current_network.channel);
 	ieee->set_chan(ieee->dev,ieee->current_network.channel); */
 
-	for(i = 0; i < 17; i++) {
+	for (i = 0; i < 17; i++) {
 	  ieee->last_rxseq_num[i] = -1;
 	  ieee->last_rxfrag_num[i] = -1;
 	  ieee->last_packet_time[i] = 0;
@@ -2672,7 +2672,7 @@ void ieee80211_start_protocol(struct ieee80211_device *ieee)
 	else if (ieee->iw_mode == IW_MODE_MASTER)
 		ieee80211_start_master_bss(ieee);
 
-	else if(ieee->iw_mode == IW_MODE_MONITOR)
+	else if (ieee->iw_mode == IW_MODE_MONITOR)
 		ieee80211_start_monitor_mode(ieee);
 }
 
@@ -2685,7 +2685,7 @@ void ieee80211_softmac_init(struct ieee80211_device *ieee)
 
 	ieee->state = IEEE80211_NOLINK;
 	ieee->sync_scan_hurryup = 0;
-	for(i = 0; i < 5; i++) {
+	for (i = 0; i < 5; i++) {
 	  ieee->seq_ctrl[i] = 0;
 	}
 	ieee->pDot11dInfo = kzalloc(sizeof(RT_DOT11D_INFO), GFP_ATOMIC);
Signature · 1 line
1.9.1
#1 lore raw
Quoted 2 lines · Hatice ERTÜRK

Space prohibited before that open parenthesis '(' . That's why add space before that open parenthesis.

There are a lot fo spacing issues related to { on the same lines as these parenthesis problems. You should fix these at the same time.

julia

Quoted 855 lines
---
 .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 232 ++++++++++-----------
 1 file changed, 116 insertions(+), 116 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +116 -117
index 71b7bb8..057d4d1 100644
@@ -112,7 +112,7 @@ static void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p)
 	*tag++ = 0x00;
 	*tag++ = 0x01;
 #ifdef SUPPORT_USPD
-	if(ieee->current_network.wmm_info & 0x80) {
+	if (ieee->current_network.wmm_info & 0x80) {
 		*tag++ = 0x0f|MAX_SP_Len;
 	} else {
 		*tag++ = MAX_SP_Len;
@@ -165,7 +165,7 @@ static struct sk_buff *dequeue_mgmt(struct ieee80211_device *ieee)
 {
 	struct sk_buff *ret;
 
-	if(ieee->mgmt_queue_tail == ieee->mgmt_queue_head)
+	if (ieee->mgmt_queue_tail == ieee->mgmt_queue_head)
 		return NULL;
 
 	ret = ieee->mgmt_queue_ring[ieee->mgmt_queue_tail];
@@ -187,14 +187,14 @@ static u8 MgntQuery_MgntFrameTxRate(struct ieee80211_device *ieee)
 	u8 rate;
 
 	/* 2008/01/25 MH For broadcom, MGNT frame set as OFDM 6M. */
-	if(pHTInfo->IOTAction & HT_IOT_ACT_MGNT_USE_CCK_6M)
+	if (pHTInfo->IOTAction & HT_IOT_ACT_MGNT_USE_CCK_6M)
 		rate = 0x0c;
 	else
 		rate = ieee->basic_rate & 0x7f;
 
-	if(rate == 0){
+	if (rate == 0){
 		/* 2005.01.26, by rcnjko. */
-		if(ieee->mode == IEEE_A||
+		if (ieee->mode == IEEE_A||
 		   ieee->mode== IEEE_N_5G||
 		   (ieee->mode== IEEE_N_24G&&!pHTInfo->bCurSuppCCK))
 			rate = 0x0c;
@@ -237,8 +237,8 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee
 	tcb_desc->bTxDisableRateFallBack = 1;
 	tcb_desc->bTxUseDriverAssingedRate = 1;
 
-	if(single){
-		if(ieee->queue_stop){
+	if (single){
+		if (ieee->queue_stop){
 			enqueue_mgmt(ieee, skb);
 		}else{
 			header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4);
@@ -267,7 +267,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee
 			ieee->seq_ctrl[0]++;
 
 		/* check whether the managed packet queued greater than 5 */
-		if(!ieee->check_nic_enough_desc(ieee->dev,tcb_desc->queue_index)||\
+		if (!ieee->check_nic_enough_desc(ieee->dev,tcb_desc->queue_index)||\
 				(skb_queue_len(&ieee->skb_waitQ[tcb_desc->queue_index]) != 0)||\
 				(ieee->queue_stop) ) {
 			/* insert the skb packet to the management queue */
@@ -293,7 +293,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *i
 		(struct ieee80211_hdr_3addr  *) skb->data;
 
 
-	if(single){
+	if (single){
 
 		header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
 
@@ -364,7 +364,7 @@ struct sk_buff *ieee80211_get_beacon_(struct ieee80211_device *ieee);
 static void ieee80211_send_beacon(struct ieee80211_device *ieee)
 {
 	struct sk_buff *skb;
-	if(!ieee->ieee_up)
+	if (!ieee->ieee_up)
 		return;
 	/* unsigned long flags; */
 	skb = ieee80211_get_beacon_(ieee);
@@ -378,7 +378,7 @@ static void ieee80211_send_beacon(struct ieee80211_device *ieee)
 		(MSECS( ieee->current_network.beacon_interval -5));
 
 	spin_lock_irqsave(&ieee->beacon_lock,flags); */
-	if(ieee->beacon_txing && ieee->ieee_up){
+	if (ieee->beacon_txing && ieee->ieee_up){
 		/* if(!timer_pending(&ieee->beacon_timer))
 			add_timer(&ieee->beacon_timer); */
 		mod_timer(&ieee->beacon_timer,jiffies+(MSECS(ieee->current_network.beacon_interval-5)));
@@ -430,14 +430,14 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
 	memcpy(channel_map, GET_DOT11D_INFO(ieee)->channel_map, MAX_CHANNEL_NUMBER+1);
 	down(&ieee->scan_sem);
 
-	while(1)
+	while (1)
 	{
 
 		do{
 			ch++;
 			if (ch > MAX_CHANNEL_NUMBER)
 				goto out; /* scan completed */
-		}while(!channel_map[ch]);
+		}while (!channel_map[ch]);
 
 		/* this function can be called in two situations
 		 * 1- We have switched to ad-hoc mode and we are
@@ -461,13 +461,13 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
 		if (ieee->state == IEEE80211_LINKED)
 			goto out;
 		ieee->set_chan(ieee->dev, ch);
-		if(channel_map[ch] == 1)
+		if (channel_map[ch] == 1)
 		ieee80211_send_probe_requests(ieee);
 
 		/* this prevent excessive time wait when we
 		 * need to wait for a syncro scan to end..
 		 */
-		if(ieee->state < IEEE80211_LINKED)
+		if (ieee->state < IEEE80211_LINKED)
 			;
 		else
 		if (ieee->sync_scan_hurryup)
@@ -478,13 +478,13 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
 
 	}
 out:
-	if(ieee->state < IEEE80211_LINKED){
+	if (ieee->state < IEEE80211_LINKED){
 		ieee->actscanning = false;
 		up(&ieee->scan_sem);
 	}
 	else{
 	ieee->sync_scan_hurryup = 0;
-	if(IS_DOT11D_ENABLE(ieee))
+	if (IS_DOT11D_ENABLE(ieee))
 		DOT11D_ScanComplete(ieee);
 	up(&ieee->scan_sem);
 }
@@ -498,7 +498,7 @@ static void ieee80211_softmac_scan_wq(struct work_struct *work)
 	static short watchdog;
 	u8 channel_map[MAX_CHANNEL_NUMBER+1];
 	memcpy(channel_map, GET_DOT11D_INFO(ieee)->channel_map, MAX_CHANNEL_NUMBER+1);
-	if(!ieee->ieee_up)
+	if (!ieee->ieee_up)
 		return;
 	down(&ieee->scan_sem);
 	do{
@@ -512,11 +512,11 @@ static void ieee80211_softmac_scan_wq(struct work_struct *work)
 				goto out; /* no good chans */
 			}
 		}
-	}while(!channel_map[ieee->current_network.channel]);
+	}while (!channel_map[ieee->current_network.channel]);
 	if (ieee->scanning == 0 )
 		goto out;
 	ieee->set_chan(ieee->dev, ieee->current_network.channel);
-	if(channel_map[ieee->current_network.channel] == 1)
+	if (channel_map[ieee->current_network.channel] == 1)
 		ieee80211_send_probe_requests(ieee);
 
 
@@ -525,7 +525,7 @@ static void ieee80211_softmac_scan_wq(struct work_struct *work)
 	up(&ieee->scan_sem);
 	return;
 out:
-	if(IS_DOT11D_ENABLE(ieee))
+	if (IS_DOT11D_ENABLE(ieee))
 		DOT11D_ScanComplete(ieee);
 	ieee->actscanning = false;
 	watchdog = 0;
@@ -562,7 +562,7 @@ static void ieee80211_beacons_stop(struct ieee80211_device *ieee)
 
 void ieee80211_stop_send_beacons(struct ieee80211_device *ieee)
 {
-	if(ieee->stop_send_beacons)
+	if (ieee->stop_send_beacons)
 		ieee->stop_send_beacons(ieee->dev);
 	if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
 		ieee80211_beacons_stop(ieee);
@@ -571,9 +571,9 @@ EXPORT_SYMBOL(ieee80211_stop_send_beacons);
 
 void ieee80211_start_send_beacons(struct ieee80211_device *ieee)
 {
-	if(ieee->start_send_beacons)
+	if (ieee->start_send_beacons)
 		ieee->start_send_beacons(ieee->dev, ieee->basic_rate);
-	if(ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
+	if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
 		ieee80211_beacons_start(ieee);
 }
 EXPORT_SYMBOL(ieee80211_start_send_beacons);
@@ -609,9 +609,9 @@ EXPORT_SYMBOL(ieee80211_stop_scan);
 /* called with ieee->lock held */
 static void ieee80211_start_scan(struct ieee80211_device *ieee)
 {
-	if(IS_DOT11D_ENABLE(ieee) )
+	if (IS_DOT11D_ENABLE(ieee) )
 	{
-		if(IS_COUNTRY_IE_VALID(ieee))
+		if (IS_COUNTRY_IE_VALID(ieee))
 		{
 			RESET_CIE_WATCHDOG(ieee);
 		}
@@ -629,9 +629,9 @@ static void ieee80211_start_scan(struct ieee80211_device *ieee)
 /* called with wx_sem held */
 void ieee80211_start_scan_syncro(struct ieee80211_device *ieee)
 {
-	if(IS_DOT11D_ENABLE(ieee) )
+	if (IS_DOT11D_ENABLE(ieee) )
 	{
-		if(IS_COUNTRY_IE_VALID(ieee))
+		if (IS_COUNTRY_IE_VALID(ieee))
 		{
 			RESET_CIE_WATCHDOG(ieee);
 		}
@@ -670,11 +670,11 @@ inline struct sk_buff *ieee80211_authentication_req(struct ieee80211_network *be
 	memcpy(auth->header.addr3, beacon->bssid, ETH_ALEN);
 
 	/* auth->algorithm = ieee->open_wep ? WLAN_AUTH_OPEN : WLAN_AUTH_SHARED_KEY; */
-	if(ieee->auth_mode == 0)
+	if (ieee->auth_mode == 0)
 		auth->algorithm = WLAN_AUTH_OPEN;
-	else if(ieee->auth_mode == 1)
+	else if (ieee->auth_mode == 1)
 		auth->algorithm = WLAN_AUTH_SHARED_KEY;
-	else if(ieee->auth_mode == 2)
+	else if (ieee->auth_mode == 2)
 		auth->algorithm = WLAN_AUTH_OPEN;/* 0x80; */
 	printk("=================>%s():auth->algorithm is %d\n",__func__,auth->algorithm);
 	auth->transaction = cpu_to_le16(ieee->associate_seq);
@@ -712,14 +712,14 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 	u8 *tmp_generic_ie_buf=NULL;
 	u8 tmp_generic_ie_len=0;
 
-	if(rate_ex_len > 0) rate_ex_len+=2;
+	if (rate_ex_len > 0) rate_ex_len+=2;
 
-	if(ieee->current_network.capability & WLAN_CAPABILITY_IBSS)
+	if (ieee->current_network.capability & WLAN_CAPABILITY_IBSS)
 		atim_len = 4;
 	else
 		atim_len = 0;
 
-	if(ieee80211_is_54g(&ieee->current_network))
+	if (ieee80211_is_54g(&ieee->current_network))
 		erp_len = 3;
 	else
 		erp_len = 0;
@@ -739,7 +739,7 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 	HTConstructInfoElement(ieee,tmp_ht_info_buf,&tmp_ht_info_len, encrypt);
 
 
-	if(pHTInfo->bRegRT2RTAggregation)
+	if (pHTInfo->bRegRT2RTAggregation)
 	{
 		tmp_generic_ie_buf = ieee->pHTInfo->szRT2RTAggBuffer;
 		tmp_generic_ie_len = sizeof(ieee->pHTInfo->szRT2RTAggBuffer);
@@ -776,7 +776,7 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 	beacon_buf->capability |=
 		cpu_to_le16(ieee->current_network.capability & WLAN_CAPABILITY_SHORT_PREAMBLE); /* add short preamble here */
 
-	if(ieee->short_slot && (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_SLOT))
+	if (ieee->short_slot && (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_SLOT))
 		beacon_buf->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);
 
 	crypt = ieee->crypt[ieee->tx_keyidx];
@@ -803,7 +803,7 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 	*(tag++) = 1;
 	*(tag++) = ieee->current_network.channel;
 
-	if(atim_len){
+	if (atim_len){
 		*(tag++) = MFIE_TYPE_IBSS_SET;
 		*(tag++) = 2;
 
@@ -812,12 +812,12 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
 		tag+=2;
 	}
 
-	if(erp_len){
+	if (erp_len){
 		*(tag++) = MFIE_TYPE_ERP;
 		*(tag++) = 1;
 		*(tag++) = erpinfo_content;
 	}
-	if(rate_ex_len){
+	if (rate_ex_len){
 		*(tag++) = MFIE_TYPE_RATES_EX;
 		*(tag++) = rate_ex_len-2;
 		memcpy(tag, ieee->current_network.rates_ex, rate_ex_len-2);
@@ -870,7 +870,7 @@ static struct sk_buff *ieee80211_assoc_resp(struct ieee80211_device *ieee,
 		WLAN_CAPABILITY_BSS : WLAN_CAPABILITY_IBSS);
 
 
-	if(ieee->short_slot)
+	if (ieee->short_slot)
 		assoc->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);
 
 	if (ieee->host_encrypt)
@@ -1016,12 +1016,12 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 	encrypt = ieee->host_encrypt && crypt && crypt->ops && ((0 == strcmp(crypt->ops->name,"WEP") || wpa_ie_len));
 
 	/* Include High Throuput capability && Realtek proprietary */
-	if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT)
+	if (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT)
 	{
 		ht_cap_buf = (u8 *)&(ieee->pHTInfo->SelfHTCap);
 		ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap);
 		HTConstructCapabilityElement(ieee, ht_cap_buf, &ht_cap_len, encrypt);
-		if(ieee->pHTInfo->bCurrentRT2RTAggregation)
+		if (ieee->pHTInfo->bCurrentRT2RTAggregation)
 		{
 			realtek_ie_buf = ieee->pHTInfo->szRT2RTAggBuffer;
 			realtek_ie_len = sizeof( ieee->pHTInfo->szRT2RTAggBuffer);
@@ -1029,16 +1029,16 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 
 		}
 	}
-	if(ieee->qos_support){
+	if (ieee->qos_support){
 		wmm_info_len = beacon->qos_data.supported?9:0;
 	}
 
 
-	if(beacon->bCkipSupported)
+	if (beacon->bCkipSupported)
 	{
 		ckip_ie_len = 30+2;
 	}
-	if(beacon->bCcxRmEnable)
+	if (beacon->bCcxRmEnable)
 	{
 		ccxrm_ie_len = 6+2;
 	}
@@ -1098,7 +1098,7 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 	if (beacon->capability & WLAN_CAPABILITY_SHORT_PREAMBLE)
 		hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_PREAMBLE); /* add short_preamble here */
 
-	if(ieee->short_slot)
+	if (ieee->short_slot)
 		hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);
 	if (wmm_info_len) //QOS
 		hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_QOS);
@@ -1142,7 +1142,7 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 		tag += osCcxAironetIE.Length;
 	}
 
-	if(beacon->bCcxRmEnable)
+	if (beacon->bCcxRmEnable)
 	{
 		static u8 CcxRmCapBuf[] = {0x00, 0x40, 0x96, 0x01, 0x01, 0x00};
 		OCTET_STRING osCcxRmCap;
@@ -1169,8 +1169,8 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 		tag += osCcxVerNum.Length;
 	}
 	/* HT cap element */
-	if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
-		if(ieee->pHTInfo->ePeerHTSpecVer != HT_SPEC_VER_EWC)
+	if (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
+		if (ieee->pHTInfo->ePeerHTSpecVer != HT_SPEC_VER_EWC)
 		{
 			tag = skb_put(skb, ht_cap_len);
 			*tag++ = MFIE_TYPE_HT_CAP;
@@ -1188,18 +1188,18 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 	}
 
 	tag = skb_put(skb, wmm_info_len);
-	if(wmm_info_len) {
+	if (wmm_info_len) {
 	  ieee80211_WMM_Info(ieee, &tag);
 	}
 #ifdef THOMAS_TURBO
 	tag = skb_put(skb, turbo_info_len);
-	if(turbo_info_len) {
+	if (turbo_info_len) {
 		ieee80211_TURBO_Info(ieee, &tag);
 	}
 #endif
 
-	if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
-		if(ieee->pHTInfo->ePeerHTSpecVer == HT_SPEC_VER_EWC)
+	if (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
+		if (ieee->pHTInfo->ePeerHTSpecVer == HT_SPEC_VER_EWC)
 		{
 			tag = skb_put(skb, ht_cap_len);
 			*tag++ = MFIE_TYPE_GENERIC;
@@ -1208,7 +1208,7 @@ inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco
 			tag += ht_cap_len -2;
 		}
 
-		if(ieee->pHTInfo->bCurrentRT2RTAggregation){
+		if (ieee->pHTInfo->bCurrentRT2RTAggregation){
 			tag = skb_put(skb, realtek_ie_len);
 			*tag++ = MFIE_TYPE_GENERIC;
 			*tag++ = realtek_ie_len - 2;
@@ -1274,7 +1274,7 @@ static void ieee80211_associate_step1(struct ieee80211_device *ieee)
 		/* 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)){
+		if (!timer_pending(&ieee->associate_timer)){
 			ieee->associate_timer.expires = jiffies + (HZ / 2);
 			add_timer(&ieee->associate_timer);
 		}
@@ -1337,7 +1337,7 @@ static void ieee80211_associate_complete_wq(struct work_struct *work)
 {
 	struct ieee80211_device *ieee = container_of(work, struct ieee80211_device, associate_complete_wq);
 	printk(KERN_INFO "Associated successfully\n");
-	if(ieee80211_is_54g(&ieee->current_network) &&
+	if (ieee80211_is_54g(&ieee->current_network) &&
 		(ieee->modulation & IEEE80211_OFDM_MODULATION)){
 
 		ieee->rate = 108;
@@ -1359,17 +1359,17 @@ static void ieee80211_associate_complete_wq(struct work_struct *work)
 	}
 	ieee->LinkDetectInfo.SlotNum = 2 * (1 + ieee->current_network.beacon_interval/500);
 	/* To prevent the immediately calling watch_dog after association. */
-	if(ieee->LinkDetectInfo.NumRecvBcnInPeriod==0||ieee->LinkDetectInfo.NumRecvDataInPeriod==0 )
+	if (ieee->LinkDetectInfo.NumRecvBcnInPeriod==0||ieee->LinkDetectInfo.NumRecvDataInPeriod==0 )
 	{
 		ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1;
 		ieee->LinkDetectInfo.NumRecvDataInPeriod= 1;
 	}
 	ieee->link_change(ieee->dev);
-	if(ieee->is_silent_reset == 0){
+	if (ieee->is_silent_reset == 0){
 		printk("============>normal associate\n");
 	notify_wx_assoc_event(ieee);
 	}
-	else if(ieee->is_silent_reset == 1)
+	else if (ieee->is_silent_reset == 1)
 	{
 		printk("==================>silent reset associate\n");
 		ieee->is_silent_reset = 0;
@@ -1477,7 +1477,7 @@ inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee
 					/* Join the network for the first time */
 					ieee->AsocRetryCount = 0;
 					/* for HT by amy 080514 */
-					if((ieee->current_network.qos_data.supported == 1) &&
+					if ((ieee->current_network.qos_data.supported == 1) &&
 					  /* (ieee->pHTInfo->bEnableHT && ieee->current_network.bssht.bdSupportHT)) */
 					   ieee->current_network.bssht.bdSupportHT)
 /*WB, 2008.09.09:bCurrentHTSupport and bEnableHT two flags are going to put together to check whether we are in HT now, so needn't to check bEnableHT flags here. That's is to say we will set to HT support whenever joined AP has the ability to support HT. And whether we are in HT or not, please check bCurrentHTSupport&&bEnableHT now please.*/
@@ -1493,7 +1493,7 @@ inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee
 					ieee->state = IEEE80211_ASSOCIATING;
 					queue_work(ieee->wq, &ieee->associate_procedure_wq);
 				}else{
-					if(ieee80211_is_54g(&ieee->current_network) &&
+					if (ieee80211_is_54g(&ieee->current_network) &&
 						(ieee->modulation & IEEE80211_OFDM_MODULATION)){
 						ieee->rate = 108;
 						ieee->SetWirelessMode(ieee->dev, IEEE_G);
@@ -1548,10 +1548,10 @@ static inline u16 auth_parse(struct sk_buff *skb, u8 **challenge, int *chlen)
 	}
 	*challenge = NULL;
 	a = (struct ieee80211_authentication *) skb->data;
-	if(skb->len > (sizeof(struct ieee80211_authentication) +3)){
+	if (skb->len > (sizeof(struct ieee80211_authentication) +3)){
 		t = skb->data + sizeof(struct ieee80211_authentication);
 
-		if(*(t++) == MFIE_TYPE_CHALLENGE){
+		if (*(t++) == MFIE_TYPE_CHALLENGE){
 			*chlen = *(t++);
 			*challenge = kmemdup(t, *chlen, GFP_ATOMIC);
 			if (!*challenge)
@@ -1652,7 +1652,7 @@ static inline u16 assoc_parse(struct ieee80211_device *ieee, struct sk_buff *skb
 	*aid = le16_to_cpu(response_head->aid) & 0x3fff;
 
 	status_code = le16_to_cpu(response_head->status);
-	if((status_code==WLAN_STATUS_ASSOC_DENIED_RATES || \
+	if ((status_code==WLAN_STATUS_ASSOC_DENIED_RATES || \
 	   status_code==WLAN_STATUS_CAPS_UNSUPPORTED)&&
 	   ((ieee->mode == IEEE_G) &&
 	    (ieee->current_network.mode == IEEE_N_24G) &&
@@ -1737,34 +1737,34 @@ static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,
 	*/
 	dtim = ieee->current_network.dtim_data;
 	/* printk("DTIM\n"); */
-	if(!(dtim & IEEE80211_DTIM_VALID))
+	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))
+	if (dtim & ((IEEE80211_DTIM_UCAST | IEEE80211_DTIM_MBCAST)& ieee->ps))
 		return 2;
 
-	if(!time_after(jiffies, ieee->dev->trans_start + MSECS(timeout)))
+	if (!time_after(jiffies, ieee->dev->trans_start + MSECS(timeout)))
 		return 0;
 
-	if(!time_after(jiffies, ieee->last_rx_ps_time + MSECS(timeout)))
+	if (!time_after(jiffies, ieee->last_rx_ps_time + MSECS(timeout)))
 		return 0;
 
-	if((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE ) &&
+	if ((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE ) &&
 		(ieee->mgmt_queue_tail != ieee->mgmt_queue_head))
 		return 0;
 
-	if(time_l){
+	if (time_l){
 		*time_l = ieee->current_network.last_dtim_sta_time[0]
 			+ (ieee->current_network.beacon_interval
 			* ieee->current_network.dtim_period) * 1000;
 	}
 
-	if(time_h){
+	if (time_h){
 		*time_h = ieee->current_network.last_dtim_sta_time[1];
-		if(time_l && *time_l < ieee->current_network.last_dtim_sta_time[0])
+		if (time_l && *time_l < ieee->current_network.last_dtim_sta_time[0])
 			*time_h += 1;
 	}
 
@@ -1783,7 +1783,7 @@ static inline void ieee80211_sta_ps(struct ieee80211_device *ieee)
 
 	spin_lock_irqsave(&ieee->lock, flags);
 
-	if((ieee->ps == IEEE80211_PS_DISABLED ||
+	if ((ieee->ps == IEEE80211_PS_DISABLED ||
 		ieee->iw_mode != IW_MODE_INFRA ||
 		ieee->state != IEEE80211_LINKED)){
 
@@ -1797,19 +1797,19 @@ static inline void ieee80211_sta_ps(struct ieee80211_device *ieee)
 
 	sleep = ieee80211_sta_ps_sleep(ieee,&th, &tl);
 	/* 2 wake, 1 sleep, 0 do nothing */
-	if(sleep == 0)
+	if (sleep == 0)
 		goto out;
 
-	if(sleep == 1){
+	if (sleep == 1){
 
-		if(ieee->sta_sleep == 1)
+		if (ieee->sta_sleep == 1)
 			ieee->enter_sleep_state(ieee->dev, th, tl);
 
-		else if(ieee->sta_sleep == 0){
+		else if (ieee->sta_sleep == 0){
 			/* printk("send null 1\n"); */
 			spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
 
-			if(ieee->ps_is_queue_empty(ieee->dev)){
+			if (ieee->ps_is_queue_empty(ieee->dev)){
 
 
 				ieee->sta_sleep = 2;
@@ -1826,7 +1826,7 @@ static inline void ieee80211_sta_ps(struct ieee80211_device *ieee)
 		}
 
 
-	}else if(sleep == 2){
+	}else if (sleep == 2){
 /* #warning CHECK_LOCK_HERE */
 		spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
 
@@ -1842,8 +1842,8 @@ out:
 
 void ieee80211_sta_wakeup(struct ieee80211_device *ieee, short nl)
 {
-	if(ieee->sta_sleep == 0){
-		if(nl){
+	if (ieee->sta_sleep == 0){
+		if (nl){
 			printk("Warning: driver is probably failing to report TX ps error\n");
 			ieee->ps_request_tx_ack(ieee->dev);
 			ieee80211_sta_ps_send_null_frame(ieee, 0);
@@ -1852,12 +1852,12 @@ void ieee80211_sta_wakeup(struct ieee80211_device *ieee, short nl)
 
 	}
 
-	if(ieee->sta_sleep == 1)
+	if (ieee->sta_sleep == 1)
 		ieee->sta_wake_up(ieee->dev);
 
 	ieee->sta_sleep = 0;
 
-	if(nl){
+	if (nl){
 		ieee->ps_request_tx_ack(ieee->dev);
 		ieee80211_sta_ps_send_null_frame(ieee, 0);
 	}
@@ -1869,9 +1869,9 @@ void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success)
 
 	spin_lock_irqsave(&ieee->lock, flags);
 
-	if(ieee->sta_sleep == 2){
+	if (ieee->sta_sleep == 2){
 		/* Null frame with PS bit set */
-		if(success){
+		if (success){
 			ieee->sta_sleep = 1;
 			ieee->enter_sleep_state(ieee->dev,ieee->ps_th,ieee->ps_tl);
 		}
@@ -1882,7 +1882,7 @@ void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success)
 	/* 21112005 - tx again null without PS bit if lost */
 	else {
 
-		if((ieee->sta_sleep == 0) && !success){
+		if ((ieee->sta_sleep == 0) && !success){
 			spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
 			ieee80211_sta_ps_send_null_frame(ieee, 0);
 			spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
@@ -1935,16 +1935,16 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 	/* struct ieee80211_info_element *info_element; */
 	bool bSupportNmode = true, bHalfSupportNmode = false; /* default support N mode, disable halfNmode */
 
-	if(!ieee->proto_started)
+	if (!ieee->proto_started)
 		return 0;
 
-	if(ieee->sta_sleep || (ieee->ps != IEEE80211_PS_DISABLED &&
+	if (ieee->sta_sleep || (ieee->ps != IEEE80211_PS_DISABLED &&
 		ieee->iw_mode == IW_MODE_INFRA &&
 		ieee->state == IEEE80211_LINKED))
 
 		tasklet_schedule(&ieee->ps_task);
 
-	if(WLAN_FC_GET_STYPE(header->frame_ctl) != IEEE80211_STYPE_PROBE_RESP &&
+	if (WLAN_FC_GET_STYPE(header->frame_ctl) != IEEE80211_STYPE_PROBE_RESP &&
 		WLAN_FC_GET_STYPE(header->frame_ctl) != IEEE80211_STYPE_BEACON)
 		ieee->last_rx_ps_time = jiffies;
 
@@ -1968,7 +1968,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 				ieee->softmac_stats.rx_ass_ok++;
 				/* station support qos */
 				/* Let the register setting defaultly with Legacy station */
-				if(ieee->qos_support) {
+				if (ieee->qos_support) {
 					assoc_resp = (struct ieee80211_assoc_response_frame *)skb->data;
 					memset(network, 0, sizeof(*network));
 					if (ieee80211_parse_info_param(ieee,assoc_resp->info_element,\
@@ -1994,7 +1994,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 				IEEE80211_DEBUG_MGMT(
 					"Association response status code 0x%x\n",
 					errcode);
-				if(ieee->AsocRetryCount < RT_ASOC_RETRY_LIMIT) {
+				if (ieee->AsocRetryCount < RT_ASOC_RETRY_LIMIT) {
 					queue_work(ieee->wq, &ieee->associate_procedure_wq);
 				} else {
 					ieee80211_associate_abort(ieee);
@@ -2022,15 +2022,15 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 
 					errcode = auth_parse(skb, &challenge, &chlen);
 					if (!errcode) {
-						if(ieee->open_wep || !challenge){
+						if (ieee->open_wep || !challenge){
 							ieee->state = IEEE80211_ASSOCIATING_AUTHENTICATED;
 							ieee->softmac_stats.rx_auth_rs_ok++;
-							if(!(ieee->pHTInfo->IOTAction&HT_IOT_ACT_PURE_N_MODE))
+							if (!(ieee->pHTInfo->IOTAction&HT_IOT_ACT_PURE_N_MODE))
 							{
 								if (!ieee->GetNmodeSupportBySecCfg(ieee->dev))
 								{
 											/* WEP or TKIP encryption */
-									if(IsHTHalfNmodeAPs(ieee))
+									if (IsHTHalfNmodeAPs(ieee))
 									{
 										bSupportNmode = true;
 										bHalfSupportNmode = true;
@@ -2044,7 +2044,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
 								}
 							}
 							/* Dummy wirless mode setting to avoid encryption issue */
-							if(bSupportNmode) {
+							if (bSupportNmode) {
 								/* N mode setting */
 								ieee->SetWirelessMode(ieee->dev, \
 										ieee->current_network.mode);
@@ -2153,11 +2153,11 @@ void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *
 	ieee->stats.tx_bytes += txb->payload_size;
 	ieee->stats.tx_packets++;
 	tcb_desc = (cb_desc *)(txb->fragments[0]->cb + MAX_DEV_ADDR_SIZE);
-	if(tcb_desc->bMulticast) {
+	if (tcb_desc->bMulticast) {
 		ieee->stats.multicast++;
 	}
 	/* if xmit available, just xmit it immediately, else just insert it to the wait queue */
-	for(i = 0; i < txb->nr_frags; i++) {
+	for (i = 0; i < txb->nr_frags; i++) {
 #ifdef USB_TX_DRIVER_AGGREGATION_ENABLE
 		if ((skb_queue_len(&ieee->skb_drv_aggQ[queue_index]) != 0) ||
 #else
@@ -2198,7 +2198,7 @@ EXPORT_SYMBOL(ieee80211_softmac_xmit);
 static void ieee80211_resume_tx(struct ieee80211_device *ieee)
 {
 	int i;
-	for(i = ieee->tx_pending.frag; i < ieee->tx_pending.txb->nr_frags; i++) {
+	for (i = ieee->tx_pending.frag; i < ieee->tx_pending.txb->nr_frags; i++) {
 
 		if (ieee->queue_stop){
 			ieee->tx_pending.frag = i;
@@ -2248,7 +2248,7 @@ void ieee80211_wake_queue(struct ieee80211_device *ieee)
 
 	ieee->queue_stop = 0;
 
-	if(ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE){
+	if (ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE){
 		while (!ieee->queue_stop && (skb = dequeue_mgmt(ieee))){
 
 			header = (struct ieee80211_hdr_3addr  *) skb->data;
@@ -2327,7 +2327,7 @@ void ieee80211_start_master_bss(struct ieee80211_device *ieee)
 
 static void ieee80211_start_monitor_mode(struct ieee80211_device *ieee)
 {
-	if(ieee->raw_tx){
+	if (ieee->raw_tx){
 
 		if (ieee->data_hard_resume)
 			ieee->data_hard_resume(ieee->dev);
@@ -2347,7 +2347,7 @@ static void ieee80211_start_ibss_wq(struct work_struct *work)
 	 * (abort) this wq (when syncro scanning) before sleeping
 	 * on the semaphore
 	 */
-	if(!ieee->proto_started){
+	if (!ieee->proto_started){
 		printk("==========oh driver down return\n");
 		return;
 	}
@@ -2386,10 +2386,10 @@ static void ieee80211_start_ibss_wq(struct work_struct *work)
 	/* the network definitively is not here.. create a new cell */
 	if (ieee->state == IEEE80211_NOLINK){
 		printk("creating new IBSS cell\n");
-		if(!ieee->wap_set)
+		if (!ieee->wap_set)
 			ieee80211_randomize_cell(ieee);
 
-		if(ieee->modulation & IEEE80211_CCK_MODULATION){
+		if (ieee->modulation & IEEE80211_CCK_MODULATION){
 
 			ieee->current_network.rates_len = 4;
 
@@ -2401,7 +2401,7 @@ static void ieee80211_start_ibss_wq(struct work_struct *work)
 		}else
 			ieee->current_network.rates_len = 0;
 
-		if(ieee->modulation & IEEE80211_OFDM_MODULATION){
+		if (ieee->modulation & IEEE80211_OFDM_MODULATION){
 			ieee->current_network.rates_ex_len = 8;
 
 			ieee->current_network.rates_ex[0] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_6MB;
@@ -2424,7 +2424,7 @@ static void ieee80211_start_ibss_wq(struct work_struct *work)
 		ieee->SetWirelessMode(ieee->dev, IEEE_G);
 		ieee->current_network.atim_window = 0;
 		ieee->current_network.capability = WLAN_CAPABILITY_IBSS;
-		if(ieee->short_slot)
+		if (ieee->short_slot)
 			ieee->current_network.capability |= WLAN_CAPABILITY_SHORT_SLOT;
 
 	}
@@ -2458,9 +2458,9 @@ void ieee80211_start_bss(struct ieee80211_device *ieee)
 	 Ref: 802.11d 11.1.3.3
 	 STA shall not start a BSS unless properly formed Beacon frame including a Country IE.
 	*/
-	if(IS_DOT11D_ENABLE(ieee) && !IS_COUNTRY_IE_VALID(ieee))
+	if (IS_DOT11D_ENABLE(ieee) && !IS_COUNTRY_IE_VALID(ieee))
 	{
-		if(! ieee->bGlobalDomain)
+		if (! ieee->bGlobalDomain)
 		{
 			return;
 		}
@@ -2499,7 +2499,7 @@ void ieee80211_disassociate(struct ieee80211_device *ieee)
 
 	if (ieee->data_hard_stop)
 			ieee->data_hard_stop(ieee->dev);
-	if(IS_DOT11D_ENABLE(ieee))
+	if (IS_DOT11D_ENABLE(ieee))
 		Dot11d_Reset(ieee);
 	ieee->state = IEEE80211_NOLINK;
 	ieee->is_set_key = false;
@@ -2517,10 +2517,10 @@ static void ieee80211_associate_retry_wq(struct work_struct *work)
 	unsigned long flags;
 
 	down(&ieee->wx_sem);
-	if(!ieee->proto_started)
+	if (!ieee->proto_started)
 		goto exit;
 
-	if(ieee->state != IEEE80211_ASSOCIATING_RETRY)
+	if (ieee->state != IEEE80211_ASSOCIATING_RETRY)
 		goto exit;
 
 	/* until we do not set the state to IEEE80211_NOLINK
@@ -2542,7 +2542,7 @@ static void ieee80211_associate_retry_wq(struct work_struct *work)
 
 	spin_lock_irqsave(&ieee->lock, flags);
 
-	if(ieee->state == IEEE80211_NOLINK)
+	if (ieee->state == IEEE80211_NOLINK)
 		ieee80211_start_scan(ieee);
 
 	spin_unlock_irqrestore(&ieee->lock, flags);
@@ -2576,7 +2576,7 @@ struct sk_buff *ieee80211_get_beacon(struct ieee80211_device *ieee)
 	struct ieee80211_probe_response *b;
 
 	skb = ieee80211_get_beacon_(ieee);
-	if(!skb)
+	if (!skb)
 		return NULL;
 
 	b = (struct ieee80211_probe_response *) skb->data;
@@ -2640,7 +2640,7 @@ void ieee80211_start_protocol(struct ieee80211_device *ieee)
 			ch++;
 			if (ch > MAX_CHANNEL_NUMBER)
 				return; /* no channel found */
-		}while(!GET_DOT11D_INFO(ieee)->channel_map[ch]);
+		}while (!GET_DOT11D_INFO(ieee)->channel_map[ch]);
 		ieee->current_network.channel = ch;
 	}
 
@@ -2649,7 +2649,7 @@ void ieee80211_start_protocol(struct ieee80211_device *ieee)
 	/* printk("===>%s(), chan:%d\n", __func__, ieee->current_network.channel);
 	ieee->set_chan(ieee->dev,ieee->current_network.channel); */
 
-	for(i = 0; i < 17; i++) {
+	for (i = 0; i < 17; i++) {
 	  ieee->last_rxseq_num[i] = -1;
 	  ieee->last_rxfrag_num[i] = -1;
 	  ieee->last_packet_time[i] = 0;
@@ -2672,7 +2672,7 @@ void ieee80211_start_protocol(struct ieee80211_device *ieee)
 	else if (ieee->iw_mode == IW_MODE_MASTER)
 		ieee80211_start_master_bss(ieee);
 
-	else if(ieee->iw_mode == IW_MODE_MONITOR)
+	else if (ieee->iw_mode == IW_MODE_MONITOR)
 		ieee80211_start_monitor_mode(ieee);
 }
 
@@ -2685,7 +2685,7 @@ void ieee80211_softmac_init(struct ieee80211_device *ieee)
 
 	ieee->state = IEEE80211_NOLINK;
 	ieee->sync_scan_hurryup = 0;
-	for(i = 0; i < 5; i++) {
+	for (i = 0; i < 5; i++) {
 	  ieee->seq_ctrl[i] = 0;
 	}
 	ieee->pDot11dInfo = kzalloc(sizeof(RT_DOT11D_INFO), GFP_ATOMIC);
--

1.9.1

--
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/1425310334-16039-1-git-send-email-haticeerturk27%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw

A single package have to be both?

2 Mart 2015 Pazartesi 17:36:35 UTC+2 tarihinde Julia Lawall yazdı:

Quoted 1,067 lines · Hatice ERTÜRK
Quoted 3 lines

Space prohibited before that open parenthesis '(' . That's why add space before that open parenthesis.

There are a lot fo spacing issues related to { on the same lines as these parenthesis problems. You should fix these at the same time.

julia

Quoted 3 lines
Signed-off-by Hatice ERTURK <[email protected] <javascript:>>

---

 .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 232 

++++++++++-----------

Review

Quoted 3 lines
 1 file changed, 116 insertions(+), 116 deletions(-) 
(quoted diff) +0 -0

b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_WMM_Info(struct

Quoted 4 lines

index 71b7bb8..057d4d1 100644

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -112,7 +112,7 @@ static void ieee80211_WMM_Info(struct 

ieee80211_device *ieee, u8 **tag_p)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *dequeue_mgmt(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         *tag++ = 0x00; 
         *tag++ = 0x01; 
 #ifdef SUPPORT_USPD 
-        if(ieee->current_network.wmm_info & 0x80) { 
+        if (ieee->current_network.wmm_info & 0x80) { 
                 *tag++ = 0x0f|MAX_SP_Len; 
         } else { 
                 *tag++ = MAX_SP_Len; 
@@ -165,7 +165,7 @@ static struct sk_buff *dequeue_mgmt(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static u8 MgntQuery_MgntFrameTxRate(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
 { 
         struct sk_buff *ret; 
 
-        if(ieee->mgmt_queue_tail == ieee->mgmt_queue_head) 
+        if (ieee->mgmt_queue_tail == ieee->mgmt_queue_head) 
                 return NULL; 
 
         ret = ieee->mgmt_queue_ring[ieee->mgmt_queue_tail]; 
@@ -187,14 +187,14 @@ static u8 MgntQuery_MgntFrameTxRate(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void softmac_mgmt_xmit(struct sk_buff *skb,

Quoted 18 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +3 -3
         u8 rate; 
 
         /* 2008/01/25 MH For broadcom, MGNT frame set as OFDM 6M. */ 
-        if(pHTInfo->IOTAction & HT_IOT_ACT_MGNT_USE_CCK_6M) 
+        if (pHTInfo->IOTAction & HT_IOT_ACT_MGNT_USE_CCK_6M) 
                 rate = 0x0c; 
         else 
                 rate = ieee->basic_rate & 0x7f; 
 
-        if(rate == 0){ 
+        if (rate == 0){ 
                 /* 2005.01.26, by rcnjko. */ 
-                if(ieee->mode == IEEE_A|| 
+                if (ieee->mode == IEEE_A|| 
                    ieee->mode== IEEE_N_5G|| 
                    (ieee->mode== IEEE_N_24G&&!pHTInfo->bCurSuppCCK)) 
                         rate = 0x0c; 
@@ -237,8 +237,8 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, 

struct ieee80211_device *ieee

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee

Quoted 10 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
         tcb_desc->bTxDisableRateFallBack = 1; 
         tcb_desc->bTxUseDriverAssingedRate = 1; 
 
-        if(single){ 
-                if(ieee->queue_stop){ 
+        if (single){ 
+                if (ieee->queue_stop){ 
                         enqueue_mgmt(ieee, skb); 
                 }else{ 
                         header->seq_ctl = 

cpu_to_le16(ieee->seq_ctrl[0]<<4);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void softmac_mgmt_xmit(struct sk_buff *skb,

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -267,7 +267,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, 

struct ieee80211_device *ieee

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                         ieee->seq_ctrl[0]++; 
 
                 /* check whether the managed packet queued greater than 

5 */

Quoted 1 line

- if(!ieee->check_nic_enough_desc(ieee->dev,tcb_desc->queue_index)||\

Quoted 1 line

+ if

(!ieee->check_nic_enough_desc(ieee->dev,tcb_desc->queue_index)||\

Quoted 1 line
                                 (skb_queue_len(&ieee->skb_waitQ[tcb_desc->queue_index]) 

!= 0)||\

Quoted 2 lines
                                 (ieee->queue_stop) ) { 
                         /* insert the skb packet to the management 

queue */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void softmac_ps_mgmt_xmit(struct sk_buff

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -293,7 +293,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff 

*skb, struct ieee80211_device *i

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c struct sk_buff *ieee80211_get_beacon_(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
                 (struct ieee80211_hdr_3addr  *) skb->data; 
 
 
-        if(single){ 
+        if (single){ 
 
                 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); 
 
@@ -364,7 +364,7 @@ struct sk_buff *ieee80211_get_beacon_(struct 

ieee80211_device *ieee);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_send_beacon(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
 static void ieee80211_send_beacon(struct ieee80211_device *ieee) 
 { 
         struct sk_buff *skb; 
-        if(!ieee->ieee_up) 
+        if (!ieee->ieee_up) 
                 return; 
         /* unsigned long flags; */ 
         skb = ieee80211_get_beacon_(ieee); 
@@ -378,7 +378,7 @@ static void ieee80211_send_beacon(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_send_beacon(struct ieee80211_device *ieee)

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
                 (MSECS( ieee->current_network.beacon_interval -5)); 
 
         spin_lock_irqsave(&ieee->beacon_lock,flags); */ 
-        if(ieee->beacon_txing && ieee->ieee_up){ 
+        if (ieee->beacon_txing && ieee->ieee_up){ 
                 /* if(!timer_pending(&ieee->beacon_timer)) 
                         add_timer(&ieee->beacon_timer); */ 
 
                 mod_timer(&ieee->beacon_timer,jiffies+(MSECS(ieee->current_network.beacon_interval-5))); 

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_scan_syncro(struct

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -430,14 +430,14 @@ void ieee80211_softmac_scan_syncro(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_scan_syncro(struct · line 430

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         memcpy(channel_map, GET_DOT11D_INFO(ieee)->channel_map, 

MAX_CHANNEL_NUMBER+1);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_scan_syncro(struct

Quoted 16 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
         down(&ieee->scan_sem); 
 
-        while(1) 
+        while (1) 
         { 
 
                 do{ 
                         ch++; 
                         if (ch > MAX_CHANNEL_NUMBER) 
                                 goto out; /* scan completed */ 
-                }while(!channel_map[ch]); 
+                }while (!channel_map[ch]); 
 
                 /* this function can be called in two situations 
                  * 1- We have switched to ad-hoc mode and we are 
@@ -461,13 +461,13 @@ void ieee80211_softmac_scan_syncro(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_scan_syncro(struct

Quoted 16 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
                 if (ieee->state == IEEE80211_LINKED) 
                         goto out; 
                 ieee->set_chan(ieee->dev, ch); 
-                if(channel_map[ch] == 1) 
+                if (channel_map[ch] == 1) 
                 ieee80211_send_probe_requests(ieee); 
 
                 /* this prevent excessive time wait when we 
                  * need to wait for a syncro scan to end.. 
                  */ 
-                if(ieee->state < IEEE80211_LINKED) 
+                if (ieee->state < IEEE80211_LINKED) 
                         ; 
                 else 
                 if (ieee->sync_scan_hurryup) 
@@ -478,13 +478,13 @@ void ieee80211_softmac_scan_syncro(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_softmac_scan_wq(struct

Quoted 16 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
         } 
 out: 
-        if(ieee->state < IEEE80211_LINKED){ 
+        if (ieee->state < IEEE80211_LINKED){ 
                 ieee->actscanning = false; 
                 up(&ieee->scan_sem); 
         } 
         else{ 
         ieee->sync_scan_hurryup = 0; 
-        if(IS_DOT11D_ENABLE(ieee)) 
+        if (IS_DOT11D_ENABLE(ieee)) 
                 DOT11D_ScanComplete(ieee); 
         up(&ieee->scan_sem); 
 } 
@@ -498,7 +498,7 @@ static void ieee80211_softmac_scan_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_softmac_scan_wq(struct work_struct *work)

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         static short watchdog; 
         u8 channel_map[MAX_CHANNEL_NUMBER+1]; 
         memcpy(channel_map, GET_DOT11D_INFO(ieee)->channel_map, 

MAX_CHANNEL_NUMBER+1);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_softmac_scan_wq(struct

Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-        if(!ieee->ieee_up) 
+        if (!ieee->ieee_up) 
                 return; 
         down(&ieee->scan_sem); 
         do{ 
@@ -512,11 +512,11 @@ static void ieee80211_softmac_scan_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_softmac_scan_wq(struct

Quoted 14 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
                                 goto out; /* no good chans */ 
                         } 
                 } 
-        }while(!channel_map[ieee->current_network.channel]); 
+        }while (!channel_map[ieee->current_network.channel]); 
         if (ieee->scanning == 0 ) 
                 goto out; 
         ieee->set_chan(ieee->dev, ieee->current_network.channel); 
-        if(channel_map[ieee->current_network.channel] == 1) 
+        if (channel_map[ieee->current_network.channel] == 1) 
                 ieee80211_send_probe_requests(ieee); 
 
 
@@ -525,7 +525,7 @@ static void ieee80211_softmac_scan_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_beacons_stop(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         up(&ieee->scan_sem); 
         return; 
 out: 
-        if(IS_DOT11D_ENABLE(ieee)) 
+        if (IS_DOT11D_ENABLE(ieee)) 
                 DOT11D_ScanComplete(ieee); 
         ieee->actscanning = false; 
         watchdog = 0; 
@@ -562,7 +562,7 @@ static void ieee80211_beacons_stop(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_start_scan(struct

Quoted 33 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +5 -5
 void ieee80211_stop_send_beacons(struct ieee80211_device *ieee) 
 { 
-        if(ieee->stop_send_beacons) 
+        if (ieee->stop_send_beacons) 
                 ieee->stop_send_beacons(ieee->dev); 
         if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS) 
                 ieee80211_beacons_stop(ieee); 
@@ -571,9 +571,9 @@ EXPORT_SYMBOL(ieee80211_stop_send_beacons); 
 
 void ieee80211_start_send_beacons(struct ieee80211_device *ieee) 
 { 
-        if(ieee->start_send_beacons) 
+        if (ieee->start_send_beacons) 
                 ieee->start_send_beacons(ieee->dev, ieee->basic_rate); 
-        if(ieee->softmac_features & IEEE_SOFTMAC_BEACONS) 
+        if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS) 
                 ieee80211_beacons_start(ieee); 
 } 
 EXPORT_SYMBOL(ieee80211_start_send_beacons); 
@@ -609,9 +609,9 @@ EXPORT_SYMBOL(ieee80211_stop_scan); 
 /* called with ieee->lock held */ 
 static void ieee80211_start_scan(struct ieee80211_device *ieee) 
 { 
-        if(IS_DOT11D_ENABLE(ieee) ) 
+        if (IS_DOT11D_ENABLE(ieee) ) 
         { 
-                if(IS_COUNTRY_IE_VALID(ieee)) 
+                if (IS_COUNTRY_IE_VALID(ieee)) 
                 { 
                         RESET_CIE_WATCHDOG(ieee); 
                 } 
@@ -629,9 +629,9 @@ static void ieee80211_start_scan(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff

Quoted 12 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
 /* called with wx_sem held */ 
 void ieee80211_start_scan_syncro(struct ieee80211_device *ieee) 
 { 
-        if(IS_DOT11D_ENABLE(ieee) ) 
+        if (IS_DOT11D_ENABLE(ieee) ) 
         { 
-                if(IS_COUNTRY_IE_VALID(ieee)) 
+                if (IS_COUNTRY_IE_VALID(ieee)) 
                 { 
                         RESET_CIE_WATCHDOG(ieee); 
                 } 
@@ -670,11 +670,11 @@ inline struct sk_buff 

*ieee80211_authentication_req(struct ieee80211_network *be

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff *ieee80211_authentication_req(struct ieee80211_network *be

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         memcpy(auth->header.addr3, beacon->bssid, ETH_ALEN); 
 
         /* auth->algorithm = ieee->open_wep ? WLAN_AUTH_OPEN : 

WLAN_AUTH_SHARED_KEY; */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff *ieee80211_authentication_req(struct ieee80211_network *be

Quoted 10 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +3 -3
-        if(ieee->auth_mode == 0) 
+        if (ieee->auth_mode == 0) 
                 auth->algorithm = WLAN_AUTH_OPEN; 
-        else if(ieee->auth_mode == 1) 
+        else if (ieee->auth_mode == 1) 
                 auth->algorithm = WLAN_AUTH_SHARED_KEY; 
-        else if(ieee->auth_mode == 2) 
+        else if (ieee->auth_mode == 2) 
                 auth->algorithm = WLAN_AUTH_OPEN;/* 0x80; */ 
         printk("=================>%s():auth->algorithm is 

%d\n",__func__,auth->algorithm);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         auth->transaction = cpu_to_le16(ieee->associate_seq); 
@@ -712,14 +712,14 @@ static struct sk_buff *ieee80211_probe_resp(struct 

ieee80211_device *ieee, u8 *d

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct

Quoted 18 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +3 -3
         u8 *tmp_generic_ie_buf=NULL; 
         u8 tmp_generic_ie_len=0; 
 
-        if(rate_ex_len > 0) rate_ex_len+=2; 
+        if (rate_ex_len > 0) rate_ex_len+=2; 
 
-        if(ieee->current_network.capability & WLAN_CAPABILITY_IBSS) 
+        if (ieee->current_network.capability & WLAN_CAPABILITY_IBSS) 
                 atim_len = 4; 
         else 
                 atim_len = 0; 
 
-        if(ieee80211_is_54g(&ieee->current_network)) 
+        if (ieee80211_is_54g(&ieee->current_network)) 
                 erp_len = 3; 
         else 
                 erp_len = 0; 
@@ -739,7 +739,7 @@ static struct sk_buff *ieee80211_probe_resp(struct 

ieee80211_device *ieee, u8 *d

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct · line 739

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         HTConstructInfoElement(ieee,tmp_ht_info_buf,&tmp_ht_info_len, 

encrypt);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d

Quoted 7 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-        if(pHTInfo->bRegRT2RTAggregation) 
+        if (pHTInfo->bRegRT2RTAggregation) 
         { 
                 tmp_generic_ie_buf = ieee->pHTInfo->szRT2RTAggBuffer; 
                 tmp_generic_ie_len = 

sizeof(ieee->pHTInfo->szRT2RTAggBuffer);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -776,7 +776,7 @@ static struct sk_buff *ieee80211_probe_resp(struct 

ieee80211_device *ieee, u8 *d

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct · line 777

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         beacon_buf->capability |= 
                 cpu_to_le16(ieee->current_network.capability & 

WLAN_CAPABILITY_SHORT_PREAMBLE); /* add short preamble here */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct · line 778

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
-        if(ieee->short_slot && (ieee->current_network.capability & 

WLAN_CAPABILITY_SHORT_SLOT))

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct · line 778

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+        if (ieee->short_slot && (ieee->current_network.capability & 

WLAN_CAPABILITY_SHORT_SLOT))

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d · line 776

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                 beacon_buf->capability |= 

cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         crypt = ieee->crypt[ieee->tx_keyidx]; 
@@ -803,7 +803,7 @@ static struct sk_buff *ieee80211_probe_resp(struct 

ieee80211_device *ieee, u8 *d

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         *(tag++) = 1; 
         *(tag++) = ieee->current_network.channel; 
 
-        if(atim_len){ 
+        if (atim_len){ 
                 *(tag++) = MFIE_TYPE_IBSS_SET; 
                 *(tag++) = 2; 
 
@@ -812,12 +812,12 @@ static struct sk_buff *ieee80211_probe_resp(struct 

ieee80211_device *ieee, u8 *d

Quoted 4 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
                 tag+=2; 
         } 
 
-        if(erp_len){ 

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d

Quoted 10 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -1
+        if (erp_len){ 
                 *(tag++) = MFIE_TYPE_ERP; 
                 *(tag++) = 1; 
                 *(tag++) = erpinfo_content; 
         } 
-        if(rate_ex_len){ 
+        if (rate_ex_len){ 
                 *(tag++) = MFIE_TYPE_RATES_EX; 
                 *(tag++) = rate_ex_len-2; 
                 memcpy(tag, ieee->current_network.rates_ex, 

rate_ex_len-2);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_assoc_resp(struct

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -870,7 +870,7 @@ static struct sk_buff *ieee80211_assoc_resp(struct 

ieee80211_device *ieee,

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_assoc_resp(struct ieee80211_device *ieee,

Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
                 WLAN_CAPABILITY_BSS : WLAN_CAPABILITY_IBSS); 
 
 
-        if(ieee->short_slot) 
+        if (ieee->short_slot) 
                 assoc->capability |= 

cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         if (ieee->host_encrypt) 
@@ -1016,12 +1016,12 @@ inline struct sk_buff 

*ieee80211_association_req(struct ieee80211_network *beaco

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff · line 1016

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         encrypt = ieee->host_encrypt && crypt && crypt->ops && ((0 == 

strcmp(crypt->ops->name,"WEP") || wpa_ie_len));

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         /* Include High Throuput capability && Realtek proprietary */ 
-        if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT) 
+        if (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT) 
         { 
                 ht_cap_buf = (u8 *)&(ieee->pHTInfo->SelfHTCap); 
                 ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap); 
                 HTConstructCapabilityElement(ieee, ht_cap_buf, 

&ht_cap_len, encrypt);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco

Quoted 4 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-                if(ieee->pHTInfo->bCurrentRT2RTAggregation) 
+                if (ieee->pHTInfo->bCurrentRT2RTAggregation) 
                 { 
                         realtek_ie_buf = 

ieee->pHTInfo->szRT2RTAggBuffer;

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff · line 1026

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                         realtek_ie_len = sizeof( 

ieee->pHTInfo->szRT2RTAggBuffer);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -1029,16 +1029,16 @@ inline struct sk_buff 

*ieee80211_association_req(struct ieee80211_network *beaco

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff

Quoted 20 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +3 -3
                 } 
         } 
-        if(ieee->qos_support){ 
+        if (ieee->qos_support){ 
                 wmm_info_len = beacon->qos_data.supported?9:0; 
         } 
 
 
-        if(beacon->bCkipSupported) 
+        if (beacon->bCkipSupported) 
         { 
                 ckip_ie_len = 30+2; 
         } 
-        if(beacon->bCcxRmEnable) 
+        if (beacon->bCcxRmEnable) 
         { 
                 ccxrm_ie_len = 6+2; 
         } 
@@ -1098,7 +1098,7 @@ inline struct sk_buff 

*ieee80211_association_req(struct ieee80211_network *beaco

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff · line 1099

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         if (beacon->capability & WLAN_CAPABILITY_SHORT_PREAMBLE) 
                 hdr->capability |= 

cpu_to_le16(WLAN_CAPABILITY_SHORT_PREAMBLE); /* add short_preamble here */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_assoc_resp(struct ieee80211_device *ieee,

Quoted 4 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-        if(ieee->short_slot) 
+        if (ieee->short_slot) 
                 hdr->capability |= 

cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         if (wmm_info_len) //QOS 
                 hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_QOS); 
@@ -1142,7 +1142,7 @@ inline struct sk_buff 

*ieee80211_association_req(struct ieee80211_network *beaco

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco

Quoted 7 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
                 tag += osCcxAironetIE.Length; 
         } 
 
-        if(beacon->bCcxRmEnable) 
+        if (beacon->bCcxRmEnable) 
         { 
                 static u8 CcxRmCapBuf[] = {0x00, 0x40, 0x96, 0x01, 

0x01, 0x00};

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                 OCTET_STRING osCcxRmCap; 
@@ -1169,8 +1169,8 @@ inline struct sk_buff 

*ieee80211_association_req(struct ieee80211_network *beaco

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco

Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -2
                 tag += osCcxVerNum.Length; 
         } 
         /* HT cap element */ 
-        if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){ 
-                if(ieee->pHTInfo->ePeerHTSpecVer != HT_SPEC_VER_EWC) 
+        if 

(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff

Quoted 5 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+                if (ieee->pHTInfo->ePeerHTSpecVer != HT_SPEC_VER_EWC) 
                 { 
                         tag = skb_put(skb, ht_cap_len); 
                         *tag++ = MFIE_TYPE_HT_CAP; 
@@ -1188,18 +1188,18 @@ inline struct sk_buff 

*ieee80211_association_req(struct ieee80211_network *beaco

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         } 
 
         tag = skb_put(skb, wmm_info_len); 
-        if(wmm_info_len) { 
+        if (wmm_info_len) { 
           ieee80211_WMM_Info(ieee, &tag); 
         } 
 #ifdef THOMAS_TURBO 

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff *ieee80211_association_req(struct ieee80211_network *beaco

Quoted 10 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -3
         tag = skb_put(skb, turbo_info_len); 
-        if(turbo_info_len) { 
+        if (turbo_info_len) { 
                 ieee80211_TURBO_Info(ieee, &tag); 
         } 
 #endif 
 
-        if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){ 
-                if(ieee->pHTInfo->ePeerHTSpecVer == HT_SPEC_VER_EWC) 
+        if 

(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline struct sk_buff

Quoted 5 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+                if (ieee->pHTInfo->ePeerHTSpecVer == HT_SPEC_VER_EWC) 
                 { 
                         tag = skb_put(skb, ht_cap_len); 
                         *tag++ = MFIE_TYPE_GENERIC; 
@@ -1208,7 +1208,7 @@ inline struct sk_buff 

*ieee80211_association_req(struct ieee80211_network *beaco

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_step1(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
                         tag += ht_cap_len -2; 
                 } 
 
-                if(ieee->pHTInfo->bCurrentRT2RTAggregation){ 
+                if (ieee->pHTInfo->bCurrentRT2RTAggregation){ 
                         tag = skb_put(skb, realtek_ie_len); 
                         *tag++ = MFIE_TYPE_GENERIC; 
                         *tag++ = realtek_ie_len - 2; 
@@ -1274,7 +1274,7 @@ static void ieee80211_associate_step1(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_step1(struct · line 1274

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                 /* printk(KERN_WARNING "Sending authentication 

request\n"); */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_step1(struct · line 1276

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                 softmac_mgmt_xmit(skb, ieee); 
                 /* BUGON when you try to add_timer twice, using 

mod_timer may be better, john0709 */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_step1(struct ieee80211_device *ieee)

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-                if(!timer_pending(&ieee->associate_timer)){ 
+                if (!timer_pending(&ieee->associate_timer)){ 
                         ieee->associate_timer.expires = jiffies + (HZ / 

2);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_complete_wq(struct

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                         add_timer(&ieee->associate_timer); 
                 } 
@@ -1337,7 +1337,7 @@ static void ieee80211_associate_complete_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_complete_wq(struct · line 1338

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
 { 
         struct ieee80211_device *ieee = container_of(work, struct 

ieee80211_device, associate_complete_wq);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void

Quoted 7 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         printk(KERN_INFO "Associated successfully\n"); 
-        if(ieee80211_is_54g(&ieee->current_network) && 
+        if (ieee80211_is_54g(&ieee->current_network) && 
                 (ieee->modulation & IEEE80211_OFDM_MODULATION)){ 
 
                 ieee->rate = 108; 
@@ -1359,17 +1359,17 @@ static void 

ieee80211_associate_complete_wq(struct work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void · line 1360

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         } 
         ieee->LinkDetectInfo.SlotNum = 2 * (1 + 

ieee->current_network.beacon_interval/500);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void · line 1361

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         /* To prevent the immediately calling watch_dog after 

association. */

Quoted 1 line

- if(ieee->LinkDetectInfo.NumRecvBcnInPeriod==0||ieee->LinkDetectInfo.NumRecvDataInPeriod==0
)

Quoted 1 line

+ if

(ieee->LinkDetectInfo.NumRecvBcnInPeriod==0||ieee->LinkDetectInfo.NumRecvDataInPeriod==0 )

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct

Quoted 16 lines
         { 
                 ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1; 
                 ieee->LinkDetectInfo.NumRecvDataInPeriod= 1; 
         } 
         ieee->link_change(ieee->dev); 
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
-        if(ieee->is_silent_reset == 0){ 
+        if (ieee->is_silent_reset == 0){ 
                 printk("============>normal associate\n"); 
         notify_wx_assoc_event(ieee); 
         } 
-        else if(ieee->is_silent_reset == 1) 
+        else if (ieee->is_silent_reset == 1) 
         { 
                 printk("==================>silent reset associate\n"); 
                 ieee->is_silent_reset = 0; 
@@ -1477,7 +1477,7 @@ inline void ieee80211_softmac_new_net(struct 

ieee80211_device *ieee, struct ieee

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct · line 1477

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                         /* Join the network for the 

first time */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                         ieee->AsocRetryCount = 0; 
                                         /* for HT by amy 080514 */ 
 

- if((ieee->current_network.qos_data.supported
== 1) &&

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct · line 1481

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+                                        if 

((ieee->current_network.qos_data.supported == 1) &&

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct · line 1482

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                           /* (ieee->pHTInfo->bEnableHT 

&& ieee->current_network.bssht.bdSupportHT)) */

Quoted 1 line

ieee->current_network.bssht.bdSupportHT)

Quoted 1 line

/*WB, 2008.09.09:bCurrentHTSupport and bEnableHT two flags are going to

put together to check whether we are in HT now, so needn't to check bEnableHT flags here. That's is to say we will set to HT support whenever joined AP has the ability to support HT. And whether we are in HT or not, please check bCurrentHTSupport&&bEnableHT now please.*/

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -1493,7 +1493,7 @@ inline void ieee80211_softmac_new_net(struct 

ieee80211_device *ieee, struct ieee

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct · line 1493

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                         ieee->state = 

IEEE80211_ASSOCIATING;

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct · line 1494

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                         queue_work(ieee->wq, 

&ieee->associate_procedure_wq);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct · line 1496

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                 }else{ 
 

- if(ieee80211_is_54g(&ieee->current_network)
&&

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct · line 1497

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+                                        if 

(ieee80211_is_54g(&ieee->current_network) &&

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct · line 1498

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                                 (ieee->modulation & 

IEEE80211_OFDM_MODULATION)){

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct · line 1499

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                                 ieee->rate = 108; 
                                                 ieee->SetWirelessMode(ieee->dev, 

IEEE_G);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static inline u16 auth_parse(struct sk_buff

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -1548,10 +1548,10 @@ static inline u16 auth_parse(struct sk_buff 

*skb, u8 **challenge, int *chlen)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static inline u16 auth_parse(struct sk_buff *skb, u8 **challenge, int *chlen)

Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         } 
         *challenge = NULL; 
         a = (struct ieee80211_authentication *) skb->data; 
-        if(skb->len > (sizeof(struct ieee80211_authentication) +3)){ 
+        if (skb->len > (sizeof(struct ieee80211_authentication) +3)){ 
                 t = skb->data + sizeof(struct 

ieee80211_authentication);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static inline u16 assoc_parse(struct

Quoted 7 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-                if(*(t++) == MFIE_TYPE_CHALLENGE){ 
+                if (*(t++) == MFIE_TYPE_CHALLENGE){ 
                         *chlen = *(t++); 
                         *challenge = kmemdup(t, *chlen, GFP_ATOMIC); 
                         if (!*challenge) 
@@ -1652,7 +1652,7 @@ static inline u16 assoc_parse(struct 

ieee80211_device *ieee, struct sk_buff *skb

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         *aid = le16_to_cpu(response_head->aid) & 0x3fff; 
 
         status_code = le16_to_cpu(response_head->status); 
-        if((status_code==WLAN_STATUS_ASSOC_DENIED_RATES || \ 
+        if ((status_code==WLAN_STATUS_ASSOC_DENIED_RATES || \ 
            status_code==WLAN_STATUS_CAPS_UNSUPPORTED)&& 
            ((ieee->mode == IEEE_G) && 
             (ieee->current_network.mode == IEEE_N_24G) && 
@@ -1737,34 +1737,34 @@ static short ieee80211_sta_ps_sleep(struct 

ieee80211_device *ieee, u32 *time_h,

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,

Quoted 7 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         */ 
         dtim = ieee->current_network.dtim_data; 
         /* printk("DTIM\n"); */ 
-        if(!(dtim & IEEE80211_DTIM_VALID)) 
+        if (!(dtim & IEEE80211_DTIM_VALID)) 
                 return 0; 
         timeout = ieee->current_network.beacon_interval; /* should we 

use ps_timeout value or beacon_interval

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,

Quoted 4 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
         printk("VALID\n"); */ 
         ieee->current_network.dtim_data = IEEE80211_DTIM_INVALID; 
 
-        if(dtim & ((IEEE80211_DTIM_UCAST | IEEE80211_DTIM_MBCAST)& 

ieee->ps))

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct · line 1746

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+        if (dtim & ((IEEE80211_DTIM_UCAST | IEEE80211_DTIM_MBCAST)& 

ieee->ps))

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
                 return 2; 
 
-        if(!time_after(jiffies, ieee->dev->trans_start + 

MSECS(timeout)))

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct · line 1749

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+        if (!time_after(jiffies, ieee->dev->trans_start + 

MSECS(timeout)))

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
                 return 0; 
 
-        if(!time_after(jiffies, ieee->last_rx_ps_time + 

MSECS(timeout)))

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct · line 1752

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+        if (!time_after(jiffies, ieee->last_rx_ps_time + 

MSECS(timeout)))

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -2
                 return 0; 
 
-        if((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE ) && 
+        if ((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE ) && 
                 (ieee->mgmt_queue_tail != ieee->mgmt_queue_head)) 
                 return 0; 
 
-        if(time_l){ 

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,

Quoted 10 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
+        if (time_l){ 
                 *time_l = ieee->current_network.last_dtim_sta_time[0] 
                         + (ieee->current_network.beacon_interval 
                         * ieee->current_network.dtim_period) * 1000; 
         } 
 
-        if(time_h){ 
+        if (time_h){ 
                 *time_h = ieee->current_network.last_dtim_sta_time[1]; 
-                if(time_l && *time_l < 

ieee->current_network.last_dtim_sta_time[0])

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct · line 1767

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+                if (time_l && *time_l < 

ieee->current_network.last_dtim_sta_time[0])

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static inline void ieee80211_sta_ps(struct

Quoted 4 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                         *time_h += 1; 
         } 
 
@@ -1783,7 +1783,7 @@ static inline void ieee80211_sta_ps(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static inline void ieee80211_sta_ps(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         spin_lock_irqsave(&ieee->lock, flags); 
 
-        if((ieee->ps == IEEE80211_PS_DISABLED || 
+        if ((ieee->ps == IEEE80211_PS_DISABLED || 
                 ieee->iw_mode != IW_MODE_INFRA || 
                 ieee->state != IEEE80211_LINKED)){ 
 
@@ -1797,19 +1797,19 @@ static inline void ieee80211_sta_ps(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static inline void ieee80211_sta_ps(struct

Quoted 25 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +5 -5
         sleep = ieee80211_sta_ps_sleep(ieee,&th, &tl); 
         /* 2 wake, 1 sleep, 0 do nothing */ 
-        if(sleep == 0) 
+        if (sleep == 0) 
                 goto out; 
 
-        if(sleep == 1){ 
+        if (sleep == 1){ 
 
-                if(ieee->sta_sleep == 1) 
+                if (ieee->sta_sleep == 1) 
                         ieee->enter_sleep_state(ieee->dev, th, tl); 
 
-                else if(ieee->sta_sleep == 0){ 
+                else if (ieee->sta_sleep == 0){ 
                         /* printk("send null 1\n"); */ 
                         spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2); 
 
-                        if(ieee->ps_is_queue_empty(ieee->dev)){ 
+                        if (ieee->ps_is_queue_empty(ieee->dev)){ 
 
 
                                 ieee->sta_sleep = 2; 
@@ -1826,7 +1826,7 @@ static inline void ieee80211_sta_ps(struct 

ieee80211_device *ieee)

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
                 } 
 
 
-        }else if(sleep == 2){ 
+        }else if (sleep == 2){ 
 /* #warning CHECK_LOCK_HERE */ 
                 spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2); 
 

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c out: · line 1847

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
@@ -1842,8 +1842,8 @@ out: 
 
 void ieee80211_sta_wakeup(struct ieee80211_device *ieee, short nl) 
 { 
-        if(ieee->sta_sleep == 0){ 
-                if(nl){ 
+        if (ieee->sta_sleep == 0){ 
+                if (nl){ 
                         printk("Warning: driver is probably failing to 

report TX ps error\n");

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_sta_wakeup(struct

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                         ieee->ps_request_tx_ack(ieee->dev); 
                         ieee80211_sta_ps_send_null_frame(ieee, 0); 
@@ -1852,12 +1852,12 @@ void ieee80211_sta_wakeup(struct 

ieee80211_device *ieee, short nl)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_ps_tx_ack(struct ieee80211_device

Quoted 15 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
         } 
 
-        if(ieee->sta_sleep == 1) 
+        if (ieee->sta_sleep == 1) 
                 ieee->sta_wake_up(ieee->dev); 
 
         ieee->sta_sleep = 0; 
 
-        if(nl){ 
+        if (nl){ 
                 ieee->ps_request_tx_ack(ieee->dev); 
                 ieee80211_sta_ps_send_null_frame(ieee, 0); 
         } 
@@ -1869,9 +1869,9 @@ void ieee80211_ps_tx_ack(struct ieee80211_device 

*ieee, short success)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success)

Quoted 10 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
         spin_lock_irqsave(&ieee->lock, flags); 
 
-        if(ieee->sta_sleep == 2){ 
+        if (ieee->sta_sleep == 2){ 
                 /* Null frame with PS bit set */ 
-                if(success){ 
+                if (success){ 
                         ieee->sta_sleep = 1; 
 
                         ieee->enter_sleep_state(ieee->dev,ieee->ps_th,ieee->ps_tl); 

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_ps_tx_ack(struct ieee80211_device

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                 } 
@@ -1882,7 +1882,7 @@ void ieee80211_ps_tx_ack(struct ieee80211_device 

*ieee, short success)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success)

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         /* 21112005 - tx again null without PS bit if lost */ 
         else { 
 
-                if((ieee->sta_sleep == 0) && !success){ 
+                if ((ieee->sta_sleep == 0) && !success){ 
                         spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2); 
                         ieee80211_sta_ps_send_null_frame(ieee, 0); 
                         spin_unlock_irqrestore(&ieee->mgmt_tx_lock, 

flags2);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -1935,16 +1935,16 @@ ieee80211_rx_frame_softmac(struct 

ieee80211_device *ieee, struct sk_buff *skb,

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct · line 1936

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         /* struct ieee80211_info_element *info_element; */ 
         bool bSupportNmode = true, bHalfSupportNmode = false; /* 

default support N mode, disable halfNmode */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,

Quoted 13 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -3
-        if(!ieee->proto_started) 
+        if (!ieee->proto_started) 
                 return 0; 
 
-        if(ieee->sta_sleep || (ieee->ps != IEEE80211_PS_DISABLED && 
+        if (ieee->sta_sleep || (ieee->ps != IEEE80211_PS_DISABLED && 
                 ieee->iw_mode == IW_MODE_INFRA && 
                 ieee->state == IEEE80211_LINKED)) 
 
                 tasklet_schedule(&ieee->ps_task); 
 
-        if(WLAN_FC_GET_STYPE(header->frame_ctl) != 

IEEE80211_STYPE_PROBE_RESP &&

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct · line 1946

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+        if (WLAN_FC_GET_STYPE(header->frame_ctl) != 

IEEE80211_STYPE_PROBE_RESP &&

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct · line 1947

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                 WLAN_FC_GET_STYPE(header->frame_ctl) != 

IEEE80211_STYPE_BEACON)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                 ieee->last_rx_ps_time = jiffies; 
 
@@ -1968,7 +1968,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device 

*ieee, struct sk_buff *skb,

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                 ieee->softmac_stats.rx_ass_ok++; 
                                 /* station support qos */ 
                                 /* Let the register setting defaultly 

with Legacy station */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-                                if(ieee->qos_support) { 
+                                if (ieee->qos_support) { 
                                         assoc_resp = (struct 

ieee80211_assoc_response_frame *)skb->data;

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device · line 1973

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                         memset(network, 0, 

sizeof(*network));

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device · line 1974

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                         if 

(ieee80211_parse_info_param(ieee,assoc_resp->info_element,\

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -1994,7 +1994,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device 

*ieee, struct sk_buff *skb,

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device · line 1995

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                 IEEE80211_DEBUG_MGMT( 
                                         "Association response status 

code 0x%x\n",

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device · line 1997

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
                                         errcode); 
-                                if(ieee->AsocRetryCount < 

RT_ASOC_RETRY_LIMIT) {

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device · line 1997

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+                                if (ieee->AsocRetryCount < 

RT_ASOC_RETRY_LIMIT) {

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device · line 1998

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                         queue_work(ieee->wq, 

&ieee->associate_procedure_wq);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device · line 2000

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                 } else { 
 
                                         ieee80211_associate_abort(ieee); 

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -2022,15 +2022,15 @@ ieee80211_rx_frame_softmac(struct 

ieee80211_device *ieee, struct sk_buff *skb,

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct · line 2022

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                         errcode = auth_parse(skb, 

&challenge, &chlen);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct · line 2024

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
                                         if (!errcode) { 
-                                                if(ieee->open_wep || 

!challenge){

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct · line 2024

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+                                                if (ieee->open_wep || 

!challenge){

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct · line 2025

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                                         ieee->state = 

IEEE80211_ASSOCIATING_AUTHENTICATED;

Quoted 1 line
                                                         ieee->softmac_stats.rx_auth_rs_ok++; 
Quoted 1 line

- if(!(ieee->pHTInfo->IOTAction&HT_IOT_ACT_PURE_N_MODE))

Quoted 1 line

+ if

(!(ieee->pHTInfo->IOTAction&HT_IOT_ACT_PURE_N_MODE))

Quoted 2 lines
                                                         { 
                                                                 if 

(!ieee->GetNmodeSupportBySecCfg(ieee->dev))

Quoted 2 lines
                                                                 { 
                                                                                         /* 

WEP or TKIP encryption */

Quoted 1 line

- if(IsHTHalfNmodeAPs(ieee))

Quoted 1 line

+ if
(IsHTHalfNmodeAPs(ieee))

Quoted 1 line
                                                                         { 
Quoted 1 line

bSupportNmode
= true;

Quoted 1 line

bHalfSupportNmode
= true;

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -2044,7 +2044,7 @@ ieee80211_rx_frame_softmac(struct ieee80211_device 

*ieee, struct sk_buff *skb,

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device · line 2046

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                                                                 } 
                                                         } 
                                                         /* Dummy 

wirless mode setting to avoid encryption issue */

Quoted 1 line

- if(bSupportNmode)
{

Quoted 1 line

+ if

(bSupportNmode) {

Quoted 1 line
                                                                 /* N 

mode setting */

Quoted 1 line
                                                                 ieee->SetWirelessMode(ieee->dev, 

\

Quoted 1 line
                                                                                 ieee->current_network.mode); 

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_xmit(struct ieee80211_txb

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -2153,11 +2153,11 @@ void ieee80211_softmac_xmit(struct ieee80211_txb 

*txb, struct ieee80211_device *

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         ieee->stats.tx_bytes += txb->payload_size; 
         ieee->stats.tx_packets++; 
         tcb_desc = (cb_desc *)(txb->fragments[0]->cb + 

MAX_DEV_ADDR_SIZE);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *

Quoted 5 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-        if(tcb_desc->bMulticast) { 
+        if (tcb_desc->bMulticast) { 
                 ieee->stats.multicast++; 
         } 
         /* if xmit available, just xmit it immediately, else just 

insert it to the wait queue */

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *

Quoted 4 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-        for(i = 0; i < txb->nr_frags; i++) { 
+        for (i = 0; i < txb->nr_frags; i++) { 
 #ifdef USB_TX_DRIVER_AGGREGATION_ENABLE 
                 if ((skb_queue_len(&ieee->skb_drv_aggQ[queue_index]) != 

0) ||

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c EXPORT_SYMBOL(ieee80211_softmac_xmit); · line 2201

Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
 #else 
@@ -2198,7 +2198,7 @@ EXPORT_SYMBOL(ieee80211_softmac_xmit); 
 static void ieee80211_resume_tx(struct ieee80211_device *ieee) 
 { 
         int i; 
-        for(i = ieee->tx_pending.frag; i < 

ieee->tx_pending.txb->nr_frags; i++) {

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c EXPORT_SYMBOL(ieee80211_softmac_xmit); · line 2201

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -0
+        for (i = ieee->tx_pending.frag; i < 

ieee->tx_pending.txb->nr_frags; i++) {

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_wake_queue(struct ieee80211_device

Quoted 4 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                 if (ieee->queue_stop){ 
                         ieee->tx_pending.frag = i; 
@@ -2248,7 +2248,7 @@ void ieee80211_wake_queue(struct ieee80211_device 

*ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_wake_queue(struct ieee80211_device *ieee)

Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         ieee->queue_stop = 0; 
 
-        if(ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE){ 
+        if (ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE){ 
                 while (!ieee->queue_stop && (skb = 

dequeue_mgmt(ieee))){

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_wake_queue(struct ieee80211_device · line 2252

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                         header = (struct ieee80211_hdr_3addr  *) 

skb->data;

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_master_bss(struct

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -2327,7 +2327,7 @@ void ieee80211_start_master_bss(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_start_ibss_wq(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
 static void ieee80211_start_monitor_mode(struct ieee80211_device *ieee) 
 { 
-        if(ieee->raw_tx){ 
+        if (ieee->raw_tx){ 
 
                 if (ieee->data_hard_resume) 
                         ieee->data_hard_resume(ieee->dev); 
@@ -2347,7 +2347,7 @@ static void ieee80211_start_ibss_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_start_ibss_wq(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
          * (abort) this wq (when syncro scanning) before sleeping 
          * on the semaphore 
          */ 
-        if(!ieee->proto_started){ 
+        if (!ieee->proto_started){ 
                 printk("==========oh driver down return\n"); 
                 return; 
         } 
@@ -2386,10 +2386,10 @@ static void ieee80211_start_ibss_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_start_ibss_wq(struct

Quoted 13 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
         /* the network definitively is not here.. create a new cell */ 
         if (ieee->state == IEEE80211_NOLINK){ 
                 printk("creating new IBSS cell\n"); 
-                if(!ieee->wap_set) 
+                if (!ieee->wap_set) 
                         ieee80211_randomize_cell(ieee); 
 
-                if(ieee->modulation & IEEE80211_CCK_MODULATION){ 
+                if (ieee->modulation & IEEE80211_CCK_MODULATION){ 
 
                         ieee->current_network.rates_len = 4; 
 
@@ -2401,7 +2401,7 @@ static void ieee80211_start_ibss_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_start_ibss_wq(struct work_struct *work)

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
                 }else 
                         ieee->current_network.rates_len = 0; 
 
-                if(ieee->modulation & IEEE80211_OFDM_MODULATION){ 
+                if (ieee->modulation & IEEE80211_OFDM_MODULATION){ 
                         ieee->current_network.rates_ex_len = 8; 
 
                         ieee->current_network.rates_ex[0] = 

IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_6MB;

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_start_ibss_wq(struct

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
@@ -2424,7 +2424,7 @@ static void ieee80211_start_ibss_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_start_ibss_wq(struct work_struct *work)

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
                 ieee->SetWirelessMode(ieee->dev, IEEE_G); 
                 ieee->current_network.atim_window = 0; 
                 ieee->current_network.capability = 

WLAN_CAPABILITY_IBSS;

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_assoc_resp(struct ieee80211_device *ieee,

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
-                if(ieee->short_slot) 
+                if (ieee->short_slot) 
                         ieee->current_network.capability |= 

WLAN_CAPABILITY_SHORT_SLOT;

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_bss(struct ieee80211_device

Quoted 3 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         } 
@@ -2458,9 +2458,9 @@ void ieee80211_start_bss(struct ieee80211_device 

*ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_bss(struct ieee80211_device · line 2459

Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
          Ref: 802.11d 11.1.3.3 
          STA shall not start a BSS unless properly formed Beacon frame 

including a Country IE.

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_disassociate(struct

Quoted 10 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
         */ 
-        if(IS_DOT11D_ENABLE(ieee) && !IS_COUNTRY_IE_VALID(ieee)) 
+        if (IS_DOT11D_ENABLE(ieee) && !IS_COUNTRY_IE_VALID(ieee)) 
         { 
-                if(! ieee->bGlobalDomain) 
+                if (! ieee->bGlobalDomain) 
                 { 
                         return; 
                 } 
@@ -2499,7 +2499,7 @@ void ieee80211_disassociate(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_retry_wq(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         if (ieee->data_hard_stop) 
                         ieee->data_hard_stop(ieee->dev); 
-        if(IS_DOT11D_ENABLE(ieee)) 
+        if (IS_DOT11D_ENABLE(ieee)) 
                 Dot11d_Reset(ieee); 
         ieee->state = IEEE80211_NOLINK; 
         ieee->is_set_key = false; 
@@ -2517,10 +2517,10 @@ static void ieee80211_associate_retry_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_retry_wq(struct

Quoted 13 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +2 -2
         unsigned long flags; 
 
         down(&ieee->wx_sem); 
-        if(!ieee->proto_started) 
+        if (!ieee->proto_started) 
                 goto exit; 
 
-        if(ieee->state != IEEE80211_ASSOCIATING_RETRY) 
+        if (ieee->state != IEEE80211_ASSOCIATING_RETRY) 
                 goto exit; 
 
         /* until we do not set the state to IEEE80211_NOLINK 
@@ -2542,7 +2542,7 @@ static void ieee80211_associate_retry_wq(struct 

work_struct *work)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c struct sk_buff *ieee80211_get_beacon(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         spin_lock_irqsave(&ieee->lock, flags); 
 
-        if(ieee->state == IEEE80211_NOLINK) 
+        if (ieee->state == IEEE80211_NOLINK) 
                 ieee80211_start_scan(ieee); 
 
         spin_unlock_irqrestore(&ieee->lock, flags); 
@@ -2576,7 +2576,7 @@ struct sk_buff *ieee80211_get_beacon(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_protocol(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         struct ieee80211_probe_response *b; 
 
         skb = ieee80211_get_beacon_(ieee); 
-        if(!skb) 
+        if (!skb) 
                 return NULL; 
 
         b = (struct ieee80211_probe_response *) skb->data; 
@@ -2640,7 +2640,7 @@ void ieee80211_start_protocol(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_protocol(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
                         ch++; 
                         if (ch > MAX_CHANNEL_NUMBER) 
                                 return; /* no channel found */ 
-                }while(!GET_DOT11D_INFO(ieee)->channel_map[ch]); 
+                }while (!GET_DOT11D_INFO(ieee)->channel_map[ch]); 
                 ieee->current_network.channel = ch; 
         } 
 
@@ -2649,7 +2649,7 @@ void ieee80211_start_protocol(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_protocol(struct · line 2649

Quoted 1 line
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -0
         /* printk("===>%s(), chan:%d\n", __func__, 

ieee->current_network.channel);

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_protocol(struct

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         ieee->set_chan(ieee->dev,ieee->current_network.channel); */ 
 
-        for(i = 0; i < 17; i++) { 
+        for (i = 0; i < 17; i++) { 
           ieee->last_rxseq_num[i] = -1; 
           ieee->last_rxfrag_num[i] = -1; 
           ieee->last_packet_time[i] = 0; 
@@ -2672,7 +2672,7 @@ void ieee80211_start_protocol(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_init(struct

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         else if (ieee->iw_mode == IW_MODE_MASTER) 
                 ieee80211_start_master_bss(ieee); 
 
-        else if(ieee->iw_mode == IW_MODE_MONITOR) 
+        else if (ieee->iw_mode == IW_MODE_MONITOR) 
                 ieee80211_start_monitor_mode(ieee); 
 } 
 
@@ -2685,7 +2685,7 @@ void ieee80211_softmac_init(struct 

ieee80211_device *ieee)

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_init(struct ieee80211_device *ieee)

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
         ieee->state = IEEE80211_NOLINK; 
         ieee->sync_scan_hurryup = 0; 
-        for(i = 0; i < 5; i++) { 
+        for (i = 0; i < 5; i++) { 
           ieee->seq_ctrl[i] = 0; 
         } 
         ieee->pDot11dInfo = kzalloc(sizeof(RT_DOT11D_INFO), 

GFP_ATOMIC);

Quoted 5 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
-- 

1.9.1

Signature · 1 line
You received this message because you are subscribed to the Google 

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected] <javascript:>.

Quoted 1 line

To post to this group, send email to [email protected]

<javascript:>.

Quoted 1 line

To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/1425310334-16039-1-git-send-email-haticeerturk27%40gmail.com.

Quoted 2 lines

For more options, visit https://groups.google.com/d/optout.

#3 lore raw
Quoted 1 line · Hatice ERTÜRK

A single package have to be both?

Yes, I think it would be best to put both in a single patch.

julia

Quoted 882 lines

2 Mart 2015 Pazartesi 17:36:35 UTC+2 tarihinde Julia Lawall yazdı:

      On Mon, 2 Mar 2015, Hatice ERTÜRK wrote:

      > Space prohibited before that open parenthesis '(' . That's why
      add space
      > before that open parenthesis.

      There are a lot fo spacing issues related to { on the same lines
      as these
      parenthesis problems.  You should fix these at the same time.

      julia

      > Signed-off-by: Hatice ERTURK <[email protected]>
      > ---
      >  .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 232
      ++++++++++-----------
      >  1 file changed, 116 insertions(+), 116 deletions(-)
      >
      > diff --git
      a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
      b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
      > index 71b7bb8..057d4d1 100644
      > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
      > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
      > @@ -112,7 +112,7 @@ static void ieee80211_WMM_Info(struct
      ieee80211_device *ieee, u8 **tag_p)
      >          *tag++ = 0x00;
      >          *tag++ = 0x01;
      >  #ifdef SUPPORT_USPD
      > -        if(ieee->current_network.wmm_info & 0x80) {
      > +        if (ieee->current_network.wmm_info & 0x80) {
      >                  *tag++ = 0x0f|MAX_SP_Len;
      >          } else {
      >                  *tag++ = MAX_SP_Len;
      > @@ -165,7 +165,7 @@ static struct sk_buff *dequeue_mgmt(struct
      ieee80211_device *ieee)
      >  {
      >          struct sk_buff *ret;
      >
      > -        if(ieee->mgmt_queue_tail == ieee->mgmt_queue_head)
      > +        if (ieee->mgmt_queue_tail == ieee->mgmt_queue_head)
      >                  return NULL;
      >
      >          ret = ieee->mgmt_queue_ring[ieee->mgmt_queue_tail];
      > @@ -187,14 +187,14 @@ static u8
      MgntQuery_MgntFrameTxRate(struct ieee80211_device *ieee)
      >          u8 rate;
      >
      >          /* 2008/01/25 MH For broadcom, MGNT frame set as OFDM
      6M. */
      > -        if(pHTInfo->IOTAction & HT_IOT_ACT_MGNT_USE_CCK_6M)
      > +        if (pHTInfo->IOTAction & HT_IOT_ACT_MGNT_USE_CCK_6M)
      >                  rate = 0x0c;
      >          else
      >                  rate = ieee->basic_rate & 0x7f;
      >
      > -        if(rate == 0){
      > +        if (rate == 0){
      >                  /* 2005.01.26, by rcnjko. */
      > -                if(ieee->mode == IEEE_A||
      > +                if (ieee->mode == IEEE_A||
      >                     ieee->mode== IEEE_N_5G||
      >                     (ieee->mode==
      IEEE_N_24G&&!pHTInfo->bCurSuppCCK))
      >                          rate = 0x0c;
      > @@ -237,8 +237,8 @@ inline void softmac_mgmt_xmit(struct
      sk_buff *skb, struct ieee80211_device *ieee
      >          tcb_desc->bTxDisableRateFallBack = 1;
      >          tcb_desc->bTxUseDriverAssingedRate = 1;
      >
      > -        if(single){
      > -                if(ieee->queue_stop){
      > +        if (single){
      > +                if (ieee->queue_stop){
      >                          enqueue_mgmt(ieee, skb);
      >                  }else{
      >                          header->seq_ctl =
      cpu_to_le16(ieee->seq_ctrl[0]<<4);
      > @@ -267,7 +267,7 @@ inline void softmac_mgmt_xmit(struct
      sk_buff *skb, struct ieee80211_device *ieee
      >                          ieee->seq_ctrl[0]++;
      >
      >                  /* check whether the managed packet queued
      greater than 5 */
      >-                if(!ieee->check_nic_enough_desc(ieee->dev,tcb_desc->queue_
      index)||\
      > +                if
      (!ieee->check_nic_enough_desc(ieee->dev,tcb_desc->queue_index)||\
      >                                 (skb_queue_len(&ieee->skb_waitQ[tcb_desc->
      queue_index]) != 0)||\
      >                                  (ieee->queue_stop) ) {
      >                          /* insert the skb packet to the
      management queue */
      > @@ -293,7 +293,7 @@ inline void softmac_ps_mgmt_xmit(struct
      sk_buff *skb, struct ieee80211_device *i
      >                  (struct ieee80211_hdr_3addr  *) skb->data;
      >
      >
      > -        if(single){
      > +        if (single){
      >
      >                  header->seq_ctl =
      cpu_to_le16(ieee->seq_ctrl[0] << 4);
      >
      > @@ -364,7 +364,7 @@ struct sk_buff
      *ieee80211_get_beacon_(struct ieee80211_device *ieee);
      >  static void ieee80211_send_beacon(struct ieee80211_device
      *ieee)
      >  {
      >          struct sk_buff *skb;
      > -        if(!ieee->ieee_up)
      > +        if (!ieee->ieee_up)
      >                  return;
      >          /* unsigned long flags; */
      >          skb = ieee80211_get_beacon_(ieee);
      > @@ -378,7 +378,7 @@ static void ieee80211_send_beacon(struct
      ieee80211_device *ieee)
      >                  (MSECS( ieee->current_network.beacon_interval
      -5));
      >
      >          spin_lock_irqsave(&ieee->beacon_lock,flags); */
      > -        if(ieee->beacon_txing && ieee->ieee_up){
      > +        if (ieee->beacon_txing && ieee->ieee_up){
      >                  /* if(!timer_pending(&ieee->beacon_timer))
      >                          add_timer(&ieee->beacon_timer); */
      >                 mod_timer(&ieee->beacon_timer,jiffies+(MSECS(ieee->current
      _network.beacon_interval-5)));
      > @@ -430,14 +430,14 @@ void
      ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
      >          memcpy(channel_map,
      GET_DOT11D_INFO(ieee)->channel_map, MAX_CHANNEL_NUMBER+1);
      >          down(&ieee->scan_sem);
      >
      > -        while(1)
      > +        while (1)
      >          {
      >
      >                  do{
      >                          ch++;
      >                          if (ch > MAX_CHANNEL_NUMBER)
      >                                  goto out; /* scan completed
      */
      > -                }while(!channel_map[ch]);
      > +                }while (!channel_map[ch]);
      >
      >                  /* this function can be called in two
      situations
      >                   * 1- We have switched to ad-hoc mode and we
      are
      > @@ -461,13 +461,13 @@ void
      ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
      >                  if (ieee->state == IEEE80211_LINKED)
      >                          goto out;
      >                  ieee->set_chan(ieee->dev, ch);
      > -                if(channel_map[ch] == 1)
      > +                if (channel_map[ch] == 1)
      >                  ieee80211_send_probe_requests(ieee);
      >
      >                  /* this prevent excessive time wait when we
      >                   * need to wait for a syncro scan to end..
      >                   */
      > -                if(ieee->state < IEEE80211_LINKED)
      > +                if (ieee->state < IEEE80211_LINKED)
      >                          ;
      >                  else
      >                  if (ieee->sync_scan_hurryup)
      > @@ -478,13 +478,13 @@ void
      ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
      >
      >          }
      >  out:
      > -        if(ieee->state < IEEE80211_LINKED){
      > +        if (ieee->state < IEEE80211_LINKED){
      >                  ieee->actscanning = false;
      >                  up(&ieee->scan_sem);
      >          }
      >          else{
      >          ieee->sync_scan_hurryup = 0;
      > -        if(IS_DOT11D_ENABLE(ieee))
      > +        if (IS_DOT11D_ENABLE(ieee))
      >                  DOT11D_ScanComplete(ieee);
      >          up(&ieee->scan_sem);
      >  }
      > @@ -498,7 +498,7 @@ static void
      ieee80211_softmac_scan_wq(struct work_struct *work)
      >          static short watchdog;
      >          u8 channel_map[MAX_CHANNEL_NUMBER+1];
      >          memcpy(channel_map,
      GET_DOT11D_INFO(ieee)->channel_map, MAX_CHANNEL_NUMBER+1);
      > -        if(!ieee->ieee_up)
      > +        if (!ieee->ieee_up)
      >                  return;
      >          down(&ieee->scan_sem);
      >          do{
      > @@ -512,11 +512,11 @@ static void
      ieee80211_softmac_scan_wq(struct work_struct *work)
      >                                  goto out; /* no good chans */
      >                          }
      >                  }
      > -        }while(!channel_map[ieee->current_network.channel]);
      > +        }while (!channel_map[ieee->current_network.channel]);
      >          if (ieee->scanning == 0 )
      >                  goto out;
      >          ieee->set_chan(ieee->dev,
      ieee->current_network.channel);
      > -        if(channel_map[ieee->current_network.channel] == 1)
      > +        if (channel_map[ieee->current_network.channel] == 1)
      >                  ieee80211_send_probe_requests(ieee);
      >
      >
      > @@ -525,7 +525,7 @@ static void
      ieee80211_softmac_scan_wq(struct work_struct *work)
      >          up(&ieee->scan_sem);
      >          return;
      >  out:
      > -        if(IS_DOT11D_ENABLE(ieee))
      > +        if (IS_DOT11D_ENABLE(ieee))
      >                  DOT11D_ScanComplete(ieee);
      >          ieee->actscanning = false;
      >          watchdog = 0;
      > @@ -562,7 +562,7 @@ static void ieee80211_beacons_stop(struct
      ieee80211_device *ieee)
      >
      >  void ieee80211_stop_send_beacons(struct ieee80211_device
      *ieee)
      >  {
      > -        if(ieee->stop_send_beacons)
      > +        if (ieee->stop_send_beacons)
      >                  ieee->stop_send_beacons(ieee->dev);
      >          if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
      >                  ieee80211_beacons_stop(ieee);
      > @@ -571,9 +571,9 @@
      EXPORT_SYMBOL(ieee80211_stop_send_beacons);
      >
      >  void ieee80211_start_send_beacons(struct ieee80211_device
      *ieee)
      >  {
      > -        if(ieee->start_send_beacons)
      > +        if (ieee->start_send_beacons)
      >                  ieee->start_send_beacons(ieee->dev,
      ieee->basic_rate);
      > -        if(ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
      > +        if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
      >                  ieee80211_beacons_start(ieee);
      >  }
      >  EXPORT_SYMBOL(ieee80211_start_send_beacons);
      > @@ -609,9 +609,9 @@ EXPORT_SYMBOL(ieee80211_stop_scan);
      >  /* called with ieee->lock held */
      >  static void ieee80211_start_scan(struct ieee80211_device
      *ieee)
      >  {
      > -        if(IS_DOT11D_ENABLE(ieee) )
      > +        if (IS_DOT11D_ENABLE(ieee) )
      >          {
      > -                if(IS_COUNTRY_IE_VALID(ieee))
      > +                if (IS_COUNTRY_IE_VALID(ieee))
      >                  {
      >                          RESET_CIE_WATCHDOG(ieee);
      >                  }
      > @@ -629,9 +629,9 @@ static void ieee80211_start_scan(struct
      ieee80211_device *ieee)
      >  /* called with wx_sem held */
      >  void ieee80211_start_scan_syncro(struct ieee80211_device
      *ieee)
      >  {
      > -        if(IS_DOT11D_ENABLE(ieee) )
      > +        if (IS_DOT11D_ENABLE(ieee) )
      >          {
      > -                if(IS_COUNTRY_IE_VALID(ieee))
      > +                if (IS_COUNTRY_IE_VALID(ieee))
      >                  {
      >                          RESET_CIE_WATCHDOG(ieee);
      >                  }
      > @@ -670,11 +670,11 @@ inline struct sk_buff
      *ieee80211_authentication_req(struct ieee80211_network *be
      >          memcpy(auth->header.addr3, beacon->bssid, ETH_ALEN);
      >
      >          /* auth->algorithm = ieee->open_wep ? WLAN_AUTH_OPEN
      : WLAN_AUTH_SHARED_KEY; */
      > -        if(ieee->auth_mode == 0)
      > +        if (ieee->auth_mode == 0)
      >                  auth->algorithm = WLAN_AUTH_OPEN;
      > -        else if(ieee->auth_mode == 1)
      > +        else if (ieee->auth_mode == 1)
      >                  auth->algorithm = WLAN_AUTH_SHARED_KEY;
      > -        else if(ieee->auth_mode == 2)
      > +        else if (ieee->auth_mode == 2)
      >                  auth->algorithm = WLAN_AUTH_OPEN;/* 0x80; */
      >          printk("=================>%s():auth->algorithm is
      %d\n",__func__,auth->algorithm);
      >          auth->transaction = cpu_to_le16(ieee->associate_seq);
      > @@ -712,14 +712,14 @@ static struct sk_buff
      *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
      >          u8 *tmp_generic_ie_buf=NULL;
      >          u8 tmp_generic_ie_len=0;
      >
      > -        if(rate_ex_len > 0) rate_ex_len+=2;
      > +        if (rate_ex_len > 0) rate_ex_len+=2;
      >
      > -        if(ieee->current_network.capability &
      WLAN_CAPABILITY_IBSS)
      > +        if (ieee->current_network.capability &
      WLAN_CAPABILITY_IBSS)
      >                  atim_len = 4;
      >          else
      >                  atim_len = 0;
      >
      > -        if(ieee80211_is_54g(&ieee->current_network))
      > +        if (ieee80211_is_54g(&ieee->current_network))
      >                  erp_len = 3;
      >          else
      >                  erp_len = 0;
      > @@ -739,7 +739,7 @@ static struct sk_buff
      *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
      >
               HTConstructInfoElement(ieee,tmp_ht_info_buf,&tmp_ht_info_len,
      encrypt);
      >
      >
      > -        if(pHTInfo->bRegRT2RTAggregation)
      > +        if (pHTInfo->bRegRT2RTAggregation)
      >          {
      >                  tmp_generic_ie_buf =
      ieee->pHTInfo->szRT2RTAggBuffer;
      >                  tmp_generic_ie_len =
      sizeof(ieee->pHTInfo->szRT2RTAggBuffer);
      > @@ -776,7 +776,7 @@ static struct sk_buff
      *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
      >          beacon_buf->capability |=
      >                  cpu_to_le16(ieee->current_network.capability
      & WLAN_CAPABILITY_SHORT_PREAMBLE); /* add short preamble here */
      >
      > -        if(ieee->short_slot &&
      (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_SLOT))
      > +        if (ieee->short_slot &&
      (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_SLOT))
      >                  beacon_buf->capability |=
      cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);
      >
      >          crypt = ieee->crypt[ieee->tx_keyidx];
      > @@ -803,7 +803,7 @@ static struct sk_buff
      *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
      >          *(tag++) = 1;
      >          *(tag++) = ieee->current_network.channel;
      >
      > -        if(atim_len){
      > +        if (atim_len){
      >                  *(tag++) = MFIE_TYPE_IBSS_SET;
      >                  *(tag++) = 2;
      >
      > @@ -812,12 +812,12 @@ static struct sk_buff
      *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d
      >                  tag+=2;
      >          }
      >
      > -        if(erp_len){
      > +        if (erp_len){
      >                  *(tag++) = MFIE_TYPE_ERP;
      >                  *(tag++) = 1;
      >                  *(tag++) = erpinfo_content;
      >          }
      > -        if(rate_ex_len){
      > +        if (rate_ex_len){
      >                  *(tag++) = MFIE_TYPE_RATES_EX;
      >                  *(tag++) = rate_ex_len-2;
      >                  memcpy(tag, ieee->current_network.rates_ex,
      rate_ex_len-2);
      > @@ -870,7 +870,7 @@ static struct sk_buff
      *ieee80211_assoc_resp(struct ieee80211_device *ieee,
      >                  WLAN_CAPABILITY_BSS : WLAN_CAPABILITY_IBSS);
      >
      >
      > -        if(ieee->short_slot)
      > +        if (ieee->short_slot)
      >                  assoc->capability |=
      cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);
      >
      >          if (ieee->host_encrypt)
      > @@ -1016,12 +1016,12 @@ inline struct sk_buff
      *ieee80211_association_req(struct ieee80211_network *beaco
      >          encrypt = ieee->host_encrypt && crypt && crypt->ops
      && ((0 == strcmp(crypt->ops->name,"WEP") || wpa_ie_len));
      >
      >          /* Include High Throuput capability && Realtek
      proprietary */
      >
      -        if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT)
      > +        if
      (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT)
      >          {
      >                  ht_cap_buf = (u8
      *)&(ieee->pHTInfo->SelfHTCap);
      >                  ht_cap_len =
      sizeof(ieee->pHTInfo->SelfHTCap);
      >                  HTConstructCapabilityElement(ieee,
      ht_cap_buf, &ht_cap_len, encrypt);
      > -                if(ieee->pHTInfo->bCurrentRT2RTAggregation)
      > +                if (ieee->pHTInfo->bCurrentRT2RTAggregation)
      >                  {
      >                          realtek_ie_buf =
      ieee->pHTInfo->szRT2RTAggBuffer;
      >                          realtek_ie_len = sizeof(
      ieee->pHTInfo->szRT2RTAggBuffer);
      > @@ -1029,16 +1029,16 @@ inline struct sk_buff
      *ieee80211_association_req(struct ieee80211_network *beaco
      >
      >                  }
      >          }
      > -        if(ieee->qos_support){
      > +        if (ieee->qos_support){
      >                  wmm_info_len =
      beacon->qos_data.supported?9:0;
      >          }
      >
      >
      > -        if(beacon->bCkipSupported)
      > +        if (beacon->bCkipSupported)
      >          {
      >                  ckip_ie_len = 30+2;
      >          }
      > -        if(beacon->bCcxRmEnable)
      > +        if (beacon->bCcxRmEnable)
      >          {
      >                  ccxrm_ie_len = 6+2;
      >          }
      > @@ -1098,7 +1098,7 @@ inline struct sk_buff
      *ieee80211_association_req(struct ieee80211_network *beaco
      >          if (beacon->capability &
      WLAN_CAPABILITY_SHORT_PREAMBLE)
      >                  hdr->capability |=
      cpu_to_le16(WLAN_CAPABILITY_SHORT_PREAMBLE); /* add
      short_preamble here */
      >
      > -        if(ieee->short_slot)
      > +        if (ieee->short_slot)
      >                  hdr->capability |=
      cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT);
      >          if (wmm_info_len) //QOS
      >                  hdr->capability |=
      cpu_to_le16(WLAN_CAPABILITY_QOS);
      > @@ -1142,7 +1142,7 @@ inline struct sk_buff
      *ieee80211_association_req(struct ieee80211_network *beaco
      >                  tag += osCcxAironetIE.Length;
      >          }
      >
      > -        if(beacon->bCcxRmEnable)
      > +        if (beacon->bCcxRmEnable)
      >          {
      >                  static u8 CcxRmCapBuf[] = {0x00, 0x40, 0x96,
      0x01, 0x01, 0x00};
      >                  OCTET_STRING osCcxRmCap;
      > @@ -1169,8 +1169,8 @@ inline struct sk_buff
      *ieee80211_association_req(struct ieee80211_network *beaco
      >                  tag += osCcxVerNum.Length;
      >          }
      >          /* HT cap element */
      >
      -        if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
      > -                if(ieee->pHTInfo->ePeerHTSpecVer !=
      HT_SPEC_VER_EWC)
      > +        if
      (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
      > +                if (ieee->pHTInfo->ePeerHTSpecVer !=
      HT_SPEC_VER_EWC)
      >                  {
      >                          tag = skb_put(skb, ht_cap_len);
      >                          *tag++ = MFIE_TYPE_HT_CAP;
      > @@ -1188,18 +1188,18 @@ inline struct sk_buff
      *ieee80211_association_req(struct ieee80211_network *beaco
      >          }
      >
      >          tag = skb_put(skb, wmm_info_len);
      > -        if(wmm_info_len) {
      > +        if (wmm_info_len) {
      >            ieee80211_WMM_Info(ieee, &tag);
      >          }
      >  #ifdef THOMAS_TURBO
      >          tag = skb_put(skb, turbo_info_len);
      > -        if(turbo_info_len) {
      > +        if (turbo_info_len) {
      >                  ieee80211_TURBO_Info(ieee, &tag);
      >          }
      >  #endif
      >
      >
      -        if(ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
      > -                if(ieee->pHTInfo->ePeerHTSpecVer ==
      HT_SPEC_VER_EWC)
      > +        if
      (ieee->pHTInfo->bCurrentHTSupport&&ieee->pHTInfo->bEnableHT){
      > +                if (ieee->pHTInfo->ePeerHTSpecVer ==
      HT_SPEC_VER_EWC)
      >                  {
      >                          tag = skb_put(skb, ht_cap_len);
      >                          *tag++ = MFIE_TYPE_GENERIC;
      > @@ -1208,7 +1208,7 @@ inline struct sk_buff
      *ieee80211_association_req(struct ieee80211_network *beaco
      >                          tag += ht_cap_len -2;
      >                  }
      >
      > -                if(ieee->pHTInfo->bCurrentRT2RTAggregation){
      > +                if (ieee->pHTInfo->bCurrentRT2RTAggregation){
      >                          tag = skb_put(skb, realtek_ie_len);
      >                          *tag++ = MFIE_TYPE_GENERIC;
      >                          *tag++ = realtek_ie_len - 2;
      > @@ -1274,7 +1274,7 @@ static void
      ieee80211_associate_step1(struct ieee80211_device *ieee)
      >                  /* 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)){
      > +                if (!timer_pending(&ieee->associate_timer)){
      >                          ieee->associate_timer.expires =
      jiffies + (HZ / 2);
      >                          add_timer(&ieee->associate_timer);
      >                  }
      > @@ -1337,7 +1337,7 @@ static void
      ieee80211_associate_complete_wq(struct work_struct *work)
      >  {
      >          struct ieee80211_device *ieee = container_of(work,
      struct ieee80211_device, associate_complete_wq);
      >          printk(KERN_INFO "Associated successfully\n");
      > -        if(ieee80211_is_54g(&ieee->current_network) &&
      > +        if (ieee80211_is_54g(&ieee->current_network) &&
      >                  (ieee->modulation &
      IEEE80211_OFDM_MODULATION)){
      >
      >                  ieee->rate = 108;
      > @@ -1359,17 +1359,17 @@ static void
      ieee80211_associate_complete_wq(struct work_struct *work)
      >          }
      >          ieee->LinkDetectInfo.SlotNum = 2 * (1 +
      ieee->current_network.beacon_interval/500);
      >          /* To prevent the immediately calling watch_dog after
      association. */
      >-        if(ieee->LinkDetectInfo.NumRecvBcnInPeriod==0||ieee->LinkDetectInf
      o.NumRecvDataInPeriod==0 )
      > +        if(ieee->LinkDetectInfo.NumRecvBcnInPeriod==0||ieee->LinkDetectInfo.NumRecvDa
      taInPeriod==0 )
      >          {
      >                  ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1;
      >                  ieee->LinkDetectInfo.NumRecvDataInPeriod= 1;
      >          }
      >          ieee->link_change(ieee->dev);
      > -        if(ieee->is_silent_reset == 0){
      > +        if (ieee->is_silent_reset == 0){
      >                  printk("============>normal associate\n");
      >          notify_wx_assoc_event(ieee);
      >          }
      > -        else if(ieee->is_silent_reset == 1)
      > +        else if (ieee->is_silent_reset == 1)
      >          {
      >                  printk("==================>silent reset
      associate\n");
      >                  ieee->is_silent_reset = 0;
      > @@ -1477,7 +1477,7 @@ inline void
      ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct
      ieee
      >                                          /* Join the network
      for the first time */
      >                                          ieee->AsocRetryCount
      = 0;
      >                                          /* for HT by amy
      080514 */
      >-                                        if((ieee->current_network.qos_data
      .supported == 1) &&
      > +                                        if
      ((ieee->current_network.qos_data.supported == 1) &&
      >                                            /*
      (ieee->pHTInfo->bEnableHT &&
      ieee->current_network.bssht.bdSupportHT)) */
      >                                            
      ieee->current_network.bssht.bdSupportHT)
      >  /*WB, 2008.09.09:bCurrentHTSupport and bEnableHT two flags
      are going to put together to check whether we are in HT now, so
      needn't to check bEnableHT flags here. That's is to say we will
      set to HT support whenever joined AP has the ability to support
      HT. And whether we are in HT or not, please check
      bCurrentHTSupport&&bEnableHT now please.*/
      > @@ -1493,7 +1493,7 @@ inline void
      ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct
      ieee
      >                                          ieee->state =
      IEEE80211_ASSOCIATING;
      >                                          queue_work(ieee->wq,
      &ieee->associate_procedure_wq);
      >                                  }else{
      >-                                        if(ieee80211_is_54g(&ieee->current
      _network) &&
      > +                                        if
      (ieee80211_is_54g(&ieee->current_network) &&
      >
                                                       (ieee->modulation
      & IEEE80211_OFDM_MODULATION)){
      >                                                  ieee->rate =
      108;
      >                                                 ieee->SetWirelessMode(ieee
      ->dev, IEEE_G);
      > @@ -1548,10 +1548,10 @@ static inline u16 auth_parse(struct
      sk_buff *skb, u8 **challenge, int *chlen)
      >          }
      >          *challenge = NULL;
      >          a = (struct ieee80211_authentication *) skb->data;
      > -        if(skb->len > (sizeof(struct
      ieee80211_authentication) +3)){
      > +        if (skb->len > (sizeof(struct
      ieee80211_authentication) +3)){
      >                  t = skb->data + sizeof(struct
      ieee80211_authentication);
      >
      > -                if(*(t++) == MFIE_TYPE_CHALLENGE){
      > +                if (*(t++) == MFIE_TYPE_CHALLENGE){
      >                          *chlen = *(t++);
      >                          *challenge = kmemdup(t, *chlen,
      GFP_ATOMIC);
      >                          if (!*challenge)
      > @@ -1652,7 +1652,7 @@ static inline u16 assoc_parse(struct
      ieee80211_device *ieee, struct sk_buff *skb
      >          *aid = le16_to_cpu(response_head->aid) & 0x3fff;
      >
      >          status_code = le16_to_cpu(response_head->status);
      > -        if((status_code==WLAN_STATUS_ASSOC_DENIED_RATES || \
      > +        if ((status_code==WLAN_STATUS_ASSOC_DENIED_RATES || \
      >             status_code==WLAN_STATUS_CAPS_UNSUPPORTED)&&
      >             ((ieee->mode == IEEE_G) &&
      >              (ieee->current_network.mode == IEEE_N_24G) &&
      > @@ -1737,34 +1737,34 @@ static short
      ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32
      *time_h,
      >          */
      >          dtim = ieee->current_network.dtim_data;
      >          /* printk("DTIM\n"); */
      > -        if(!(dtim & IEEE80211_DTIM_VALID))
      > +        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))
      > +        if (dtim & ((IEEE80211_DTIM_UCAST |
      IEEE80211_DTIM_MBCAST)& ieee->ps))
      >                  return 2;
      >
      > -        if(!time_after(jiffies, ieee->dev->trans_start +
      MSECS(timeout)))
      > +        if (!time_after(jiffies, ieee->dev->trans_start +
      MSECS(timeout)))
      >                  return 0;
      >
      > -        if(!time_after(jiffies, ieee->last_rx_ps_time +
      MSECS(timeout)))
      > +        if (!time_after(jiffies, ieee->last_rx_ps_time +
      MSECS(timeout)))
      >                  return 0;
      >
      > -        if((ieee->softmac_features &
      IEEE_SOFTMAC_SINGLE_QUEUE ) &&
      > +        if ((ieee->softmac_features &
      IEEE_SOFTMAC_SINGLE_QUEUE ) &&
      >                  (ieee->mgmt_queue_tail !=
      ieee->mgmt_queue_head))
      >                  return 0;
      >
      > -        if(time_l){
      > +        if (time_l){
      >                  *time_l =
      ieee->current_network.last_dtim_sta_time[0]
      >                          +
      (ieee->current_network.beacon_interval
      >                          * ieee->current_network.dtim_period)
      * 1000;
      >          }
      >
      > -        if(time_h){
      > +        if (time_h){
      >                  *time_h =
      ieee->current_network.last_dtim_sta_time[1];
      > -                if(time_l && *time_l <
      ieee->current_network.last_dtim_sta_time[0])
      > +                if (time_l && *time_l <
      ieee->current_network.last_dtim_sta_time[0])
      >                          *time_h += 1;
      >          }
      >
      > @@ -1783,7 +1783,7 @@ static inline void
      ieee80211_sta_ps(struct ieee80211_device *ieee)
      >
      >          spin_lock_irqsave(&ieee->lock, flags);
      >
      > -        if((ieee->ps == IEEE80211_PS_DISABLED ||
      > +        if ((ieee->ps == IEEE80211_PS_DISABLED ||
      >                  ieee->iw_mode != IW_MODE_INFRA ||
      >                  ieee->state != IEEE80211_LINKED)){
      >
      > @@ -1797,19 +1797,19 @@ static inline void
      ieee80211_sta_ps(struct ieee80211_device *ieee)
      >
      >          sleep = ieee80211_sta_ps_sleep(ieee,&th, &tl);
      >          /* 2 wake, 1 sleep, 0 do nothing */
      > -        if(sleep == 0)
      > +        if (sleep == 0)
      >                  goto out;
      >
      > -        if(sleep == 1){
      > +        if (sleep == 1){
      >
      > -                if(ieee->sta_sleep == 1)
      > +                if (ieee->sta_sleep == 1)
      >                          ieee->enter_sleep_state(ieee->dev,
      th, tl);
      >
      > -                else if(ieee->sta_sleep == 0){
      > +                else if (ieee->sta_sleep == 0){
      >                          /* printk("send null 1\n"); */
      >
                               spin_lock_irqsave(&ieee->mgmt_tx_lock,
      flags2);
      >
      >
      -                        if(ieee->ps_is_queue_empty(ieee->dev)){
      > +                        if
      (ieee->ps_is_queue_empty(ieee->dev)){
      >
      >
      >                                  ieee->sta_sleep = 2;
      > @@ -1826,7 +1826,7 @@ static inline void
      ieee80211_sta_ps(struct ieee80211_device *ieee)
      >                  }
      >
      >
      > -        }else if(sleep == 2){
      > +        }else if (sleep == 2){
      >  /* #warning CHECK_LOCK_HERE */
      >                  spin_lock_irqsave(&ieee->mgmt_tx_lock,
      flags2);
      >
      > @@ -1842,8 +1842,8 @@ out:
      >
      >  void ieee80211_sta_wakeup(struct ieee80211_device *ieee,
      short nl)
      >  {
      > -        if(ieee->sta_sleep == 0){
      > -                if(nl){
      > +        if (ieee->sta_sleep == 0){
      > +                if (nl){
      >                          printk("Warning: driver is probably
      failing to report TX ps error\n");
      >                          ieee->ps_request_tx_ack(ieee->dev);
      >
                               ieee80211_sta_ps_send_null_frame(ieee,
      0);
      > @@ -1852,12 +1852,12 @@ void ieee80211_sta_wakeup(struct
      ieee80211_device *ieee, short nl)
      >
      >          }
      >
      > -        if(ieee->sta_sleep == 1)
      > +        if (ieee->sta_sleep == 1)
      >                  ieee->sta_wake_up(ieee->dev);
      >
      >          ieee->sta_sleep = 0;
      >
      > -        if(nl){
      > +        if (nl){
      >                  ieee->ps_request_tx_ack(ieee->dev);
      >                  ieee80211_sta_ps_send_null_frame(ieee, 0);
      >          }
      > @@ -1869,9 +1869,9 @@ void ieee80211_ps_tx_ack(struct
      ieee80211_device *ieee, short success)
      >
      >          spin_lock_irqsave(&ieee->lock, flags);
      >
      > -        if(ieee->sta_sleep == 2){
      > +        if (ieee->sta_sleep == 2){
      >                  /* Null frame with PS bit set */
      > -                if(success){
      > +                if (success){
      >                          ieee->sta_sleep = 1;
      >                         ieee->enter_sleep_state(ieee->dev,ieee->ps_th,ieee
      ->ps_tl);
      >                  }
      > @@ -1882,7 +1882,7 @@ void ieee80211_ps_tx_ack(struct
      ieee80211_device *ieee, short success)
      >          /* 21112005 - tx again null without PS bit if lost */
      >          else {
      >
      > -                if((ieee->sta_sleep == 0) && !success){
      > +                if ((ieee->sta_sleep == 0) && !success){
      >
                               spin_lock_irqsave(&ieee->mgmt_tx_lock,
      flags2);
      >
                               ieee80211_sta_ps_send_null_frame(ieee,
      0);
      >
                               spin_unlock_irqrestore(&ieee->mgmt_tx_lock,
      flags2);
      > @@ -1935,16 +1935,16 @@ ieee80211_rx_frame_softmac(struct
      ieee80211_device *ieee, struct sk_buff *skb,
      >          /* struct ieee80211_info_element *info_element; */
      >          bool bSupportNmode = true, bHalfSupportNmode = false;
      /* default support N mode, disable halfNmode */
      >
      > -        if(!ieee->proto_started)
      > +        if (!ieee->proto_started)
      >                  return 0;
      >
      > -        if(ieee->sta_sleep || (ieee->ps !=
      IEEE80211_PS_DISABLED &&
      > +        if (ieee->sta_sleep || (ieee->ps !=
      IEEE80211_PS_DISABLED &&
      >                  ieee->iw_mode == IW_MODE_INFRA &&
      >                  ieee->state == IEEE80211_LINKED))
      >
      >                  tasklet_schedule(&ieee->ps_task);
      >
      > -        if(WLAN_FC_GET_STYPE(header->frame_ctl) !=
      IEEE80211_STYPE_PROBE_RESP &&
      > +        if (WLAN_FC_GET_STYPE(header->frame_ctl) !=
      IEEE80211_STYPE_PROBE_RESP &&
      >                  WLAN_FC_GET_STYPE(header->frame_ctl) !=
      IEEE80211_STYPE_BEACON)
      >                  ieee->last_rx_ps_time = jiffies;
      >
      > @@ -1968,7 +1968,7 @@ ieee80211_rx_frame_softmac(struct
      ieee80211_device *ieee, struct sk_buff *skb,
      >
                                       ieee->softmac_stats.rx_ass_ok++;
      >                                  /* station support qos */
      >                                  /* Let the register setting
      defaultly with Legacy station */
      > -                                if(ieee->qos_support) {
      > +                                if (ieee->qos_support) {
      >                                          assoc_resp = (struct
      ieee80211_assoc_response_frame *)skb->data;
      >                                          memset(network, 0,
      sizeof(*network));
      >                                          if
      (ieee80211_parse_info_param(ieee,assoc_resp->info_element,\
      > @@ -1994,7 +1994,7 @@ ieee80211_rx_frame_softmac(struct
      ieee80211_device *ieee, struct sk_buff *skb,
      >                                  IEEE80211_DEBUG_MGMT(
      >                                          "Association response
      status code 0x%x\n",
      >                                          errcode);
      > -                                if(ieee->AsocRetryCount <
      RT_ASOC_RETRY_LIMIT) {
      > +                                if (ieee->AsocRetryCount <
      RT_ASOC_RETRY_LIMIT) {
      >                                          queue_work(ieee->wq,
      &ieee->associate_procedure_wq);
      >                                  } else {
      >
                                               ieee80211_associate_abort(ieee);
      > @@ -2022,15 +2022,15 @@ ieee80211_rx_frame_softmac(struct
      ieee80211_device *ieee, struct sk_buff *skb,
      >
      >                                          errcode =
      auth_parse(skb, &challenge, &chlen);
      >                                          if (!errcode) {
      >
      -                                                if(ieee->open_wep
      || !challenge){
      > +                                                if
      (ieee->open_wep || !challenge){
      >
                                                               ieee->state
      = IEEE80211_ASSOCIATING_AUTHENTICATED;
      >                                                         ieee->softmac_stat
      s.rx_auth_rs_ok++;
      >-                                                        if(!(ieee->pHTInfo
      ->IOTAction&HT_IOT_ACT_PURE_N_MODE))
      > +                                                        if
Quoted 8 lines
      (!(ieee->pHTInfo->IOTAction&HT_IOT_ACT_PURE_N_MODE))
      >                                                          {
      >
                                                                       if
      (!ieee->GetNmodeSupportBySecCfg(ieee->dev))
      >
                                                                       {
      >                                                                          

?? ?              /* WEP or TKIP encryption */

Quoted 7 lines
      >-                                                                        if
      (IsHTHalfNmodeAPs(ieee))
      >+                                                                        if
      (IsHTHalfNmodeAPs(ieee))
      >
                                                                               {
      >                                                                          

?? ?      bSupportNmode = true;

Quoted 1 line
      >                                                                          

?? ?      bHalfSupportNmode = true;

Quoted 10 lines
      > @@ -2044,7 +2044,7 @@ ieee80211_rx_frame_softmac(struct
      ieee80211_device *ieee, struct sk_buff *skb,
      >
                                                                       }
      >                                                          }
      >                                                          /*
      Dummy wirless mode setting to avoid encryption issue */
      >
      -                                                        if(bSupportNmode)
      {
Quoted 8 lines
      > +                                                        if
      (bSupportNmode) {
      >
                                                                       /*
      N mode setting */
      >                                                                 ieee->SetW
      irelessMode(ieee->dev, \
      >                                                                          

?? ?      ieee->current_network.mode);

Quoted 242 lines
      > @@ -2153,11 +2153,11 @@ void ieee80211_softmac_xmit(struct
      ieee80211_txb *txb, struct ieee80211_device *
      >          ieee->stats.tx_bytes += txb->payload_size;
      >          ieee->stats.tx_packets++;
      >          tcb_desc = (cb_desc *)(txb->fragments[0]->cb +
      MAX_DEV_ADDR_SIZE);
      > -        if(tcb_desc->bMulticast) {
      > +        if (tcb_desc->bMulticast) {
      >                  ieee->stats.multicast++;
      >          }
      >          /* if xmit available, just xmit it immediately, else
      just insert it to the wait queue */
      > -        for(i = 0; i < txb->nr_frags; i++) {
      > +        for (i = 0; i < txb->nr_frags; i++) {
      >  #ifdef USB_TX_DRIVER_AGGREGATION_ENABLE
      >                  if
      ((skb_queue_len(&ieee->skb_drv_aggQ[queue_index]) != 0) ||
      >  #else
      > @@ -2198,7 +2198,7 @@ EXPORT_SYMBOL(ieee80211_softmac_xmit);
      >  static void ieee80211_resume_tx(struct ieee80211_device
      *ieee)
      >  {
      >          int i;
      > -        for(i = ieee->tx_pending.frag; i <
      ieee->tx_pending.txb->nr_frags; i++) {
      > +        for (i = ieee->tx_pending.frag; i <
      ieee->tx_pending.txb->nr_frags; i++) {
      >
      >                  if (ieee->queue_stop){
      >                          ieee->tx_pending.frag = i;
      > @@ -2248,7 +2248,7 @@ void ieee80211_wake_queue(struct
      ieee80211_device *ieee)
      >
      >          ieee->queue_stop = 0;
      >
      > -        if(ieee->softmac_features &
      IEEE_SOFTMAC_SINGLE_QUEUE){
      > +        if (ieee->softmac_features &
      IEEE_SOFTMAC_SINGLE_QUEUE){
      >                  while (!ieee->queue_stop && (skb =
      dequeue_mgmt(ieee))){
      >
      >                          header = (struct ieee80211_hdr_3addr
       *) skb->data;
      > @@ -2327,7 +2327,7 @@ void ieee80211_start_master_bss(struct
      ieee80211_device *ieee)
      >
      >  static void ieee80211_start_monitor_mode(struct
      ieee80211_device *ieee)
      >  {
      > -        if(ieee->raw_tx){
      > +        if (ieee->raw_tx){
      >
      >                  if (ieee->data_hard_resume)
      >                          ieee->data_hard_resume(ieee->dev);
      > @@ -2347,7 +2347,7 @@ static void
      ieee80211_start_ibss_wq(struct work_struct *work)
      >           * (abort) this wq (when syncro scanning) before
      sleeping
      >           * on the semaphore
      >           */
      > -        if(!ieee->proto_started){
      > +        if (!ieee->proto_started){
      >                  printk("==========oh driver down return\n");
      >                  return;
      >          }
      > @@ -2386,10 +2386,10 @@ static void
      ieee80211_start_ibss_wq(struct work_struct *work)
      >          /* the network definitively is not here.. create a
      new cell */
      >          if (ieee->state == IEEE80211_NOLINK){
      >                  printk("creating new IBSS cell\n");
      > -                if(!ieee->wap_set)
      > +                if (!ieee->wap_set)
      >                          ieee80211_randomize_cell(ieee);
      >
      > -                if(ieee->modulation &
      IEEE80211_CCK_MODULATION){
      > +                if (ieee->modulation &
      IEEE80211_CCK_MODULATION){
      >
      >                          ieee->current_network.rates_len = 4;
      >
      > @@ -2401,7 +2401,7 @@ static void
      ieee80211_start_ibss_wq(struct work_struct *work)
      >                  }else
      >                          ieee->current_network.rates_len = 0;
      >
      > -                if(ieee->modulation &
      IEEE80211_OFDM_MODULATION){
      > +                if (ieee->modulation &
      IEEE80211_OFDM_MODULATION){
      >                          ieee->current_network.rates_ex_len =
      8;
      >
      >                          ieee->current_network.rates_ex[0] =
      IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_6MB;
      > @@ -2424,7 +2424,7 @@ static void
      ieee80211_start_ibss_wq(struct work_struct *work)
      >                  ieee->SetWirelessMode(ieee->dev, IEEE_G);
      >                  ieee->current_network.atim_window = 0;
      >                  ieee->current_network.capability =
      WLAN_CAPABILITY_IBSS;
      > -                if(ieee->short_slot)
      > +                if (ieee->short_slot)
      >                          ieee->current_network.capability |=
      WLAN_CAPABILITY_SHORT_SLOT;
      >
      >          }
      > @@ -2458,9 +2458,9 @@ void ieee80211_start_bss(struct
      ieee80211_device *ieee)
      >           Ref: 802.11d 11.1.3.3
      >           STA shall not start a BSS unless properly formed
      Beacon frame including a Country IE.
      >          */
      > -        if(IS_DOT11D_ENABLE(ieee) &&
      !IS_COUNTRY_IE_VALID(ieee))
      > +        if (IS_DOT11D_ENABLE(ieee) &&
      !IS_COUNTRY_IE_VALID(ieee))
      >          {
      > -                if(! ieee->bGlobalDomain)
      > +                if (! ieee->bGlobalDomain)
      >                  {
      >                          return;
      >                  }
      > @@ -2499,7 +2499,7 @@ void ieee80211_disassociate(struct
      ieee80211_device *ieee)
      >
      >          if (ieee->data_hard_stop)
      >                          ieee->data_hard_stop(ieee->dev);
      > -        if(IS_DOT11D_ENABLE(ieee))
      > +        if (IS_DOT11D_ENABLE(ieee))
      >                  Dot11d_Reset(ieee);
      >          ieee->state = IEEE80211_NOLINK;
      >          ieee->is_set_key = false;
      > @@ -2517,10 +2517,10 @@ static void
      ieee80211_associate_retry_wq(struct work_struct *work)
      >          unsigned long flags;
      >
      >          down(&ieee->wx_sem);
      > -        if(!ieee->proto_started)
      > +        if (!ieee->proto_started)
      >                  goto exit;
      >
      > -        if(ieee->state != IEEE80211_ASSOCIATING_RETRY)
      > +        if (ieee->state != IEEE80211_ASSOCIATING_RETRY)
      >                  goto exit;
      >
      >          /* until we do not set the state to IEEE80211_NOLINK
      > @@ -2542,7 +2542,7 @@ static void
      ieee80211_associate_retry_wq(struct work_struct *work)
      >
      >          spin_lock_irqsave(&ieee->lock, flags);
      >
      > -        if(ieee->state == IEEE80211_NOLINK)
      > +        if (ieee->state == IEEE80211_NOLINK)
      >                  ieee80211_start_scan(ieee);
      >
      >          spin_unlock_irqrestore(&ieee->lock, flags);
      > @@ -2576,7 +2576,7 @@ struct sk_buff
      *ieee80211_get_beacon(struct ieee80211_device *ieee)
      >          struct ieee80211_probe_response *b;
      >
      >          skb = ieee80211_get_beacon_(ieee);
      > -        if(!skb)
      > +        if (!skb)
      >                  return NULL;
      >
      >          b = (struct ieee80211_probe_response *) skb->data;
      > @@ -2640,7 +2640,7 @@ void ieee80211_start_protocol(struct
      ieee80211_device *ieee)
      >                          ch++;
      >                          if (ch > MAX_CHANNEL_NUMBER)
      >                                  return; /* no channel found
      */
      >
      -                }while(!GET_DOT11D_INFO(ieee)->channel_map[ch]);
      > +                }while
      (!GET_DOT11D_INFO(ieee)->channel_map[ch]);
      >                  ieee->current_network.channel = ch;
      >          }
      >
      > @@ -2649,7 +2649,7 @@ void ieee80211_start_protocol(struct
      ieee80211_device *ieee)
      >          /* printk("===>%s(), chan:%d\n", __func__,
      ieee->current_network.channel);
      >
               ieee->set_chan(ieee->dev,ieee->current_network.channel);
      */
      >
      > -        for(i = 0; i < 17; i++) {
      > +        for (i = 0; i < 17; i++) {
      >            ieee->last_rxseq_num[i] = -1;
      >            ieee->last_rxfrag_num[i] = -1;
      >            ieee->last_packet_time[i] = 0;
      > @@ -2672,7 +2672,7 @@ void ieee80211_start_protocol(struct
      ieee80211_device *ieee)
      >          else if (ieee->iw_mode == IW_MODE_MASTER)
      >                  ieee80211_start_master_bss(ieee);
      >
      > -        else if(ieee->iw_mode == IW_MODE_MONITOR)
      > +        else if (ieee->iw_mode == IW_MODE_MONITOR)
      >                  ieee80211_start_monitor_mode(ieee);
      >  }
      >
      > @@ -2685,7 +2685,7 @@ void ieee80211_softmac_init(struct
      ieee80211_device *ieee)
      >
      >          ieee->state = IEEE80211_NOLINK;
      >          ieee->sync_scan_hurryup = 0;
      > -        for(i = 0; i < 5; i++) {
      > +        for (i = 0; i < 5; i++) {
      >            ieee->seq_ctrl[i] = 0;
      >          }
      >          ieee->pDot11dInfo = kzalloc(sizeof(RT_DOT11D_INFO),
      GFP_ATOMIC);
      > --
      > 1.9.1
      >
      > --
      > 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 visithttps://groups.google.com/d/msgid/outreachy-kernel/1425310334-16039-1-git-s
      end-email-haticeerturk27%40gmail.com.
      > For more options, visit https://groups.google.com/d/optout.
      >

--
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 visithttps://groups.google.com/d/msgid/outreachy-kernel/c6df1928-e079-4421-a0af- 27f6e643c53a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.