Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #1507: madwifi-promisc-mgmt.patch.txt

File madwifi-promisc-mgmt.patch.txt, 0.7 kB (added by msmith@cbnco.com, 14 years ago)

Discard non-local-dest deauth and disassoc frames

Line 
1 diff -u -r1.1.1.11 ieee80211_input.c
2 --- net80211/ieee80211_input.c  26 Jun 2007 12:44:08 -0000      1.1.1.11
3 +++ net80211/ieee80211_input.c  13 Aug 2007 18:17:23 -0000
4 @@ -3547,6 +3547,11 @@
5                         vap->iv_stats.is_rx_mgtdiscard++;
6                         return;
7                 }
8 +               if (!IEEE80211_ADDR_EQ(wh->i_addr1, vap->iv_myaddr)) {
9 +                       /* Not meant for us; maybe we are promisc */
10 +                       vap->iv_stats.is_rx_mgtdiscard++;
11 +                       return;
12 +               }
13                 /*
14                  * deauth frame format
15                  *        [2] reason
16 @@ -3583,6 +3588,11 @@
17                         vap->iv_stats.is_rx_mgtdiscard++;
18                         return;
19                 }
20 +               if (!IEEE80211_ADDR_EQ(wh->i_addr1, vap->iv_myaddr)) {
21 +                       /* Not meant for us; maybe we are promisc */
22 +                       vap->iv_stats.is_rx_mgtdiscard++;
23 +                       return;
24 +               }
25                 /*
26                  * disassoc frame format
27                  *        [2] reason