From owner-freebsd-questions@FreeBSD.ORG Tue Jul 14 20:35:10 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 342701065670 for ; Tue, 14 Jul 2009 20:35:10 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-136.bluehost.com (outbound-mail-136.bluehost.com [67.222.39.26]) by mx1.freebsd.org (Postfix) with SMTP id 008F28FC24 for ; Tue, 14 Jul 2009 20:35:09 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: (qmail 30157 invoked by uid 0); 14 Jul 2009 20:35:09 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by outboundproxy4.bluehost.com with SMTP; 14 Jul 2009 20:35:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:X-Identified-User; b=ZhCu2360Xkd+7zB3KHbZxCyeN+rF3GRftnz8bXXhbJVkFp9122k0eHO02u33KKak45hfDzMb6QMa/nGxHwlVhKUlkrqJwL72hS32A23h8gTybgPBR9juThbvobXwaXe4; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kokopelli.hydra) by box543.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MQoiS-0006HZ-65 for freebsd-questions@freebsd.org; Tue, 14 Jul 2009 14:35:09 -0600 Received: by kokopelli.hydra (sSMTP sendmail emulation); Tue, 14 Jul 2009 14:28:40 -0600 Date: Tue, 14 Jul 2009 14:28:40 -0600 From: Chad Perrin To: freebsd-questions@freebsd.org Message-ID: <20090714202840.GB1832@kokopelli.hydra> Mail-Followup-To: freebsd-questions@freebsd.org References: <20090714053849.GB1893@kokopelli.hydra> <200907141220.25978.milu@dat.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ADZbWkCsHQ7r3kzd" Content-Disposition: inline In-Reply-To: <200907141220.25978.milu@dat.pl> User-Agent: Mutt/1.4.2.3i X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} 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: Tue, 14 Jul 2009 20:35:10 -0000 --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 14, 2009 at 12:20:25PM +0200, Maciej Milewski wrote: > Dnia wtorek 14 lipiec 2009 o 07:38:49 Chad Perrin napisa=C5=82(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. =2E . . 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 there's something wrong with my driver. --=20 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." --ADZbWkCsHQ7r3kzd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkpc6ngACgkQ9mn/Pj01uKV5TgCfaIQ6IaVtjLyl1FY0zUt1kbqp rd8AoIhtNyPy1kImzQr5Qd5Be3ghYT/v =O6Ju -----END PGP SIGNATURE----- --ADZbWkCsHQ7r3kzd--