git: if_iwm - Use vap->iv_myaddr instead of ic->ic_macaddr when vap != NULL.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Mon Jun 6 13:27:53 PDT 2016


commit 4aee7a78275676d22d14c04177bd0c9377d91478
Author: Imre Vadász <imre at vdsz.com>
Date:   Mon Jun 6 22:22:27 2016 +0200

    if_iwm - Use vap->iv_myaddr instead of ic->ic_macaddr when vap != NULL.
    
    * ic_macaddr is only used for the initial mac address provided by NVM.
      We should rather use vap->iv_myaddr when vap != NULL, to allow the
      MAC address to be changed via e.g. ifconfig.

Summary of changes:
 sys/dev/netif/iwm/if_iwm.c          | 6 +-----
 sys/dev/netif/iwm/if_iwm_mac_ctxt.c | 2 +-
 sys/dev/netif/iwm/if_iwm_scan.c     | 8 ++++++--
 3 files changed, 8 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4aee7a78275676d22d14c04177bd0c9377d91478


-- 
DragonFly BSD source repository



More information about the Commits mailing list