git: iwm - Track firmware state better, and improve handling in iwm_newstate().

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sun Mar 18 04:26:30 PDT 2018


commit 8a41b10ac639d0609878696808387a6799d39b57
Author: Imre Vadász <imre at vdsz.com>
Date:   Sat Mar 17 15:48:02 2018 +0100

    iwm - Track firmware state better, and improve handling in iwm_newstate().
    
    * This avoids firmware resets in all the cases in iwm_newstate(). Instead
      iwm_bring_down_firmware() is called, which tears down all the STA
      connection state, according to the sc->sc_firmware_state value.
    
    * Improve the behaviour of the LED blinking a bit, so it only blinks when
      there really is a wireless scan going on.
    
    * Print the newstate arg in debug output of iwm_newstate(), to help in
      debugging.
    
    This is inspired by the firmware state maintaining change in OpenBSD's iwm, by
    stsp at openbsd.org (OpenBSD Git 0ddb056fb7370664b1d4b84392697cb17d1a414a).

Summary of changes:
 sys/dev/netif/iwm/if_iwm.c          | 293 +++++++++++++++++-------------------
 sys/dev/netif/iwm/if_iwm_mac_ctxt.c |   7 +-
 sys/dev/netif/iwm/if_iwm_sta.c      |   2 +-
 sys/dev/netif/iwm/if_iwmvar.h       |   4 +
 4 files changed, 147 insertions(+), 159 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8a41b10ac639d0609878696808387a6799d39b57


-- 
DragonFly BSD source repository


More information about the Commits mailing list