• Gregory Greenman's avatar
    iwlwifi: mvm: rs: fix TPC statistics handling · 69c7fda4
    Gregory Greenman authored
    FW behaviour changed and now updates driver about the used TPC
    reduction in the following cases:
    1. In tx response, which is used mostly for a single frame case
    2. In BA notification
    
    When tx aggregation fails with the initial rate, FW will send
    to the driver BA notification and will try to transmit with the
    next rate, but this time without tx power reduction. Thus, in case
    of a failure with the initial rate, driver will get two BA notifications,
    the first one with reduced tx power as in the LQ command and the second
    one with 0 power reduction.
    
    This patch adapts the TPC statistics according to the description above:
    1. Use BA notifications instead of Tx response
    2. For TPC only, drop the optimization which considers empty BA as one
    MPDU. The reason is that with TPC we want to recover very quickly from
    a bad power reduction and, therefore we'd like the success ratio to get
    an immediate hit when failing to get a BA, so we'd switch back to a
    lower or zero power reduction
    Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
    Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
    69c7fda4
rs.c 114 KB