On 2011-12-02 9:01 AM, Marek Lindner wrote:
> On Friday, December 02, 2011 15:31:43 Felix Fietkau wrote:
>> > when I upgraded my trunk to a fairly recent version (rev. 29333) I
>> > noticed wifi became practically unusable on my AR9285 device. I spend a
>> > good deal of the day bisecting the recent ath9k changes to identify the
>> > culprit: 43c3528430bd29f5e5243. I tried verious things like setting the
>> > antenna / removing the "iw antenna all all" call from the ath9k script /
>> > etc but I could not make it work. Only reverting the patch makes wifi
>> > usuable again.
>> 
>> Did you also try iw phy0 antenna 1 2?
> 
> That did not work at all (just tested with r29397):
> 
> iw phy phy0 set antenna 1 2
> command failed: Invalid argument (-22)
> 
> Maybe the command is incomplete ?
When you run iw phy0 info, what does it show under "Available Antennas"?

>> > Besides, I don't quite get the idea behind "all all" - there a lot of
>> > devices out there that support more antennas than they use: the OM2P is
>> > a 1x2 with one antenna, the bullet is 2x2 with one  antenna, etc. Can
>> > somebody shed some light on this ?
>> 
>> The chip supports more than what is connected on the route, normally the
>> EEPROM capabilities force the driver to use only what's on the board,
>> but sometimes the manufacturer puts in stupid values and 'fixes' it with
>> software hackery instead.
> 
> I am not entirely sure what you are referring to with "software hackery". 
> Standard OpenWrt trunk without _any_ modifications does not work. Simply 
> reverting 43c3528430bd fixes it. This tells me that whatever the driver was 
> doing before was correct. The EEPROM seems correct too? 
> Could be wrong though - I am no EEPROM specialist.  ;-)
> 
> Having an option to choose the antenna is a good thing as long as the default 
> values keep working. In the driver as well as in OpenWrt.
> 
> 
>> Does the O2MP have a second antenna port, or a PCB antenna or something
>> like that?
> 
> No, although the AR9285 is a 1x2 device only one antenna port is wired. 
> Nothing on the board or anything. By the way, this is common practice - just 
> look at the Ubiquiti devices ...
Sure, I wasn't questioning the validity of connecting only one port.
Just sometimes the EEPROM claims to have two antennas while the hardware
only has one.

- Felix
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to