PERFORCE change 138748 for review

Sam Leffler sam at FreeBSD.org
Thu Mar 27 13:49:56 PDT 2008


http://perforce.freebsd.org/chv.cgi?CH=138748

Change 138748 by sam at sam_ebb on 2008/03/27 20:49:38

	interpret WI_INFO_LINK_STAT_DISCONNECTED in RUN state to mean the
	ap dropped us--clock the state machine as we would if we actually
	received the DEAUTH frame

Affected files ...

.. //depot/projects/vap/sys/dev/wi/if_wi.c#16 edit

Differences ...

==== //depot/projects/vap/sys/dev/wi/if_wi.c#16 (text+ko) ====

@@ -1471,7 +1471,13 @@
 			IEEE80211_UNLOCK(ic);
 			break;
 		case WI_INFO_LINK_STAT_AP_INR:
+			break;
 		case WI_INFO_LINK_STAT_DISCONNECTED:
+			/* we dropped off the net; e.g. due to deauth/disassoc */
+			if (vap->iv_state == IEEE80211_S_RUN) {
+				vap->iv_stats.is_rx_deauth++;
+				ieee80211_new_state(vap, IEEE80211_S_SCAN, 0);
+			}
 			break;
 		case WI_INFO_LINK_STAT_AP_OOR:
 			ieee80211_beacon_miss(ic);


More information about the p4-projects mailing list