This is useful when a wireless driver is stopped or started in response
to events like an RF Kill button press.
Applications like wpa_supplicant depend on such events to have
a correct view of interface state.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
LGTM.
Works on iwn.
Maybe I'm wrong but I seem to have a foggy recollection that this used to work.
Comment Actions
It likely worked via polling the interface state or something.
I've noticed a bunch of other un-fun issues where dhclient stops noticing the interface state change so it starts re-doing DHCP.. should look into that too to see what's up.
sys/net80211/ieee80211_proto.c | ||
---|---|---|
1633 ↗ | (On Diff #72019) | So to try and keep this portable, I suggest making the call to rt_ifmsg() a method that you add to ieee80211_freebsd.c . That way the other downstream consumers of net80211 (dragonflybsd and haiku to name two) can decide how they want to handle it. That also potentially keeps the CURVNET_SET/RESTORE calls in _freebsd.c, hiding it from OSes that don't use it. |