Kismet Wireless

Kismet Forums

 

Posted by:ManOnFire
Subject:Filtering 802.11 Control/Management Frames
Date:20:02:11 17/08/2007

> Long time lurker, first time poster. Has anyone here experimented with selectively ignoring 802.11 deauth/disconn frames on a client? Can this be done at the firewall level (say...netfilter) or is it handled at the device driver level?
>
> Any info/links would be greatly appreciated.
>
> -MoF

Nevermind. A little google foo:

diff -ur madwifi-orig/net80211/ieee80211_input.c madwifi/net80211/ieee80211_input.c
--- madwifi-orig/net80211/ieee80211_input.c 2005-05-17 08:52:44.000000000 -
0400
+++ madwifi/net80211/ieee80211_input.c 2005-05-17 09:03:02.000000000 -
0400
@@ -2230,8 +2230,9 @@
ic->ic_stats.is_rx_deauth++;
switch (ic->ic_opmode) {
case IEEE80211_M_STA:
- ieee80211_new_state(ic, IEEE80211_S_AUTH,
- wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
+ /* ieee80211_new_state(ic, IEEE80211_S_AUTH,
+ wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK); * /
+ printk("MADWIFI: Ignoring deauthenticate notice.");
break;
case IEEE80211_M_HOSTAP:
if (ni != ic->ic_bss) {
@@ -2266,8 +2267,9 @@
ic->ic_stats.is_rx_disassoc++;
switch (ic->ic_opmode) {
case IEEE80211_M_STA:
- ieee80211_new_state(ic, IEEE80211_S_ASSOC,
- wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
+ /* ieee80211_new_state(ic, IEEE80211_S_ASSOC,
+ wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK); * /
+ printk("MADWIFI: Ignoring disassociate notice.");
break;
case IEEE80211_M_HOSTAP:
if (ni != ic->ic_bss) {


Reply to this message