From owner-freebsd-net@FreeBSD.ORG Tue Dec 1 15:40:58 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 592951065697 for ; Tue, 1 Dec 2009 15:40:58 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by mx1.freebsd.org (Postfix) with ESMTP id E50A38FC0A for ; Tue, 1 Dec 2009 15:40:57 +0000 (UTC) Received: by ewy1 with SMTP id 1so5209455ewy.14 for ; Tue, 01 Dec 2009 07:40:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=y1lD9AJQjUCZ56t+l296JohHM01EktDw2jbBSxyn/rA=; b=EOlWReJauPy1ODw8cWddJyeTAsZwLsR+i80zIZVW3aKE2rd8LTQ2K4QTOLIXoLgILF 1VZOJzr7wYNe70FJe05FF3ixZGR736UGHCldniQBM1hc3SqLozcXeZ8+vngk4JFXJSmD Hkepc83fXnC6MmBadACPEGluv0sgXy7kyMXj4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=R+tRsjcHb2L33X7hg0RftThM6lMUs8VEs1MFRg04ESTSuIyVlCgesCbWNOBJF8XVHH X3HKZelAes83kSrZ+Wv9fjScHGFnqkCAfP/vGod5gwMI+RxbN2ZH26xAHPJr/7jrwq4w boESmLOls8iKQ7IK59ric6gPMv7GEx24qvhpA= MIME-Version: 1.0 Received: by 10.213.43.195 with SMTP id x3mr981420ebe.19.1259682056167; Tue, 01 Dec 2009 07:40:56 -0800 (PST) In-Reply-To: <20091201104951.GA42629@zibbi.meraka.csir.co.za> References: <20091201104951.GA42629@zibbi.meraka.csir.co.za> Date: Tue, 1 Dec 2009 16:40:56 +0100 Message-ID: <3a142e750912010740wc69464btbdeea834b0d4e516@mail.gmail.com> From: Paul B Mahol To: John Hay Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org Subject: Re: wlan adhoc mode crash X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2009 15:40:58 -0000 On 12/1/09, John Hay wrote: > Hi, > > I'm not sure if this is the best list. > > I'm trying to get our Avila (arm) boards with atheros wireless cards > upgraded from 7.2 to 8.0. We use adhoc mode and I get a panic in > ieee80211_getcapinfo() because the chan pointer is 0xffff which seems > to mean IEEE80211_CHAN_ANY in other places. So the question is, should > ieee80211_getcapinfo() never be called with chan being 0xffff or should > it know how to handle that case? IEEE80211_CHAN_ANY is there to mean no channel is selected, so you can not call getcapinfo with such argument.