On Sat, Apr 28, 2018 at 02:38:43PM +0300, Paul Irofti wrote: > Hi, > > Apparently we need to increase the scan count everytime, else we get no > nodes in the list. > > Found the hardway on mpi's run(4). > > Is there any device that still needs that check? > > Paul
This diff cannot be right since it deletes the call to ieee80211_next_mode(). I cannot reproduce the problem; run(4) scans fine on my -current machine. > diff --git sys/net80211/ieee80211_node.c sys/net80211/ieee80211_node.c > index 70d6419e619..e10d1cab81d 100644 > --- sys/net80211/ieee80211_node.c > +++ sys/net80211/ieee80211_node.c > @@ -729,9 +729,7 @@ ieee80211_end_scan(struct ifnet *ifp) > * current scan results to userspace regardless of mode. > * This will loop forever except for user-initiated scans. > */ > - if (ieee80211_next_mode(ifp) == IEEE80211_MODE_AUTO || > - (ic->ic_caps & IEEE80211_C_SCANALLBAND)) > - ic->ic_scan_count++; > + ic->ic_scan_count++; > > /* > * Reset the list of channels to scan and start again.