]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ath5k: Set available antenna information for cfg80211
authorBruno Randolf <br1@einfach.org>
Thu, 16 Dec 2010 02:30:33 +0000 (11:30 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 20 Dec 2010 19:49:47 +0000 (14:49 -0500)
Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c

index b3c7241a62a5b9cebf6dc757e806448bc983c8c5..e4ec40c633966b7e16a5fdaec5cb1fdaf13f9820 100644 (file)
@@ -2351,6 +2351,10 @@ ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops)
                BIT(NL80211_IFTYPE_ADHOC) |
                BIT(NL80211_IFTYPE_MESH_POINT);
 
+       /* both antennas can be configured as RX or TX */
+       hw->wiphy->available_antennas_tx = 0x3;
+       hw->wiphy->available_antennas_rx = 0x3;
+
        hw->extra_tx_headroom = 2;
        hw->channel_change_time = 5000;