From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Golle Date: Mon, 14 Nov 2011 14:01:06 +0100 Subject: [ath9k-devel] [PATCH v0 0/6] support for antenna configuration profiles Message-ID: <20111114130106.GA3005@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Some WiFi devices come with multiple antennas and allow the user to select the antenna configuration used (e.g. "horizontal" vs. "vertical") The ALL0258N is an AR7420+AR9285 outdoor WiFi appliance with two built-in directional antennas. This series of patches introduces an infrastructure which allows the user to select an antenna-configuration profile for such devices. To achieve this goal, first nl80211 was extended to supply information about the available configuration profiles, report the currenty selected profile and allow the user to select a profile to be applied. Code to make use of this infrastructure is introduced to ath9k. Available profiles are supplied via ath9k_platform_data from the board-setup. In user-space, iw is modified to display the available profiles, indicate which one is currently selected and allow to select a profile to be set. (passing strings through nl80211 is kinda ugly and I'm still having trouble at the point when iw decodes the netlink message) Changes to LuCI's libiwinfo will follow and allow the antenna selection to be part of OpenWrt's LuCI web-interface. The OpenWrt-specific board-setup code in part 5 is supplied here only for illustration/completeness, I'll re-post that again on openwrt-devel, of course. All comments and remarks are highly appreciated! Thank you! Daniel Golle