Date: Thu, 27 Mar 2008 20:49:54 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 138748 for review Message-ID: <200803272049.m2RKnsiU068656@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=138748 Change 138748 by sam@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803272049.m2RKnsiU068656>