if_iwm - Use vap->iv_myaddr instead of ic->ic_macaddr when vap != NULL.
authorImre Vadász <imre@vdsz.com>
Mon, 6 Jun 2016 20:22:27 +0000 (22:22 +0200)
committerImre Vadász <imre@vdsz.com>
Mon, 6 Jun 2016 20:27:26 +0000 (22:27 +0200)
commit4aee7a78275676d22d14c04177bd0c9377d91478
tree23e9310bcf25643985157e01d9ea4da1d7632c37
parente8951a475dd514690e7bbf13c7ebdb0e475d2467
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.
sys/dev/netif/iwm/if_iwm.c
sys/dev/netif/iwm/if_iwm_mac_ctxt.c
sys/dev/netif/iwm/if_iwm_scan.c