Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2018 20:12:45 -0400
From:      Farhan Khan <khanzf@gmail.com>
To:        freebsd-wireless@freebsd.org
Subject:   What is the ieee80211_scanner variable?
Message-ID:  <CAFd4kYCh%2B2jAJ6yT3RLpeLFdWaxFhkBypDmi%2BWFYcvxqjVWKWQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFd4kYCh%2B2jAJ6yT3RLpeLFdWaxFhkBypDmi%2BWFYcvxqjVWKWQ>