From patchwork Fri May 7 05:57:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gertjan van Wingerde X-Patchwork-Id: 97592 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o475vPwj006176 for ; Fri, 7 May 2010 05:57:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753355Ab0EGF5H (ORCPT ); Fri, 7 May 2010 01:57:07 -0400 Received: from cpsmtpb-ews07.kpnxchange.com ([213.75.39.10]:2484 "EHLO cpsmtpb-ews07.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752596Ab0EGF5G (ORCPT ); Fri, 7 May 2010 01:57:06 -0400 Received: from cpbrm-ews27.kpnxchange.com ([10.94.84.158]) by cpsmtpb-ews07.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 7 May 2010 07:57:04 +0200 Received: from CPSMTPM-EML105.kpnxchange.com ([195.121.3.9]) by cpbrm-ews27.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 7 May 2010 07:57:04 +0200 Received: from wingerd.gvw.nl ([86.87.118.224]) by CPSMTPM-EML105.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Fri, 7 May 2010 07:57:04 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by wingerd.gvw.nl (Postfix) with ESMTP id 79A8560036; Fri, 7 May 2010 07:57:04 +0200 (CEST) Message-ID: <4BE3ABB0.9040506@gmail.com> Date: Fri, 07 May 2010 07:57:04 +0200 From: Gertjan van Wingerde User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100403 Lightning/1.0b2pre Shredder/3.0.4 MIME-Version: 1.0 To: Pavel Roskin CC: "John W. Linville" , linux-wireless@vger.kernel.org Subject: Re: rt61pci: WEP broken in current wireless-testing References: <20100506075157.whuptq9jgzkww4gs-cebfxv@webmail.spamcop.net> <20100506134335.GA4167@tuxdriver.com> <20100506211435.1nfaq83vkg4ccc0g-cebfxv@webmail.spamcop.net> In-Reply-To: <20100506211435.1nfaq83vkg4ccc0g-cebfxv@webmail.spamcop.net> X-OriginalArrivalTime: 07 May 2010 05:57:04.0830 (UTC) FILETIME=[1EAC1DE0:01CAEDAA] X-RecipientDomain: vger.kernel.org Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 07 May 2010 05:57:25 +0000 (UTC) diff --git a/drivers/net/wireless/rt2x00/rt2x00crypto.c b/drivers/net/wireless/rt2x00/rt2x00crypto.c index d291c78..583dacd 100644 --- a/drivers/net/wireless/rt2x00/rt2x00crypto.c +++ b/drivers/net/wireless/rt2x00/rt2x00crypto.c @@ -128,6 +128,7 @@ void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, struct txentry_desc *txdesc) /* Pull buffer to correct size */ skb_pull(skb, txdesc->iv_len); + txdesc->length -= txdesc->iv_len; /* IV/EIV data has officially been stripped */ skbdesc->flags |= SKBDESC_IV_STRIPPED;