diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2008-10-27 11:14:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:51:55 -0800 |
commit | 905862c9f98676807931c9c832ee12ba0d58bc88 (patch) | |
tree | 59f11b4880617fa0c63dda8780c0ba0c73c27b64 /drivers | |
parent | 9d86349e9c8059039d41f5d40ad42d77ef5acf87 (diff) |
Staging: wlan-ng: Eliminate one more rx mtu test.
It also isn't needed.
Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/wlan-ng/p80211conv.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/wlan-ng/p80211conv.c b/drivers/staging/wlan-ng/p80211conv.c index d58f10f11d0..aaf1c9d4448 100644 --- a/drivers/staging/wlan-ng/p80211conv.c +++ b/drivers/staging/wlan-ng/p80211conv.c @@ -444,16 +444,6 @@ int skb_p80211_to_ether( wlandevice_t *wlandev, UINT32 ethconv, struct sk_buff * /* build an 802.3 frame */ /* allocate space and setup hostbuf */ - /* Test for an overlength frame */ - if ( payload_length > netdev->mtu ) { - /* A bogus length ethfrm has been sent. */ - /* Is someone trying an oflow attack? */ - WLAN_LOG_ERROR("OTHER frame too large (%d > %d)\n", - payload_length, - netdev->mtu); - return 1; - } - /* Chop off the 802.11 header. */ skb_pull(skb, payload_offset); |