From owner-freebsd-wireless@freebsd.org Sun Jul 29 15:55:35 2018 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B7041059FD8 for ; Sun, 29 Jul 2018 15:55:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19D5884E66 for ; Sun, 29 Jul 2018 15:55:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id h20-v6so10870001wmb.4 for ; Sun, 29 Jul 2018 08:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EXrvPmy9uqqpHryCUfdw1HuKdR4LbWTNoyg/G2BhvvQ=; b=a0aOLCLQg/ozz8p4xG6cVELSBGCp4ijqoDOHJx7z7PCiquCyBNZ7NSkNp34tcWLyj3 PKuS3smEBlb/ciPPDgW/dGhSZtvJYQcx/qL7jpBb0RGGcnhQrpfh5Wrggi8hQxa2iXZM E090baqMMOeiUYKlTbeGLSRDuxNqTMTbGCtzF0/xnymgFQcU2Bv1Fmznl/MfZkj1jH3t RSFjH51QQ+ZCgLtcRSrvVlWERq0p8yDOP7PMZ4z/wrJTLNv17DeWa7/atZbpjMJORkDr RTh9eR+JYM2/3BWQ6XAz6XDAYGQfy1HXdUBkp2eqPN1n94Y8ZWt9vM+paRkkXt8cGkoJ 2VSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EXrvPmy9uqqpHryCUfdw1HuKdR4LbWTNoyg/G2BhvvQ=; b=JUyl91jYXd6E2vidRkn84oczq6Fxma2QV7cGid9h/m1NO2xCUmcdtJ3+4LSvKh2jIp Rxba9InQdWd74imWM7v4KVMi+fPAE1gzWLrPM40BAlrrVh6h/hDyh2STbwhx8lXwqdnd uZ+hK4WJptVFOi3HVteqCgxnusqB7eqLHt83ICvWxbDdkoS4DBeOIDjLQ96hceKPXMbo mieLqWut1J+p4P4zPI2+n+qOzOqWsNrgNZ91NXt+nVjdP5WXHD3p5haIER8vxwtEZ6YX P1pstaFnmPIUXv9uikIE84S0VA+V7a2Ecav8RHrzVoKXExPgcuNejWH8J0UGjAcRQ+/L fTZw== X-Gm-Message-State: AOUpUlHAsf42tY1t8MdqvDwWmbr2hH06kLYZM46SIshE7zLPYX5UavGK kTrLTQgkIOhO2Ew+zMvzxdPBR1Ia1jssOIg2Z4aNOw== X-Google-Smtp-Source: AAOMgpfIv1RVZZkdAXBXMXamWA29Po0XFfdFCa4TpKFKyJBVv5wkp+/iwcAsK3eU2TxqXkdiZJv3HSlvNyXajJJGjAE= X-Received: by 2002:a1c:2208:: with SMTP id i8-v6mr11449648wmi.105.1532879733994; Sun, 29 Jul 2018 08:55:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Sun, 29 Jul 2018 08:55:20 -0700 Message-ID: Subject: Re: What is the ieee80211_scanner variable? To: Farhan Khan Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2018 15:55:35 -0000 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 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 > " >