aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2008-01-28 11:25:53 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:19:10 -0500
commit52507c20870dbd58921b42b801f0a92fc057221b (patch)
treef3e4827509e8228512921074a78b4b0a9547b5e4
parent1afc09ab7c62d0e59596ce76e8e256b0cf695654 (diff)
libertas: make association debug output nicer
This also fixes a bug where should_deauth_infrastructure() always returned 0. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/libertas/assoc.c9
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c2
-rw-r--r--drivers/net/wireless/libertas/join.c3
3 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c
index 87e145ffe8f1..4360deac943b 100644
--- a/drivers/net/wireless/libertas/assoc.c
+++ b/drivers/net/wireless/libertas/assoc.c
@@ -413,11 +413,10 @@ static int should_deauth_infrastructure(struct lbs_private *priv,
413{ 413{
414 int ret = 0; 414 int ret = 0;
415 415
416 lbs_deb_enter(LBS_DEB_ASSOC);
417
418 if (priv->connect_status != LBS_CONNECTED) 416 if (priv->connect_status != LBS_CONNECTED)
419 return 0; 417 return 0;
420 418
419 lbs_deb_enter(LBS_DEB_ASSOC);
421 if (test_bit(ASSOC_FLAG_SSID, &assoc_req->flags)) { 420 if (test_bit(ASSOC_FLAG_SSID, &assoc_req->flags)) {
422 lbs_deb_assoc("Deauthenticating due to new SSID\n"); 421 lbs_deb_assoc("Deauthenticating due to new SSID\n");
423 ret = 1; 422 ret = 1;
@@ -456,7 +455,7 @@ static int should_deauth_infrastructure(struct lbs_private *priv,
456 455
457out: 456out:
458 lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret); 457 lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret);
459 return 0; 458 return ret;
460} 459}
461 460
462 461
@@ -643,9 +642,7 @@ void lbs_association_worker(struct work_struct *work)
643 } 642 }
644 643
645 if (success) { 644 if (success) {
646 lbs_deb_assoc("ASSOC: associated to '%s', %s\n", 645 lbs_deb_assoc("associated to %s\n",
647 escape_essid(priv->curbssparams.ssid,
648 priv->curbssparams.ssid_len),
649 print_mac(mac, priv->curbssparams.bssid)); 646 print_mac(mac, priv->curbssparams.bssid));
650 lbs_prepare_and_send_command(priv, 647 lbs_prepare_and_send_command(priv,
651 CMD_802_11_RSSI, 648 CMD_802_11_RSSI,
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index bd2e6668d85f..a0a5dbe81b3b 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -74,7 +74,7 @@ void lbs_mac_event_disconnected(struct lbs_private *priv)
74 lbs_deb_cmd("disconnected, so exit PS mode\n"); 74 lbs_deb_cmd("disconnected, so exit PS mode\n");
75 lbs_ps_wakeup(priv, 0); 75 lbs_ps_wakeup(priv, 0);
76 } 76 }
77 lbs_deb_leave(LBS_DEB_CMD); 77 lbs_deb_leave(LBS_DEB_ASSOC);
78} 78}
79 79
80/** 80/**
diff --git a/drivers/net/wireless/libertas/join.c b/drivers/net/wireless/libertas/join.c
index 2d4508048b68..a0a060939322 100644
--- a/drivers/net/wireless/libertas/join.c
+++ b/drivers/net/wireless/libertas/join.c
@@ -769,9 +769,6 @@ int lbs_ret_80211_associate(struct lbs_private *priv,
769 priv->curbssparams.ssid_len = bss->ssid_len; 769 priv->curbssparams.ssid_len = bss->ssid_len;
770 memcpy(priv->curbssparams.bssid, bss->bssid, ETH_ALEN); 770 memcpy(priv->curbssparams.bssid, bss->bssid, ETH_ALEN);
771 771
772 lbs_deb_assoc("ASSOC_RESP: currentpacketfilter is 0x%x\n",
773 priv->currentpacketfilter);
774
775 priv->SNR[TYPE_RXPD][TYPE_AVG] = 0; 772 priv->SNR[TYPE_RXPD][TYPE_AVG] = 0;
776 priv->NF[TYPE_RXPD][TYPE_AVG] = 0; 773 priv->NF[TYPE_RXPD][TYPE_AVG] = 0;
777 774