What is the ieee80211_scanner variable?

Farhan Khan khanzf at gmail.com
Sun Jul 29 00:13:06 UTC 2018


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


More information about the freebsd-wireless mailing list