Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2006 18:33:38 -0500 (EST)
From:      Adrian Filipi <adrian@ubergeeks.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/93681: ipw radio turned on needlessly
Message-ID:  <200602212333.k1LNXc08019216@mail.ubergeeks.com>
Resent-Message-ID: <200602212340.k1LNe4eB049930@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         93681
>Category:       ports
>Synopsis:       ipw radio turned on needlessly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 21 23:40:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Adrian Filipi
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
Ubergeeks Consulting
>Environment:
System: FreeBSD atf.cs.virginia.edu 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #4: Tue Feb 14 18:27:01 EST 2006 adrian@atf.cs.virginia.edu:/usr/obj/usr/src/sys/ThinkPad_X31 i386

	IBM Thinkpad X31 with integrated ipw(4) and em(4) NIC's.

	ipw-firmware-1.3_6 is installed which includes /etc/rc.d/ipw.

>Description:

	At boot time the radio is turned on regardless of whether the
	network is being configured.  This is unecessary as the radio
	is automatically turned on when the network is configured
	using either ifconfig or dhclient.

	This just burns battery life without accomplishing anything when
	you do not need the ipw(4) interface configured.

>How-To-Repeat:

	Put the follwing in /etc/rc.conf.local to cause the ipw(4) firmware
	to be loaded at boot-time:

	ipw_enable="YES"

        This is necessary, before the interface can be configured by 
	any system utilities.

	Next add the following to /etc/rc.conf.local, so that the interfaces
	may be configured via DHCP, but not automatically at boot-time:

	ifconfig_DEFAULT="DHCP NOAUTO"

	Now reboot the system.

	When the system boots up, the /etc/rc.d/ipw start sequence executes
	"ifconfig ${i} up" which turns on the radio.  This is unecessary.

	If the diff below is applied, the system will boot as before, but
	not turn on the NIC radio.

	If you configure the interface using either ifconfig directly, or 
	by running "/etc/rc.d/dhclient ipw0 start", the NIC radio will be 
	turned on automatically.

>Fix:

--- /etc/rc.d/ipw	2006/02/21 13:54:23	1.1
+++ /etc/rc.d/ipw	2006/02/21 13:54:36
@@ -51,7 +51,6 @@
 		eval _file=\$_ipw_file_${i}
 		echo -n " [${i}:${_mode:=bss}]"
 		${command} -i ${i} -f /boot/firmware/${_file}
-		ifconfig ${i} up
 	done
 	echo "."
 }
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602212333.k1LNXc08019216>