]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: use fixed antenna for tx descriptors
authorBruno Randolf <br1@einfach.org>
Tue, 9 Mar 2010 07:55:23 +0000 (16:55 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Mar 2010 21:16:55 +0000 (16:16 -0500)
commit6e6e126baea84534089d3f263a33a405f71f275a
tree1b72d0f392347c9653b085683a30400704417fc4
parent24d0460794eb1e1caf1edab962ab05540ce90792
ath5k: use fixed antenna for tx descriptors

when using a fixed antenna we should use the antenna number in all tx
descriptors, otherwise the hardware will sometimes send the frame out on the
other antenna. it seems like the hardware does not always respect the default
antenna and diversity settings (esp.  AR5K_STA_ID1_DEFAULT_ANTENNA).

also i would like to note that antenna diversity does not always work correctly
on 5414 (at least) when only one antenna is connected: for example all frames
might be received on antenna A but still the HW tries to send on antenna B some
times, causing packet loss.

this is both verified with the antenna statistics output of the previous patch
and a spectrum analyzer.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/phy.c