diff options
author | Nick Kossifidis <mickflemm@gmail.com> | 2011-11-25 22:40:28 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-28 23:44:19 +0400 |
commit | 86f62d9b705cdd4f04da5387a5c71ca6ee0a37c9 (patch) | |
tree | be7b6efd601ad74a238e7520740cdd3b59e18559 /drivers/net/wireless/ath/ath5k/ahb.c | |
parent | 84e1e7373b961713bde371b9391d91fe7150d7f2 (diff) | |
download | linux-86f62d9b705cdd4f04da5387a5c71ca6ee0a37c9.tar.xz |
ath5k: MRR support and 2GHz radio override belong in ah_capabilities
MRR support and 2GHz radio override belong in ah_capabilities and we
should use them (e.g. so far we used to set mrr descriptor without
checking if MRR support is enabled + we checked for MRR support 2
times, one by trying to set up an MRR descriptor and another one based
on MAC version).
Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/ahb.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ahb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ahb.c b/drivers/net/wireless/ath/ath5k/ahb.c index e5be7e701816..ee7ea572b065 100644 --- a/drivers/net/wireless/ath/ath5k/ahb.c +++ b/drivers/net/wireless/ath/ath5k/ahb.c @@ -166,7 +166,9 @@ static int ath_ahb_probe(struct platform_device *pdev) if (to_platform_device(ah->dev)->id == 0 && (bcfg->config->flags & (BD_WLAN0 | BD_WLAN1)) == (BD_WLAN1 | BD_WLAN0)) - __set_bit(ATH_STAT_2G_DISABLED, ah->status); + ah->ah_capabilities.cap_needs_2GHz_ovr = true; + else + ah->ah_capabilities.cap_needs_2GHz_ovr = false; } ret = ath5k_init_ah(ah, &ath_ahb_bus_ops); |