Bug 228253
Summary: | ifup-wireless should bring link up before setting ESSID | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pekka Savola <pekkas> |
Component: | initscripts | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6 | CC: | baris, gajownik, pwaldenlinux, redhat, rvokal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 8.52-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-04-16 22:54:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pekka Savola
2007-02-12 07:34:36 UTC
I have this and a related problem. This one is patched with a simple: --- ifup-wireless.orig 2007-02-09 07:38:59.000000000 +0100 +++ ifup-wireless 2007-02-12 09:10:41.000000000 +0100 @@ -30,6 +30,9 @@ # Only meant to be called from ifup. +# We need to set the device up before we can use iwconfig +/sbin/ip link set $DEVICE up + # Mode need to be first : some settings apply only in a specific mode ! if [ -n "$MODE" ] ; then iwconfig $DEVICE mode $MODE The other problem I believe is related is that it seems like DHCP does not work on the wireless link if I have a key set. Not sure if this is a problem with the rt73-driver or a more common issue. As far as I can tell from my debugging it seems like dhclient will reset the device (ip link down; ip link up). When this is done, the key is reset to "off" and DHCP will ofcourse does not work. If I either use a static ip or turn off wep I have no problem with the usbstick. Another solution is to log in on a different tty and manually set the key ("iwconfig rausb0 key xxxxxx") while dhclient is trying to get an address. I had ip line as following on my script at exactly same place. Though not quite sure if dev is necessary (seems not). /sbin/ip link set dev $DEVICE up I'm using^Wtesting ifup-wireless since kernel 2.6.18-x released for FC5, and still no problem with latest kernel on FC6. I can confirm that DHCP problem is totally related with device is not up state before setting WEP KEY and ESSID. I can verify the DHCP problem, although I think this should be reported as a separate bug. I use FC6 NetworkManager with a WEP hex key. At boot and then login, I get a reliable DHCP request completion. If I attempt a network switch (to a different SSID) and then attempt a reconnect, the DHCP always fails. If I then unplug the USB device and then re-insert it, the DHCP request will succeed. Appears to be an re-entrancy problem somewhere, perhaps in the driver as the re-isertion forces a re-initialization. Setting the link up first added in CVS, will be in 8.52-1, and will be in any future FC6 update. |