git: if_iwm - Update firmware rs table, instead of indexing the table in tx cmds.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sun Nov 6 11:29:14 PST 2016


commit 5d6b465e288ac5b52d7115688d4e6516acbbea1c
Author: Imre Vadász <imre at vdsz.com>
Date:   Sun Nov 6 16:25:54 2016 +0100

    if_iwm - Update firmware rs table, instead of indexing the table in tx cmds.
    
    * Rather than providing a non-zero index into the firmware RS table,
      we should always use index 0 and update the firmware RS table whenever
      our chosen tx rate for data-frames changes.
    
    * Send IWM_LQ_CMD updates when the tx rate gets updated by the net80211
      rate control (which is after we tell the tx status to the net80211
      rate-control in iwm_mvm_rx_tx_cmd_single()).
    
    * Disregard frames transferred with a different tx rate than the currently
      selected rate for the rate-control calculations. This way we avoid
      counting management frames (which are sent at a slow, and fixed rate),
      as well as frames we added to the tx queue just before a new IWM_LQ_CMD
      update took effect.
    
    Inspired-By: Linux iwlwifi

Summary of changes:
 sys/dev/netif/iwm/if_iwm.c    | 176 +++++++++++++++++++++---------------------
 sys/dev/netif/iwm/if_iwmvar.h |   2 -
 2 files changed, 88 insertions(+), 90 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5d6b465e288ac5b52d7115688d4e6516acbbea1c


-- 
DragonFly BSD source repository


More information about the Commits mailing list