diff options
author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2022-12-03 17:10:50 +0000 |
---|---|---|
committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2022-12-09 11:20:07 +0000 |
commit | 1bcd230f9508b3c917f26be4b905e4b5141decea (patch) | |
tree | 57c7ffb469b0972e3ed6cdb48cc4d42d7e82c482 /sys/net80211 | |
parent | 0ca90ed42a495074392a8316ae58a9bbf4eda01a (diff) | |
download | src-1bcd230f9508b3c917f26be4b905e4b5141decea.tar.gz src-1bcd230f9508b3c917f26be4b905e4b5141decea.zip |
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_freebsd.c | 4 | ||||
-rw-r--r-- | sys/net80211/ieee80211_proto.c | 4 | ||||
-rw-r--r-- | sys/net80211/ieee80211_proto.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sys/net80211/ieee80211_freebsd.c b/sys/net80211/ieee80211_freebsd.c index ec970e217dfd..7158ada291ab 100644 --- a/sys/net80211/ieee80211_freebsd.c +++ b/sys/net80211/ieee80211_freebsd.c @@ -1020,7 +1020,7 @@ ieee80211_notify_radio(struct ieee80211com *ic, int state) } void -ieee80211_notify_ifnet_change(struct ieee80211vap *vap) +ieee80211_notify_ifnet_change(struct ieee80211vap *vap, int if_flags_mask) { struct ifnet *ifp = vap->iv_ifp; @@ -1028,7 +1028,7 @@ ieee80211_notify_ifnet_change(struct ieee80211vap *vap) "interface state change"); CURVNET_SET(ifp->if_vnet); - rt_ifmsg(ifp); + rt_ifmsg(ifp, if_flags_mask); CURVNET_RESTORE(); } diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 87fed05a281c..7e76a3ae9226 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1993,7 +1993,7 @@ ieee80211_start_locked(struct ieee80211vap *vap) * back in here and complete the work. */ ifp->if_drv_flags |= IFF_DRV_RUNNING; - ieee80211_notify_ifnet_change(vap); + ieee80211_notify_ifnet_change(vap, IFF_DRV_RUNNING); /* * We are not running; if this we are the first vap @@ -2107,7 +2107,7 @@ ieee80211_stop_locked(struct ieee80211vap *vap) ieee80211_new_state_locked(vap, IEEE80211_S_INIT, -1); if (ifp->if_drv_flags & IFF_DRV_RUNNING) { ifp->if_drv_flags &= ~IFF_DRV_RUNNING; /* mark us stopped */ - ieee80211_notify_ifnet_change(vap); + ieee80211_notify_ifnet_change(vap, IFF_DRV_RUNNING); if (--ic->ic_nrunning == 0) { IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE | IEEE80211_MSG_DEBUG, diff --git a/sys/net80211/ieee80211_proto.h b/sys/net80211/ieee80211_proto.h index e9b5157716d4..3bbeccfd0547 100644 --- a/sys/net80211/ieee80211_proto.h +++ b/sys/net80211/ieee80211_proto.h @@ -462,5 +462,5 @@ void ieee80211_notify_node_auth(struct ieee80211_node *); void ieee80211_notify_country(struct ieee80211vap *, const uint8_t [IEEE80211_ADDR_LEN], const uint8_t cc[2]); void ieee80211_notify_radio(struct ieee80211com *, int); -void ieee80211_notify_ifnet_change(struct ieee80211vap *); +void ieee80211_notify_ifnet_change(struct ieee80211vap *, int); #endif /* _NET80211_IEEE80211_PROTO_H_ */ |