From patchwork Wed Jan 13 11:09:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Ortiz X-Patchwork-Id: 72602 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0DB7s5j018507 for ; Wed, 13 Jan 2010 11:07:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755646Ab0AMLHh (ORCPT ); Wed, 13 Jan 2010 06:07:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932118Ab0AMLHf (ORCPT ); Wed, 13 Jan 2010 06:07:35 -0500 Received: from mga10.intel.com ([192.55.52.92]:35455 "EHLO fmsmga102.fm.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932112Ab0AMLHd (ORCPT ); Wed, 13 Jan 2010 06:07:33 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 13 Jan 2010 03:07:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.49,265,1262592000"; d="scan'208";a="763826607" Received: from unknown (HELO sortiz-mobl) ([10.255.17.96]) by fmsmga001.fm.intel.com with ESMTP; 13 Jan 2010 03:07:32 -0800 Date: Wed, 13 Jan 2010 12:09:08 +0100 From: Samuel Ortiz To: "John W. Linville" Cc: linux-wireless@vger.kernel.org, "Zhu, Yi" Subject: [PATCH] [2.6.33] iwmc3200wifi: Add UMAC wifi headers to the pmkid command Message-ID: <20100113110907.GC5248@sortiz.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/iwmc3200wifi/commands.c b/drivers/net/wireless/iwmc3200wifi/commands.c index 777584d..1e41ad0 100644 --- a/drivers/net/wireless/iwmc3200wifi/commands.c +++ b/drivers/net/wireless/iwmc3200wifi/commands.c @@ -973,6 +973,10 @@ int iwm_send_pmkid_update(struct iwm_priv *iwm, memset(&update, 0, sizeof(struct iwm_umac_pmkid_update)); + update.hdr.oid = UMAC_WIFI_IF_CMD_PMKID_UPDATE; + update.hdr.buf_size = cpu_to_le16(sizeof(struct iwm_umac_pmkid_update) - + sizeof(struct iwm_umac_wifi_if)); + update.command = cpu_to_le32(command); if (pmksa->bssid) memcpy(&update.bssid, pmksa->bssid, ETH_ALEN); diff --git a/drivers/net/wireless/iwmc3200wifi/commands.h b/drivers/net/wireless/iwmc3200wifi/commands.h index 06af055..3dfd9f0 100644 --- a/drivers/net/wireless/iwmc3200wifi/commands.h +++ b/drivers/net/wireless/iwmc3200wifi/commands.h @@ -463,6 +463,7 @@ struct iwm_umac_cmd_stop_resume_tx { #define IWM_CMD_PMKID_FLUSH 3 struct iwm_umac_pmkid_update { + struct iwm_umac_wifi_if hdr; __le32 command; u8 bssid[ETH_ALEN]; __le16 reserved;