]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ath5k: disable 5 GHz support if a 2.4 GHz radio is detected
authorFelix Fietkau <nbd@openwrt.org>
Wed, 13 Apr 2011 19:56:42 +0000 (21:56 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 14 Apr 2011 19:35:08 +0000 (15:35 -0400)
On a dual-radio dual-band AR5312 device, the calibration data is shared
between the 5 GHz and the 2.4 GHz radio/MAC.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/caps.c

index f77e8a703c5cbcd7212751509828db9efe46f74f..7dd88e1c3ff8c083ab87eeaaaa1b86b4a5988364 100644 (file)
@@ -94,6 +94,9 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah)
                }
        }
 
+       if ((ah->ah_radio_5ghz_revision & 0xf0) == AR5K_SREV_RAD_2112)
+               __clear_bit(AR5K_MODE_11A, caps->cap_mode);
+
        /* Set number of supported TX queues */
        if (ah->ah_version == AR5K_AR5210)
                caps->cap_queues.q_tx_num = AR5K_NUM_TX_QUEUES_NOQCU;