Skip to contentSkip to conversation

chip antenna selection

ath9k-devel Daniel Golle 1 participant 1 message Nov 16, 2011

lore
Share & tools
lore
#0 lore raw

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