ani.c (e981b060767b3c4ac9393ad8d2558d648e35dfcb) | ani.c (a180a13081708b78d42232c6d922ce3de63f12e0) |
---|---|
1/* 2 * Copyright (C) 2010 Bruno Randolf <br1@einfach.org> 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 538 unchanged lines hidden (view full) --- 547 548 /* not in use but clear anyways */ 549 ath5k_hw_reg_write(ah, 0, AR5K_OFDM_FIL_CNT); 550 ath5k_hw_reg_write(ah, 0, AR5K_CCK_FIL_CNT); 551 552 if (ah->ah_sc->ani_state.ani_mode != ATH5K_ANI_MODE_AUTO) 553 return; 554 | 1/* 2 * Copyright (C) 2010 Bruno Randolf <br1@einfach.org> 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 538 unchanged lines hidden (view full) --- 547 548 /* not in use but clear anyways */ 549 ath5k_hw_reg_write(ah, 0, AR5K_OFDM_FIL_CNT); 550 ath5k_hw_reg_write(ah, 0, AR5K_CCK_FIL_CNT); 551 552 if (ah->ah_sc->ani_state.ani_mode != ATH5K_ANI_MODE_AUTO) 553 return; 554 |
555 /* if one of the errors triggered, we can get a superfluous second 556 * interrupt, even though we have already reset the register. the 557 * function detects that so we can return early */ | 555 /* If one of the errors triggered, we can get a superfluous second 556 * interrupt, even though we have already reset the register. The 557 * function detects that so we can return early. */ |
558 if (ath5k_ani_save_and_clear_phy_errors(ah, as) == 0) 559 return; 560 561 if (as->ofdm_errors > ATH5K_ANI_OFDM_TRIG_HIGH || 562 as->cck_errors > ATH5K_ANI_CCK_TRIG_HIGH) 563 tasklet_schedule(&ah->ah_sc->ani_tasklet); 564} 565 --- 179 unchanged lines hidden --- | 558 if (ath5k_ani_save_and_clear_phy_errors(ah, as) == 0) 559 return; 560 561 if (as->ofdm_errors > ATH5K_ANI_OFDM_TRIG_HIGH || 562 as->cck_errors > ATH5K_ANI_CCK_TRIG_HIGH) 563 tasklet_schedule(&ah->ah_sc->ani_tasklet); 564} 565 --- 179 unchanged lines hidden --- |