From patchwork Wed Oct 7 02:50:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hin-Tak Leung X-Patchwork-Id: 52131 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n972wKOU004580 for ; Wed, 7 Oct 2009 02:58:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702AbZJGCwx (ORCPT ); Tue, 6 Oct 2009 22:52:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751401AbZJGCww (ORCPT ); Tue, 6 Oct 2009 22:52:52 -0400 Received: from mail-ew0-f217.google.com ([209.85.219.217]:53307 "EHLO mail-ew0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752580AbZJGCww (ORCPT ); Tue, 6 Oct 2009 22:52:52 -0400 Received: by ewy17 with SMTP id 17so169810ewy.39 for ; Tue, 06 Oct 2009 19:52:15 -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; bh=A02xbLQduqjvUSAdexG56Wf5KSQaJNYcCW28gcyN9Bk=; b=poHtlwnGEglfPf4IkTM6bzmh9Pn9hbHw2C+5DxdjKpg+JHDpeVokpxM7hLhx6podFr xvam/l+3ctihPQY2wVgcvCnXUatdYXUlpwv6UNu8wjs9cIeL1n4lnxVlkLFapjnWV53C JCpSmWs7l08DtNTGPscq59ev7PqYL9s/WQXRQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=NNKqt+XBKw4Uxvml6l6OrjfuUiNmtBovYCsLTVyyIdG8XgOqabE6Xy+bB1EFNcUZRy u+LVg+fYQqMK2XywCLMQY/d57XI0RJZ95ycXDUZffZxSxTmT/zxbXZwlu2q36KAE4dI6 mjqV1eQxvJSCKjbUcsT7QHp24d4CNB9vMKUPA= Received: by 10.211.131.23 with SMTP id i23mr2461026ebn.90.1254883934663; Tue, 06 Oct 2009 19:52:14 -0700 (PDT) Received: from localhost.localdomain (cpc3-cmbg5-0-0-cust408.cmbg.cable.ntl.com [81.101.129.153]) by mx.google.com with ESMTPS id 28sm647113eyg.4.2009.10.06.19.52.13 (version=SSLv3 cipher=RC4-MD5); Tue, 06 Oct 2009 19:52:13 -0700 (PDT) From: Hin-Tak Leung To: linux-wireless@vger.kernel.org, lrodriguez@atheros.com Cc: Hin-Tak Leung , Hin-Tak Leung Subject: [PATCH] compat-2.6: adjusting 01-netdev.patch for libertas cfg80211 support Date: Wed, 7 Oct 2009 03:50:57 +0100 Message-Id: <1254883857-2252-1-git-send-email-HinTak.Leung@gmail.com> X-Mailer: git-send-email 1.6.5.rc2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/compat/patches/01-netdev.patch b/compat/patches/01-netdev.patch index 141f80b..f6bca3e 100644 --- a/compat/patches/01-netdev.patch +++ b/compat/patches/01-netdev.patch @@ -416,9 +416,9 @@ without creating a headache on maintenance of the pathes. /** * @brief This function adds the card. it will probe the @@ -1270,7 +1272,16 @@ - priv->infra_open = 0; + wdev->netdev = dev; + priv->dev = dev; - /* Setup the OS Interface to our functions */ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)) dev->netdev_ops = &lbs_netdev_ops; +#else