hi, I replied on iRC but, for reference.
The scanner array here is the per-mode scanner (AP, STA, etc.) that implements how you should do channel scanning and selection. It's set by net80211 by default and you normally don't need to go change it. -adrian On Sat, 28 Jul 2018 at 17:13, Farhan Khan <kha...@gmail.com> wrote: > Hi all, > > What is "ieee80211_scanner *scanners", as defined in ieee80211_scan.c > and how is it set? > > I am trying to figure out why my driver does not produce any results > when I run "ifconfig wlan0 scan". I traced the ioctl that ifconfig(8) > sends up to ieee80211_start_scan(). Here it will run > ieee80211_scanner_get(), which appears to check if the "scanners" > variable is set to not-NULL, and if so, return that value. Back in > ieee80211_start_scan() if the value is NULL, it will return 0. The > surrounding debug printf message suggests that this means the card is > not able to scan. > > Where is this value set? What is it? It seems to be defined within > net80211(4) and not at the driver-level? > Am I missing something? Please explain. > > Thanks, > > -- > Farhan Khan > PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org > " > _______________________________________________ freebsd-wireless@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"