Project : madwifi
Revision : 2644
Author : mentor (Matthew W. S. Bell)
Date : 2007-08-09 02:46:07 +0200 (Thu, 09 Aug 2007)
Log Message :
Only remove node state when shared auth goes wrong if it exists.
Affected Files:
* trunk/net80211/ieee80211_input.c updated
Modified: trunk/net80211/ieee80211_input.c
===================================================================
--- trunk/net80211/ieee80211_input.c 2007-08-08 16:24:40 UTC (rev 2643)
+++ trunk/net80211/ieee80211_input.c 2007-08-09 00:46:07 UTC (rev 2644)
@@ -1473,8 +1473,10 @@
}
IEEE80211_DPRINTF(vap, IEEE80211_MSG_NODE,
- "%s: %p<%s> refcnt %d\n", __func__, ni,
ether_sprintf(ni->ni_macaddr),
- ieee80211_node_refcnt(ni));
+ "%s: %p<%s> refcnt %d\n",
+ __func__, ni,
+ ether_sprintf(ni->ni_macaddr),
+ ieee80211_node_refcnt(ni));
allocbs = 1;
}
@@ -1578,7 +1580,9 @@
ieee80211_send_error(ni, wh->i_addr2,
IEEE80211_FC0_SUBTYPE_AUTH,
(seq + 1) | (estatus<<16));
- ieee80211_node_leave(ni);
+ /* Remove node state if it exists. */
+ if (ni != vap->iv_bss)
+ ieee80211_node_leave(ni);
} else if (vap->iv_opmode == IEEE80211_M_STA) {
/*
* Kick the state machine. This short-circuits
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|