From: Gabor Juhos Date: Tue, 21 Jun 2011 09:23:43 +0000 (+0200) Subject: ath9k: add a missing case statement to ath_ant_div_comb_alt_check X-Git-Tag: MMI-PSA29.97-13-9~18350^2~12^2~42^2~346 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66ce235a9d6ea8a7b7089d29000eb715c66a6221;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: John W. Linville --- 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, result = true; break; case 1: + case 2: if ((((curr_main_set == ATH_ANT_DIV_COMB_LNA2) && (curr_alt_set == ATH_ANT_DIV_COMB_LNA1) && (alt_rssi_avg >= (main_rssi_avg - 5))) ||