diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-06-21 05:23:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-22 16:09:55 -0400 |
commit | 66ce235a9d6ea8a7b7089d29000eb715c66a6221 (patch) | |
tree | a9a6b48c031aeabb8b2541a85b30279d33ed82ce /drivers | |
parent | 7216198d31450e273fefcb94b4eb3ea07da99131 (diff) |
ath9k: add a missing case statement to ath_ant_div_comb_alt_check
The 'ar9003_hw_antdiv_comb_conf_get' function sets div_group to 2
however that value is not used in 'ath_ant_div_comb_alt_check'.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 07e35e59c9e3..d0af2f277f20 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c | |||
@@ -39,6 +39,7 @@ static inline bool ath_ant_div_comb_alt_check(u8 div_group, int alt_ratio, | |||
39 | result = true; | 39 | result = true; |
40 | break; | 40 | break; |
41 | case 1: | 41 | case 1: |
42 | case 2: | ||
42 | if ((((curr_main_set == ATH_ANT_DIV_COMB_LNA2) && | 43 | if ((((curr_main_set == ATH_ANT_DIV_COMB_LNA2) && |
43 | (curr_alt_set == ATH_ANT_DIV_COMB_LNA1) && | 44 | (curr_alt_set == ATH_ANT_DIV_COMB_LNA1) && |
44 | (alt_rssi_avg >= (main_rssi_avg - 5))) || | 45 | (alt_rssi_avg >= (main_rssi_avg - 5))) || |