Only pass 802.11 frames up if they are greater than the minimum
size or else if monitor mode is enabled.
This commit is contained in:
parent
b7522c81e7
commit
a2c00c4caa
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: atw.c,v 1.21 2004/01/29 10:01:14 dyoung Exp $ */
|
||||
/* $NetBSD: atw.c,v 1.22 2004/01/29 10:02:24 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.21 2004/01/29 10:01:14 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.22 2004/01/29 10:02:24 dyoung Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
|
||||
|
@ -3092,7 +3092,9 @@ atw_rxintr(sc)
|
|||
|
||||
wh = mtod(m, struct ieee80211_frame *);
|
||||
ni = ieee80211_find_rxnode(ic, wh);
|
||||
ieee80211_input(ifp, m, ni, rssi, 0);
|
||||
if (m->m_pkthdr.len >= sizeof(struct ieee80211_frame_min) ||
|
||||
ic->ic_opmode == IEEE80211_M_MONITOR)
|
||||
ieee80211_input(ifp, m, ni, (int)rssi, 0);
|
||||
/*
|
||||
* The frame may have caused the node to be marked for
|
||||
* reclamation (e.g. in response to a DEAUTH message)
|
||||
|
|
Loading…
Reference in New Issue