From patchwork Wed Mar 24 21:23:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Roskin X-Patchwork-Id: 88058 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2OLNgrj012168 for ; Wed, 24 Mar 2010 21:23:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750827Ab0CXVXl (ORCPT ); Wed, 24 Mar 2010 17:23:41 -0400 Received: from c60.cesmail.net ([216.154.195.49]:31050 "EHLO c60.cesmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750739Ab0CXVXk (ORCPT ); Wed, 24 Mar 2010 17:23:40 -0400 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 24 Mar 2010 17:23:39 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id 1E80A34C6A; Wed, 24 Mar 2010 17:26:10 -0400 (EDT) Subject: compat: add compat-2.6.35.h and IW_HANDLER From: Pavel Roskin To: "Luis R. Rodriguez" , linux-wireless@vger.kernel.org Date: Wed, 24 Mar 2010 17:23:37 -0400 Message-Id: <1269465817.26368.5.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) 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]); Wed, 24 Mar 2010 21:23:42 +0000 (UTC) diff --git a/include/linux/compat-2.6.35.h b/include/linux/compat-2.6.35.h new file mode 100644 index 0000000..7387c46 --- /dev/null +++ b/include/linux/compat-2.6.35.h @@ -0,0 +1,13 @@ +#ifndef LINUX_26_35_COMPAT_H +#define LINUX_26_35_COMPAT_H + +#include + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) + +#define IW_HANDLER(id, func) \ + [IW_IOCTL_IDX(id)] = func + +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) */ + +#endif /* LINUX_26_35_COMPAT_H */ diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h index ceca997..6171cd9 100644 --- a/include/linux/compat-2.6.h +++ b/include/linux/compat-2.6.h @@ -27,5 +27,6 @@ #include #include #include +#include #endif /* LINUX_26_COMPAT_H */