FS#13639 - netcfg: wireless interface must be down before setting mode

Attached to Project: Arch Linux
Opened by Paride Legovini (torn) - Tuesday, 03 March 2009, 05:37 GMT
Last edited by James Rayner (iphitus) - Tuesday, 03 March 2009, 08:32 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To James Rayner (iphitus)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I think we had a little misunderstanding with my last bug report. Netcfg fails here because it tries to set the mode to a wireless interface while the interface is up, not vice versa. I'm using ath5k, but I've read this is a general limitation of mac80211. So the lines you added:

# Required by atheros and others (mac80211?) to enable device
ifconfig $INTERFACE up

are exactly the opposite of what we need.

A fix could taking down the interface just before setting the wireless mode (remember that iwlist takes the interface up).

Maybe a cleaner approach is:
1. at the very start of the script, take down the interface
2. set the mode to managed
3. run the iwlist (and the other scan stuff)
4. do the real configuration with iwconfig, without specifying any mode.

I'll wait for the next testing release :)
This task depends upon

Closed by  James Rayner (iphitus)
Tuesday, 03 March 2009, 08:32 GMT
Reason for closing:  Duplicate
Additional comments about closing:  Duplicate. Already fixed in git and [testing] release.

Loading...