FS#11748 - [netcfg] fails to take wifi-profile down on iwl3945.

Attached to Project: Arch Linux
Opened by Ramil (gravicappa) - Wednesday, 15 October 2008, 11:58 GMT
Last edited by James Rayner (iphitus) - Saturday, 27 June 2009, 01:49 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To James Rayner (iphitus)
Architecture i686
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
netcfg fails to take wifi-profile down on iwl3945.

But works fine after adding lame workaround to wireless_down() in
/usr/lib/network/wireless.subr:
wireless_down() {
...
/bin/true
}

Additional info:

* hardware
$ lspci | grep 3945
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)

* package version(s)
netcfg 2.x.x
kernel26 2.6.27-2 (and 2.6.26-xx)

* config and/or log files etc.
/etc/network.d/home-wifi:
CONNECTION="wireless"
INTERFACE=wlan0
SCAN="no"
SECURITY="wep"
ESSID="kzz"
KEY="<skipped>"
IP="static"
IFOPTS="10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255"
TIMEOUT=30
WIFI_MODE=ad-hoc
PRE_UP="ifconfig wlan0 down; iwconfig wlan0 mode ad-hoc"
WEP_OPTS="mode $WIFI_MODE essid $ESSID channel 5 key restricted $KEY"

Steps to reproduce:
sudo netcfg -d home-wifi
This task depends upon

Closed by  James Rayner (iphitus)
Saturday, 27 June 2009, 01:49 GMT
Reason for closing:  Works for me
Comment by edac val (edacval) - Thursday, 23 October 2008, 18:05 GMT
Same problem.After short research found clause:
Line "iwconfig $INTERFACE essid off key off &> /dev/null" in function wireless_down() returns 250.
Comment by Matthias Dienstbier (fs4000) - Sunday, 23 November 2008, 17:23 GMT
Same problem with rt2860. iwconfig does not work when the interface is down:

# iwconfig ra0 essid off key off;echo return:$?
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device ra0 ; Network is down.
return:250

Please change the order of wireless_down() in wireless.subr:

wireless_down() {
PROFILE=$1 NOETHERNETDOWN=$2
wpa_cli terminate &> /dev/null
iwconfig $INTERFACE essid off key off &> /dev/null
if ! checkyesno $2; then
. $SUBR_DIR/ethernet.subr
ethernet_down $1
fi
#ifconfig $INTERFACE down
}
Comment by Jason Giangrande (odius) - Tuesday, 20 January 2009, 18:53 GMT
Same problem here, but with a Broadcom BCM4312 card using the broadcom-wl driver from AUR. Changing the order of wireless_down() as suggested by Matthias solves the problem.
Comment by Dr. Robert Marmorstein (atomopawn) - Wednesday, 11 February 2009, 12:10 GMT
Just wanted to add my ditto to this. I am also using broadcom-wl and discovered the fix independently. If this could be patched into the next release of netcfg, that would be great!
Comment by James Rayner (iphitus) - Monday, 16 February 2009, 11:11 GMT
try the latest git
Comment by Sagattarii (sagattarii) - Sunday, 31 May 2009, 16:57 GMT
Well will this be uploaded in the next 5 years?

It is June 2009 now and I still got the same Problem :-/

Broadcom-wl driver, latest stable archlinux.
Comment by James Rayner (iphitus) - Sunday, 31 May 2009, 23:27 GMT
It was uploaded on 16 February 2009, I have netcfg-git PKGBUILDs in the AUR. netcfg git has been on projects.archlinux.org for ages.

Further, there's been a copy of netcfg in [testing] for the last 2-3 weeks which also has this fix.

Loading...