From patchwork Tue Aug 17 19:46:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 120007 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7HJlfXh004169 for ; Tue, 17 Aug 2010 19:48:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752445Ab0HQTrX (ORCPT ); Tue, 17 Aug 2010 15:47:23 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:42243 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752369Ab0HQTrV (ORCPT ); Tue, 17 Aug 2010 15:47:21 -0400 Received: by eyg5 with SMTP id 5so2243619eyg.19 for ; Tue, 17 Aug 2010 12:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=1X5y5wWRXWlEuNQPJHnJE4in9WfxLLpYCArFhqVEkqI=; b=qnFArETMrG3uyFer7qAKdEINjg9HHloiEDim8zL4+triIi4uE8/2huzVsHLYDQ/xTa zzzQaXmrQsrKuvl+4xXDF8ZqtnIl55upEvtSMmOWW5wcuD1EcKm4u/uGsvLo9P+OOY1i bOQbVKxnQ7qOemXEVSPpU9xEwdeLcggiZ8xf8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=tOcIOWOOU02drysIkTWZtY875hCywSi+fASK4LyWCXFx6Gwtrf61ib0HcP2UOLdehS perxm6IRY7Chm8bnMNlb8FAr0rVrp1RuWzwIcsmvSOVEilbwaCyWlANwSBKPiyxidf/s +lzvBW8xzN7Qt3nsBb9qIS2AgX/BBiCji5EEw= Received: by 10.213.19.6 with SMTP id y6mr6803034eba.7.1282074440482; Tue, 17 Aug 2010 12:47:20 -0700 (PDT) Received: from localhost.localdomain (ip-88-119-226-136.static.b4net.lt [88.119.226.136]) by mx.google.com with ESMTPS id v59sm12710731eeh.22.2010.08.17.12.47.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 12:47:19 -0700 (PDT) From: Grazvydas Ignotas To: "John W. Linville" Cc: linux-wireless@vger.kernel.org, Kalle Valo , Grazvydas Ignotas Subject: [PATCH 1/4] wl1251: add missing __packed modifier for some structs Date: Tue, 17 Aug 2010 22:46:52 +0300 Message-Id: <1282074415-6168-2-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1282074415-6168-1-git-send-email-notasas@gmail.com> References: <1282074415-6168-1-git-send-email-notasas@gmail.com> 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]); Tue, 17 Aug 2010 19:48:52 +0000 (UTC) diff --git a/drivers/net/wireless/wl12xx/wl1251_acx.h b/drivers/net/wireless/wl12xx/wl1251_acx.h index 842df31..9864124 100644 --- a/drivers/net/wireless/wl12xx/wl1251_acx.h +++ b/drivers/net/wireless/wl12xx/wl1251_acx.h @@ -37,7 +37,7 @@ struct acx_header { /* payload length (not including headers */ u16 len; -}; +} __packed; struct acx_error_counter { struct acx_header header; @@ -471,7 +471,7 @@ struct acx_conn_monit_params { u32 synch_fail_thold; /* number of beacons missed */ u32 bss_lose_timeout; /* number of TU's from synch fail */ -}; +} __packed; enum { SG_ENABLE = 0, @@ -1056,7 +1056,7 @@ struct acx_rate_class { u8 long_retry_limit; u8 aflags; u8 reserved; -}; +} __packed; struct acx_rate_policy { struct acx_header header; diff --git a/drivers/net/wireless/wl12xx/wl1251_cmd.h b/drivers/net/wireless/wl12xx/wl1251_cmd.h index a9e4991..60d7e52 100644 --- a/drivers/net/wireless/wl12xx/wl1251_cmd.h +++ b/drivers/net/wireless/wl12xx/wl1251_cmd.h @@ -111,7 +111,7 @@ struct wl1251_cmd_header { struct wl1251_command { struct wl1251_cmd_header header; u8 parameters[MAX_CMD_PARAMS]; -}; +} __packed; enum { CMD_MAILBOX_IDLE = 0, @@ -164,7 +164,7 @@ struct cmd_read_write_memory { of this field is the Host in WRITE command or the Wilink in READ command. */ u8 value[MAX_READ_SIZE]; -}; +} __packed; #define CMDMBOX_HEADER_LEN 4 #define CMDMBOX_INFO_ELEM_HEADER_LEN 4 @@ -339,7 +339,7 @@ struct wl1251_cmd_trigger_scan_to { struct wl1251_cmd_header header; u32 timeout; -}; +} __packed; /* HW encryption keys */ #define NUM_ACCESS_CATEGORIES_COPY 4