Return-path: Received: from mail.perches.com ([173.55.12.10]:1774 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752471Ab0CRGVo (ORCPT ); Thu, 18 Mar 2010 02:21:44 -0400 From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Richard Kennedy , Johannes Berg , "John W. Linville" , linux-wireless@vger.kernel.org Subject: [PATCH v2 1/7] wireless.h: Add STD_IW_HANDLER macro Date: Wed, 17 Mar 2010 23:21:34 -0700 Message-Id: <0475f4511eedbcca7fe4e8b7fb8a457aa81358dc.1268892664.git.joe@perches.com> In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org List-ID: Copied from orinoco, initialize a iw_handler array entry Signed-off-by: Joe Perches --- include/linux/wireless.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/wireless.h b/include/linux/wireless.h index 5b4c6c7..ad9f8d5 100644 --- a/include/linux/wireless.h +++ b/include/linux/wireless.h @@ -346,6 +346,8 @@ #define SIOCIWFIRST 0x8B00 #define SIOCIWLAST SIOCIWLASTPRIV /* 0x8BFF */ #define IW_IOCTL_IDX(cmd) ((cmd) - SIOCIWFIRST) +#define STD_IW_HANDLER(id, func) \ + [IW_IOCTL_IDX(id)] = (iw_handler) func /* Odd : get (world access), even : set (root access) */ #define IW_IS_SET(cmd) (!((cmd) & 0x1)) -- 1.7.0.14.g7e948