link.c (170b5910d9fbea79de1bb40df22eda5f98250c0c) | link.c (fbbcd14690d3c42b664740d58a22af50a77d5689) |
---|---|
1/* 2 * Copyright (c) 2012 Qualcomm Atheros, Inc. 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 --- 402 unchanged lines hidden (view full) --- 411void ath_start_ani(struct ath_softc *sc) 412{ 413 struct ath_hw *ah = sc->sc_ah; 414 struct ath_common *common = ath9k_hw_common(ah); 415 unsigned long timestamp = jiffies_to_msecs(jiffies); 416 417 if (common->disable_ani || 418 !test_bit(ATH_OP_ANI_RUN, &common->op_flags) || | 1/* 2 * Copyright (c) 2012 Qualcomm Atheros, Inc. 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 --- 402 unchanged lines hidden (view full) --- 411void ath_start_ani(struct ath_softc *sc) 412{ 413 struct ath_hw *ah = sc->sc_ah; 414 struct ath_common *common = ath9k_hw_common(ah); 415 unsigned long timestamp = jiffies_to_msecs(jiffies); 416 417 if (common->disable_ani || 418 !test_bit(ATH_OP_ANI_RUN, &common->op_flags) || |
419 (sc->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)) | 419 sc->cur_chan->offchannel) |
420 return; 421 422 common->ani.longcal_timer = timestamp; 423 common->ani.shortcal_timer = timestamp; 424 common->ani.checkani_timer = timestamp; 425 426 ath_dbg(common, ANI, "Starting ANI\n"); 427 mod_timer(&common->ani.timer, --- 107 unchanged lines hidden --- | 420 return; 421 422 common->ani.longcal_timer = timestamp; 423 common->ani.shortcal_timer = timestamp; 424 common->ani.checkani_timer = timestamp; 425 426 ath_dbg(common, ANI, "Starting ANI\n"); 427 mod_timer(&common->ani.timer, --- 107 unchanged lines hidden --- |