cannot follow ifdown with ifup with prism2_usb

Bug #27823 reported by John Steele Scott
4
Affects Status Importance Assigned to Milestone
linux-wlan-ng (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I have a 802.11b device which is (at the present time) working okay with
Dapper's prism2_usb module and the linux-wlan-ng. This is a bit of a nitpick
now that this setup is generally working okay, but . . .

If you have the interface up, and you bring it down with "sudo ifdown
wlan0", then you can't bring it back up with "sudo ifup wlan0". If you try,
it looks like this:

toojays@fuzz:/etc/network$ sudo ifup wlan0
wlanctl-ng: No such device
Failed to enable the device, exitcode= 1 .
run-parts: /etc/network/if-pre-up.d/linux-wlan-ng-pre-up exited with return
code 1
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; No such device.
Error for wireless request "Set Encode" (8B2B) :
    GET failed on device wlan0 ; No such device.
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device wlan0 ; No such device.
SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
wlan0: ERROR while getting interface flags: No such device
Failed to bring up wlan0.

The reason is that the ifdown script removes the prism2_usb module. So if I
want to bring the interface up, I have to unplug/replug the device. This is
a pain.

Doesn't the kernel automatically remove unused modules?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

You can also, instead of unplugging/replugging the device, just load the module: sudo modprobe prism2_usb
This is at least a smaller pain :)

See also bug #21569 about the prism2_usb issues.

Changed in linux-wlan-ng:
status: Unconfirmed → Confirmed
Revision history for this message
Tormod Volden (tormodvolden) wrote :

The automatic unloading of the prism2_usb module at ifdown also breaks the Networking GUI, since the latter calls ifdown and ifup whenever you do a change.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Changes:
 linux-wlan-ng (0.2.3-1ubuntu6) dapper; urgency=low
 .
   * debian/linux-wlan-ng-post-down: Do not remove the modules in the
     if-post-down script. They are not supposed to be removed in the new udev
     world order, and this also breaks network-manager.

Changed in linux-wlan-ng:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.