From pizza@shaftnet.org Mon Oct 27 12:11:30 2008 From: Solomon Peachy Date: Mon, 27 Oct 2008 11:14:04 -0400 Subject: Staging: wlan-ng: Eliminate one more rx mtu test. To: greg@kroah.com Cc: mark@linux-wlan.com, Solomon Peachy Message-ID: <1225120446-2908-11-git-send-email-pizza@shaftnet.org> It also isn't needed. Signed-off-by: Solomon Peachy Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wlan-ng/p80211conv.c | 10 ---------- 1 file changed, 10 deletions(-) --- 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 *w /* 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);