Date: Sun, 29 Jul 2018 08:55:20 -0700 From: Adrian Chadd <adrian.chadd@gmail.com> To: Farhan Khan <khanzf@gmail.com> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> Subject: Re: What is the ieee80211_scanner variable? Message-ID: <CAJ-VmonMU1dmvhPdryyfH1TH49W3qdRskJny%2BaNrXbvrwVDavA@mail.gmail.com> In-Reply-To: <CAFd4kYCh%2B2jAJ6yT3RLpeLFdWaxFhkBypDmi%2BWFYcvxqjVWKWQ@mail.gmail.com> References: <CAFd4kYCh%2B2jAJ6yT3RLpeLFdWaxFhkBypDmi%2BWFYcvxqjVWKWQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <khanzf@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-unsubscribe@freebsd.org > " >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonMU1dmvhPdryyfH1TH49W3qdRskJny%2BaNrXbvrwVDavA>