Commit 60ef9eb6 authored by Ramkumar Ramachandra's avatar Ramkumar Ramachandra Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8192e: Cleanup style and whitespace



Replace C99-style comments with C89-style comments, fix some typos,
and fix whitespace to use only tabs.

Signed-off-by: default avatarRamkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4d9db977
Loading
Loading
Loading
Loading
+36 −35
Original line number Diff line number Diff line
@@ -142,7 +142,8 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
	spin_lock_init(&ieee->wpax_suitlist_lock);
	spin_lock_init(&ieee->bw_spinlock);
	spin_lock_init(&ieee->reorder_spinlock);
	//added by WB

	/* added by WB */
	atomic_set(&(ieee->atm_chnlop), 0);
	atomic_set(&(ieee->atm_swbw), 0);

@@ -153,8 +154,8 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
 	ieee->privacy_invoked = 0;
 	ieee->ieee802_1x = 1;
	ieee->raw_tx = 0;
	//ieee->hwsec_support = 1; //default support hw security. //use module_param instead.
	ieee->hwsec_active = 0; //disable hwsec, switch it on when necessary.
	/* ieee->hwsec_support = 1; default support hw security: use module_param instead */
	ieee->hwsec_active = 0; /* disable hwsec, switch it on when necessary */

	ieee80211_softmac_init(ieee);

@@ -165,7 +166,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
		return NULL;
	}
	HTUpdateDefaultSetting(ieee);
	HTInitializeHTInfo(ieee); //may move to other place.
	HTInitializeHTInfo(ieee); /* may move to other place */
	TSInitialize(ieee);
	for (i = 0; i < IEEE_IBSS_MAC_HASH_SIZE; i++)
		INIT_LIST_HEAD(&ieee->ibss_mac_hash[i]);
@@ -176,7 +177,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
		ieee->last_packet_time[i] = 0;
	}

//These function were added to load crypte module autoly
	/* Functions to load crypt module automatically */
	ieee80211_tkip_null();
	ieee80211_wep_null();
	ieee80211_ccmp_null();
@@ -222,24 +223,24 @@ void free_ieee80211(struct net_device *dev)

u32 ieee80211_debug_level = 0;
static int debug = \
	//		    IEEE80211_DL_INFO	|
	//		    IEEE80211_DL_WX	|
	//		    IEEE80211_DL_SCAN	|
	//		    IEEE80211_DL_STATE	|
	//		    IEEE80211_DL_MGMT	|
	//		    IEEE80211_DL_FRAG	|
	//		    IEEE80211_DL_EAP	|
	//		    IEEE80211_DL_DROP	|
	//		    IEEE80211_DL_TX	|
	//		    IEEE80211_DL_RX	|
			    //IEEE80211_DL_QOS    |
	//		    IEEE80211_DL_HT 	|
	//		    IEEE80211_DL_TS	|
//			    IEEE80211_DL_BA 	|
	//		    IEEE80211_DL_REORDER|
//			    IEEE80211_DL_TRACE  |
			    //IEEE80211_DL_DATA	|
			    IEEE80211_DL_ERR	  //awayls open this flags to show error out
	/* IEEE80211_DL_INFO	| */
	/* IEEE80211_DL_WX	| */
	/* IEEE80211_DL_SCAN	| */
	/* IEEE80211_DL_STATE	| */
	/* IEEE80211_DL_MGMT	| */
	/* IEEE80211_DL_FRAG	| */
	/* IEEE80211_DL_EAP	| */
	/* IEEE80211_DL_DROP	| */
	/* IEEE80211_DL_TX	| */
	/* IEEE80211_DL_RX	| */
	/* IEEE80211_DL_QOS     | */
	/* IEEE80211_DL_HT 	| */
	/* IEEE80211_DL_TS	| */
	/* IEEE80211_DL_BA 	| */
	/* IEEE80211_DL_REORDER | */
	/* IEEE80211_DL_TRACE   | */
	/* IEEE80211_DL_DATA	| */
	IEEE80211_DL_ERR	/* always open this flag to show error out */
	;
struct proc_dir_entry *ieee80211_proc = NULL;