ath9k: validate rx antenna settings
authorFelix Fietkau <nbd@openwrt.org>
Sun, 15 Jul 2012 17:53:30 +0000 (19:53 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Jul 2012 19:11:34 +0000 (15:11 -0400)
commit5d9c7e3c82aaf40b9192e6482968a39b87427bf7
tree063eb81ecc5526049d75f7fd3ccda4a3cf6ce573
parent01967360a20598f95947a86af26c930ab1b50205
ath9k: validate rx antenna settings

Many chips are not able to deal with non-consecutive rx antenna selections
and respond with calibration errors, reset errors, etc.
When an antenna is selected as a tx antenna, also flag it for rx to avoid
chip issues.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c