From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Golle Date: Mon, 14 Nov 2011 14:07:29 +0100 Subject: [ath9k-devel] [PATCH v0 4/6] support for antenna configuration profiles Message-ID: <20111114130729.GA3148@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Add support for platform-supplied antenna-switch profiles in the AP91 template of the OpenWrt Kernel. Here hust for illustration and to be re-posted on openwrt-devel. Signed-off-by: Daniel Golle Index: arch/mips/ar71xx/dev-ap91-pci.c =================================================================== --- arch/mips/ar71xx/dev-ap91-pci.c (revision 28855) +++ arch/mips/ar71xx/dev-ap91-pci.c (working copy) @@ -53,6 +53,15 @@ ap91_wmac_data.gpio_val = val; } +__init void ap91_pci_setup_wmac_switchcom(int idx, u32 val, char *name, char *desc) +{ + if (idx>=0 && idx