From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Golle Date: Wed, 2 Nov 2011 18:14:15 +0100 Subject: [ath9k-devel] RFC: expose antCtrlCommon aka. AR_PHY_SWITCH_COM via nl80211 Message-ID: <4EB17A67.1030109@allnet.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi everybody! The ALL0258N (AR7420 + AR9285) uses an external antenna switch which is controlled by setting values into the AR_PHY_SWITCH_COM register. Thinking about how to implement this in ath9k on OpenWrt, my solution would be to pass an array of allowed values via platform-data and then expose get_switchcom, set_switchcom and get_available_switchcom via nl80211. Is that the way to do it? Please comment. Cheers Daniel