From owner-freebsd-questions@FreeBSD.ORG Wed Jul 15 07:12:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EA7C106566B for ; Wed, 15 Jul 2009 07:12:47 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-bw0-f208.google.com (mail-bw0-f208.google.com [209.85.218.208]) by mx1.freebsd.org (Postfix) with ESMTP id 0B1978FC21 for ; Wed, 15 Jul 2009 07:12:46 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by bwz4 with SMTP id 4so676765bwz.43 for ; Wed, 15 Jul 2009 00:12:46 -0700 (PDT) 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:content-type :content-transfer-encoding; bh=rBe3v9q/XggezebQCpR323TJrheGyoFElvwouOIansM=; b=MshGQYTe23DMfPKOuXcBqnWmG5He4gwuYJD6plcFMR1PgGc2OHZGZx4+MD7oC+jP+Y sXvBpjfDHd3Hl1xcLoxsnGZ+CuCVpkLTaaqnGGQxF9UTF2yL/mt1UbZkgDJL+vWCMRfP OLvqvSTuTfICznNFdGOyuZ2szsC1Mw1uRDbdo= 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 :content-type:content-transfer-encoding; b=JbBtq+PP8E9o3/nGOjXHF6ard+AvkrbLW7HLZTQQ7h8oRdixPtCeQJN70jVC+5Gd7z FZozjF5Ne0LXsGTIyTxKo6RkJO/Xh2utLqkB+WF/5x3sCz+wvfkhsZurqUj55jAvxC2i 2rYIC0N779NI8ZyufKSb+l/rg/46dmWMuTRQU= MIME-Version: 1.0 Received: by 10.204.124.7 with SMTP id s7mr7274221bkr.189.1247641966080; Wed, 15 Jul 2009 00:12:46 -0700 (PDT) In-Reply-To: <20090714202840.GB1832@kokopelli.hydra> References: <20090714053849.GB1893@kokopelli.hydra> <200907141220.25978.milu@dat.pl> <20090714202840.GB1832@kokopelli.hydra> Date: Wed, 15 Jul 2009 09:12:46 +0200 Message-ID: <3a142e750907150012y77ce15d4k2a53f2c09add9bea@mail.gmail.com> From: "Paul B. Mahol" To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: turning off the wireless network radio X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2009 07:12:47 -0000 On 7/14/09, Chad Perrin wrote: > On Tue, Jul 14, 2009 at 12:20:25PM +0200, Maciej Milewski wrote: >> Dnia wtorek 14 lipiec 2009 o 07:38:49 Chad Perrin napisal/(a): >> > I'm having a real bitch of a time trying to figure out how to shut down >> > the wireless adapter's radio. The driver module won't unload as long as >> > the adapter is active, and neither ifconfig nor iwicontrol are providing >> > a solution either. >> > >> > I'm using (as you may have guessed by mention of iwicontrol) an Intel >> > wireless adapter, with if_iwi.ko as my driver module. It's an Intel >> > PRO/Wireless 2200BG Network Connection according to pciconf -lv. >> > >> > Thanks in advance. >> You can try doing this by software switch: >> sysctl -a | grep rfkill >> dev.ath.0.rfkill: 0 >> This switch should disable radio. >> I don't know if it is supported by iwi driver but you can try. > > At first glance, it looks like the iwi equivalent is dev.iwi.0.radio, > where 1 is on and 0 is off. It won't let me set it to 0, though, > claiming it's a read-only sysctl setting. > > . . . and trying to set the debug.iwi sysctl setting to 1 caused the > computer to reboot (not intended behavior, I'm sure). Bah. I wonder if Please provide backtrace. > there's something wrong with my driver. > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] > Quoth Steinbach's Guideline for Systems Programmers: "Never test for an > error condition you don't know how to handle." > -- Paul