Skip to content
  • Stanislaw Gruszka's avatar
    iwlwifi: avoid too frequent recover from statistics · 410f2bb3
    Stanislaw Gruszka authored
    Usually H/W generate statistics notify once per about 100ms, but
    sometimes we can receive notify in shorter time, even 2 ms.
    This can be problem for plcp health and ack health checking.
    I.e. with 2 plcp errors happens randomly in 2 ms duration, we
    exceed plcp delta threshold equal to 100 (2*100/2).
    Also checking ack's in short time, can results not necessary false
    positive and firmware reset, for example when channel is noised and
    we do not receive ACKs frames or when remote device does not send
    ACKs at the moment.
    Patch change code to do statistic check and possible recovery only
    if 99ms elapsed from last check. Forced delay should assure we have
    good statistic data to estimate hardware state.
    Signed-off-by: default avatarStanislaw Gruszka <>
    Acked-by: default avatarWey-Yi Guy <>
    Signed-off-by: default avatarJohn W. Linville <>