From patchwork Wed Apr 13 05:55:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sujith Manoharan X-Patchwork-Id: 702861 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 p3D5qniN025801 for ; Wed, 13 Apr 2011 05:52:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753973Ab1DMFws (ORCPT ); Wed, 13 Apr 2011 01:52:48 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:38366 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753713Ab1DMFwr (ORCPT ); Wed, 13 Apr 2011 01:52:47 -0400 Received: by pxi2 with SMTP id 2so180423pxi.10 for ; Tue, 12 Apr 2011 22:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:x-mailer:cc:subject; bh=zoAQNjwZGTuqOIH0mDOlb4YQmNW7f7opEeTBYkk1FOw=; b=dUXKvezKKGBkeWBOBqxyvJ9zChDczsOypIMNHS3EIhl/Da1XY/jMLQDcT0p55WqTbR uyrypfl7XNwn1YNeNigCso0C9Z8jCYjKq/IQ3jc2SFwk3pWX9jXSqfEXKGB7W5UqmxFf UZqWR6DSDqo+zZ2VsYsDS6k8jSdql1rLUuDSs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:x-mailer:cc:subject; b=IT20YwIYGd+09N82Eg/iuSXnmvqag6q11dtZA20FP7WOmtZEBiSOq+k+IWRylNm1BR ykyXfSqM4vzhX74FBq3cGyCcnS8yPCqNO+rBM2zqpzokBAOW9Mskxyn7owyiEEWsa27X 9q+501NYG2k2ng+H2lLaqafrkBsfqAC+U89hQ= Received: by 10.142.255.10 with SMTP id c10mr6785696wfi.304.1302673967235; Tue, 12 Apr 2011 22:52:47 -0700 (PDT) Received: from atheros-test ([182.72.177.186]) by mx.google.com with ESMTPS id y2sm344352wfd.20.2011.04.12.22.52.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2011 22:52:46 -0700 (PDT) From: Sujith MIME-Version: 1.0 Message-ID: <19877.15040.267311.154514@gargle.gargle.HOWL> Date: Wed, 13 Apr 2011 11:25:12 +0530 To: linville@tuxdriver.com X-Mailer: VM 8.1.1 under 23.3.1 (x86_64-unknown-linux-gnu) CC: linux-wireless@vger.kernel.org, ath9k-devel@venema.h4ckr.net Subject: [PATCH 22/40] ath9k_htc: Sync MGMT/DATA packet headers with firmware 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.6 (demeter1.kernel.org [140.211.167.41]); Wed, 13 Apr 2011 05:52:50 +0000 (UTC) From: Sujith Manoharan Add a new cookie field that would be filled by the host. This can be used to match the TX status WMI event with the appropriate packet. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/htc.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h index 3af8a58..3185fe7 100644 --- a/drivers/net/wireless/ath/ath9k/htc.h +++ b/drivers/net/wireless/ath/ath9k/htc.h @@ -85,7 +85,8 @@ struct tx_frame_hdr { __be32 flags; /* ATH9K_HTC_TX_* */ u8 key_type; u8 keyix; - u8 reserved[26]; + u8 cookie; + u8 pad; } __packed; struct tx_mgmt_hdr { @@ -95,7 +96,8 @@ struct tx_mgmt_hdr { u8 flags; u8 key_type; u8 keyix; - u16 reserved; + u8 cookie; + u8 pad; } __packed; struct tx_beacon_header {