From patchwork Wed Nov 10 12:23:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Natarajan X-Patchwork-Id: 313852 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAACO9xr008801 for ; Wed, 10 Nov 2010 12:24:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755806Ab0KJMYI (ORCPT ); Wed, 10 Nov 2010 07:24:08 -0500 Received: from mail.atheros.com ([12.19.149.2]:25299 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755784Ab0KJMYH (ORCPT ); Wed, 10 Nov 2010 07:24:07 -0500 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Wed, 10 Nov 2010 04:23:54 -0800 Received: from smtp.atheros.com (10.12.4.60) by SC1EXHC-02.global.atheros.com (10.10.20.111) with Microsoft SMTP Server (TLS) id 8.2.213.0; Wed, 10 Nov 2010 04:24:05 -0800 Received: by smtp.atheros.com (sSMTP sendmail emulation); Wed, 10 Nov 2010 17:54:01 +0530 From: Vivek Natarajan To: Subject: [RFC 3/5] ath9k_common: Add HTC field length if order bit is set. Date: Wed, 10 Nov 2010 17:53:47 +0530 Message-ID: <1289391829-8577-3-git-send-email-vnatarajan@atheros.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1289391829-8577-2-git-send-email-vnatarajan@atheros.com> References: <1289391829-8577-1-git-send-email-vnatarajan@atheros.com> <1289391829-8577-2-git-send-email-vnatarajan@atheros.com> MIME-Version: 1.0 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 (demeter1.kernel.org [140.211.167.41]); Wed, 10 Nov 2010 12:24:10 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath9k/common.c b/drivers/net/wireless/ath/ath9k/common.c index 48b07c3..2e56200 100644 --- a/drivers/net/wireless/ath/ath9k/common.c +++ b/drivers/net/wireless/ath/ath9k/common.c @@ -36,6 +36,8 @@ int ath9k_cmn_padpos(__le16 frame_control) if (ieee80211_is_data_qos(frame_control)) { padpos += IEEE80211_QOS_CTL_LEN; } + if (ieee80211_has_order(frame_control)) + padpos += IEEE80211_QOS_HTC_LEN; return padpos; }