From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Golle Date: Wed, 16 Nov 2011 16:37:26 +0100 Subject: [ath9k-devel] chip antenna selection Message-ID: <4EC3D8B6.90806@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! Seems like the introduction of the antenna-switching API now always sets antenna 0 for single-chain devices with diversity/combining disabled. Unfortunately, apparently there are implementations using *only* antenna 1. (The external antenna switching logic of the ALL0258N is connected via antenna port 1, 0 is unused) As a result of this, compat-wireless-2011-08-26 (+openwrt patches) works perfectly nice on the ALL0258N, but since antenna-selection was introduced somewhen around compat-wireless-2011-09-14 the wrong antenna pin is selected and the device cannot communicate with the outside world, wifi seems to be dead. Adding hw->wiphy->available_antennas_rx = BIT(1); hw->wiphy->available_antennas_tx = BIT(1); to in ath9k_set_hw_capab solves the issue and WiFi works as expected. Can you image a way how such devices could be properly distinguished by the EEPROM data or does it need to be indicated via platform_data from the board? (ask me for a dump of the boardconfig, I don't want to post that on the list) Cheers Daniel