From owner-freebsd-wireless@FreeBSD.ORG Thu Oct 13 16:16:58 2011 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B22F1065672; Thu, 13 Oct 2011 16:16:58 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 274D58FC14; Thu, 13 Oct 2011 16:16:57 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id p9DGGvXC037478; Thu, 13 Oct 2011 10:16:57 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id p9DGGvkG037475; Thu, 13 Oct 2011 10:16:57 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 13 Oct 2011 10:16:57 -0600 (MDT) From: Warren Block To: Adrian Chadd In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 13 Oct 2011 10:16:57 -0600 (MDT) Cc: wireless@freebsd.org Subject: Re: Detecting a wireless interface X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 13 Oct 2011 16:16:58 -0000 On Thu, 13 Oct 2011, Adrian Chadd wrote: > I can't think of anything, sorry. You may have to write a command line > app that does a net80211 ioctl to see, or maybe there's a way to query > the media type to tell you whether it's wifi or not. Hadn't looked at it before, but parsing ifconfig output is what was used already (bsdinstall netconfig, in this case). I just reused it: http://www.freebsd.org/cgi/query-pr.cgi?pr=161547