diff options
author | avos <avos@FreeBSD.org> | 2016-04-05 21:29:11 +0000 |
---|---|---|
committer | avos <avos@FreeBSD.org> | 2016-04-05 21:29:11 +0000 |
commit | 774be1858136d01ba4d727fefc1cb7f91e487962 (patch) | |
tree | 992c563eb854e1d421921f0e089d48b2c7b41ef4 /sys/net80211/ieee80211_var.h | |
parent | 5a410d362579e9c2efa9b1653fee765fec758882 (diff) | |
download | FreeBSD-src-774be1858136d01ba4d727fefc1cb7f91e487962.zip FreeBSD-src-774be1858136d01ba4d727fefc1cb7f91e487962.tar.gz |
net80211: copy MAC address into iv_myaddr[] instead of aliasing it.
Since IF_LLADDR() returns a non-constant pointer to the MAC address
preserve a copy of it in iv_myaddr.
PR: 208505
Diffstat (limited to 'sys/net80211/ieee80211_var.h')
-rw-r--r-- | sys/net80211/ieee80211_var.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h index 393c7c3..0066854 100644 --- a/sys/net80211/ieee80211_var.h +++ b/sys/net80211/ieee80211_var.h @@ -362,7 +362,8 @@ struct ieee80211vap { TAILQ_ENTRY(ieee80211vap) iv_next; /* list of vap instances */ struct ieee80211com *iv_ic; /* back ptr to common state */ - const uint8_t *iv_myaddr; /* MAC address: ifp or ic */ + /* MAC address: ifp or ic */ + uint8_t iv_myaddr[IEEE80211_ADDR_LEN]; uint32_t iv_debug; /* debug msg flags */ struct ieee80211_stats iv_stats; /* statistics */ |