aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee80211
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2006-03-22 17:29:32 -0500
committerJohn W. Linville <linville@tuxdriver.com>2006-03-23 07:12:36 -0500
commit9a107aa24a1dbc05d58a4fdd2c4d2861f8bd5ae6 (patch)
treea2e0a060edb0d80228508b8d084ea96bc2360f94 /net/ieee80211
parentfe0b06b123762ab620b5bee3dab1576ddddd0a7f (diff)
[PATCH] softmac: remove function_enter()
Remove the function_enter() debugging macros. Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211')
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_assoc.c9
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_auth.c12
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_priv.h9
3 files changed, 1 insertions, 29 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_assoc.c b/net/ieee80211/softmac/ieee80211softmac_assoc.c
index c788377f5648..be61de78dfa4 100644
--- a/net/ieee80211/softmac/ieee80211softmac_assoc.c
+++ b/net/ieee80211/softmac/ieee80211softmac_assoc.c
@@ -38,7 +38,7 @@ static void
38ieee80211softmac_assoc(struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net) 38ieee80211softmac_assoc(struct ieee80211softmac_device *mac, struct ieee80211softmac_network *net)
39{ 39{
40 unsigned long flags; 40 unsigned long flags;
41 function_enter(); 41
42 /* Switch to correct channel for this network */ 42 /* Switch to correct channel for this network */
43 mac->set_channel(mac->dev, net->channel); 43 mac->set_channel(mac->dev, net->channel);
44 44
@@ -64,8 +64,6 @@ ieee80211softmac_assoc_timeout(void *d)
64 struct ieee80211softmac_device *mac = (struct ieee80211softmac_device *)d; 64 struct ieee80211softmac_device *mac = (struct ieee80211softmac_device *)d;
65 unsigned long flags; 65 unsigned long flags;
66 66
67 function_enter();
68
69 spin_lock_irqsave(&mac->lock, flags); 67 spin_lock_irqsave(&mac->lock, flags);
70 /* we might race against ieee80211softmac_handle_assoc_response, 68 /* we might race against ieee80211softmac_handle_assoc_response,
71 * so make sure only one of us does something */ 69 * so make sure only one of us does something */
@@ -89,7 +87,6 @@ ieee80211softmac_disassoc(struct ieee80211softmac_device *mac, u16 reason)
89{ 87{
90 unsigned long flags; 88 unsigned long flags;
91 struct ieee80211softmac_network *found; 89 struct ieee80211softmac_network *found;
92 function_enter();
93 90
94 if (mac->associnfo.bssvalid && mac->associated) { 91 if (mac->associnfo.bssvalid && mac->associated) {
95 found = ieee80211softmac_get_network_by_bssid(mac, mac->associnfo.bssid); 92 found = ieee80211softmac_get_network_by_bssid(mac, mac->associnfo.bssid);
@@ -173,8 +170,6 @@ ieee80211softmac_assoc_work(void *d)
173 struct ieee80211_network *net = NULL, *best = NULL; 170 struct ieee80211_network *net = NULL, *best = NULL;
174 unsigned long flags; 171 unsigned long flags;
175 172
176 function_enter();
177
178 /* meh */ 173 /* meh */
179 if (mac->associated) 174 if (mac->associated)
180 ieee80211softmac_disassoc(mac, WLAN_REASON_DISASSOC_STA_HAS_LEFT); 175 ieee80211softmac_disassoc(mac, WLAN_REASON_DISASSOC_STA_HAS_LEFT);
@@ -391,8 +386,6 @@ ieee80211softmac_handle_reassoc_req(struct net_device * dev,
391 struct ieee80211softmac_device *mac = ieee80211_priv(dev); 386 struct ieee80211softmac_device *mac = ieee80211_priv(dev);
392 struct ieee80211softmac_network *network; 387 struct ieee80211softmac_network *network;
393 388
394 function_enter();
395
396 network = ieee80211softmac_get_network_by_bssid(mac, resp->header.addr3); 389 network = ieee80211softmac_get_network_by_bssid(mac, resp->header.addr3);
397 if (!network) { 390 if (!network) {
398 dprintkl(KERN_INFO PFX "reassoc request from unknown network\n"); 391 dprintkl(KERN_INFO PFX "reassoc request from unknown network\n");
diff --git a/net/ieee80211/softmac/ieee80211softmac_auth.c b/net/ieee80211/softmac/ieee80211softmac_auth.c
index ac09e0c836ee..9a0eac6c61eb 100644
--- a/net/ieee80211/softmac/ieee80211softmac_auth.c
+++ b/net/ieee80211/softmac/ieee80211softmac_auth.c
@@ -36,8 +36,6 @@ ieee80211softmac_auth_req(struct ieee80211softmac_device *mac,
36 struct ieee80211softmac_auth_queue_item *auth; 36 struct ieee80211softmac_auth_queue_item *auth;
37 unsigned long flags; 37 unsigned long flags;
38 38
39 function_enter();
40
41 if (net->authenticating) 39 if (net->authenticating)
42 return 0; 40 return 0;
43 41
@@ -78,8 +76,6 @@ ieee80211softmac_auth_queue(void *data)
78 struct ieee80211softmac_network *net; 76 struct ieee80211softmac_network *net;
79 unsigned long flags; 77 unsigned long flags;
80 78
81 function_enter();
82
83 auth = (struct ieee80211softmac_auth_queue_item *)data; 79 auth = (struct ieee80211softmac_auth_queue_item *)data;
84 net = auth->net; 80 net = auth->net;
85 mac = auth->mac; 81 mac = auth->mac;
@@ -128,8 +124,6 @@ ieee80211softmac_auth_resp(struct net_device *dev, struct ieee80211_auth *auth)
128 unsigned long flags; 124 unsigned long flags;
129 u8 * data; 125 u8 * data;
130 126
131 function_enter();
132
133 /* Find correct auth queue item */ 127 /* Find correct auth queue item */
134 spin_lock_irqsave(&mac->lock, flags); 128 spin_lock_irqsave(&mac->lock, flags);
135 list_for_each(list_ptr, &mac->auth_queue) { 129 list_for_each(list_ptr, &mac->auth_queue) {
@@ -277,8 +271,6 @@ ieee80211softmac_deauth_from_net(struct ieee80211softmac_device *mac,
277 struct list_head *list_ptr; 271 struct list_head *list_ptr;
278 unsigned long flags; 272 unsigned long flags;
279 273
280 function_enter();
281
282 /* Lock and reset status flags */ 274 /* Lock and reset status flags */
283 spin_lock_irqsave(&mac->lock, flags); 275 spin_lock_irqsave(&mac->lock, flags);
284 net->authenticating = 0; 276 net->authenticating = 0;
@@ -320,8 +312,6 @@ ieee80211softmac_deauth_req(struct ieee80211softmac_device *mac,
320{ 312{
321 int ret; 313 int ret;
322 314
323 function_enter();
324
325 /* Make sure the network is authenticated */ 315 /* Make sure the network is authenticated */
326 if (!net->authenticated) 316 if (!net->authenticated)
327 { 317 {
@@ -348,8 +338,6 @@ ieee80211softmac_deauth_resp(struct net_device *dev, struct ieee80211_deauth *de
348 struct ieee80211softmac_network *net = NULL; 338 struct ieee80211softmac_network *net = NULL;
349 struct ieee80211softmac_device *mac = ieee80211_priv(dev); 339 struct ieee80211softmac_device *mac = ieee80211_priv(dev);
350 340
351 function_enter();
352
353 if (!deauth) { 341 if (!deauth) {
354 dprintk("deauth without deauth packet. eek!\n"); 342 dprintk("deauth without deauth packet. eek!\n");
355 return 0; 343 return 0;
diff --git a/net/ieee80211/softmac/ieee80211softmac_priv.h b/net/ieee80211/softmac/ieee80211softmac_priv.h
index 258da14937be..9ba7dbd161eb 100644
--- a/net/ieee80211/softmac/ieee80211softmac_priv.h
+++ b/net/ieee80211/softmac/ieee80211softmac_priv.h
@@ -75,15 +75,6 @@
75# define dprintk(f, x...) do { /* nothing */ } while (0) 75# define dprintk(f, x...) do { /* nothing */ } while (0)
76#endif 76#endif
77 77
78#ifdef function_enter
79# undef function_enter
80#endif
81#ifdef CONFIG_IEEE80211_SOFTMAC_DEBUG
82# define function_enter() do { printk(KERN_DEBUG PFX "%s:%d:%s()\n", __FILE__, __LINE__, __FUNCTION__); } while (0)
83#else
84# define function_enter() do { /* nothing */ } while (0)
85#endif
86
87/* private definitions and prototypes */ 78/* private definitions and prototypes */
88 79
89/*** prototypes from _scan.c */ 80/*** prototypes from _scan.c */