card is not recognized in live session

Bug #185179 reported by Tormod Volden
4
Affects Status Importance Assigned to Milestone
linux-wlan-ng (Baltix)
Fix Released
Undecided
Unassigned
linux-wlan-ng (Ubuntu)
Fix Released
Undecided
Tormod Volden

Bug Description

Binary package hint: linux-wlan-ng

Even after installing the linux-wlan-ng package in a live session, the card is not ready to be used. External adapters can be replugged and will then be initialized, but for hard-wired internal cards it is more complicated. Either the udev rule that does the initialization must be retriggered (reloading the module is one option) or the initialization must be run explicitely. This can for instance be done in the post-installation script.

Revision history for this message
Zameer Manji (zmanji) wrote :

I proposed on the -devel mailing list that this package should be installed by default because it is needed to make the cards work with Ubuntu infrastructure. That in combination with an initialization script that runs on boot should fix the problem.

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

Can you please test the attached package (I hope you are using i386) in a live session? It runs the wlan-udev.sh for all prism2 devices in its postinst script. Seems to work fine with my adapter.

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

Just for the record and anyone interested, this was added to the postinst in the above package:

# Initialize cards that already have modules loaded:
# replay udev rules for all prism2 interfaces

WLAN_UDEV=1

. /etc/wlan/shared

for i in /sys/class/net/* ; do
    if ls -l $i/device/driver 2>/dev/null | grep -q /prism2_ ; then
        echo Trying to kick off device ${i#/sys/class/net/}
        /etc/wlan/wlan-udev.sh ${i#/sys/class/net/}
    fi
done

Revision history for this message
Zameer Manji (zmanji) wrote :

Your package on the gutsy i386 desktop livecd failed.
Here is the dpkg output

ubuntu@ubuntu:/media/Files$ sudo dpkg -i linux-wlan-ng_0.2.8+svn1839+dfsg-2ubuntu0tv1_i386.deb
Selecting previously deselected package linux-wlan-ng.
(Reading database ... 92004 files and directories currently installed.)
Unpacking linux-wlan-ng (from linux-wlan-ng_0.2.8+svn1839+dfsg-2ubuntu0tv1_i386.deb) ...
Setting up linux-wlan-ng (0.2.8+svn1839+dfsg-2ubuntu0tv1) ...
Trying to kick off device wlan0
/sbin/prism2dl not found, aborting firmware download.
Failed to enable the device, resultcode= implementation_failure .

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

> Failed to enable the device, resultcode= implementation_failure .

Thanks for testing! This is in fact due to another issue, some timing problem. Most of the time, calling "enable" twice make it work. Can you please try this package?

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

This package has a second "enable".

Changed in linux-wlan-ng:
assignee: nobody → tormodvolden
status: Confirmed → In Progress
Revision history for this message
Zameer Manji (zmanji) wrote :

I tested out your new package, and it managed to install without problem. iwconfig reported that a wlan0 device existed and after a little bit of time the Network Manager applet had a drop down list of wireless networks to connect to. However when selecting a network to connect to the applet would just report connecting. No connection was made, and I was unable to ping anything.

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

The driver is been fixed upstream, so it doesn't even need the linux-wlan-ng package, see http://lists.linux-wlan.com/pipermail/linux-wlan-devel/2008-January/003744.html
Hopefully the hardy version will be updated soon.

I also hope it will fix your connection trouble. If you want to test, I'll attach new modules here. You'll have to stop the network, take down the card:
 sudo ifdown wlan0
 sudo modprobe -r prism2_usb
 sudo modprobe -r p80211
Now unpack the tar.gz and load the modules:
 tar zxvf linux-wlan-ng_modules_r1847_2.6.22-14-generic.tar.gz #or use Archive Manager
 sudo insmod ./p80211 wlan_wext_write=1
 sudo insmod ./prism2_usb

For an installed system (not live CD) you can replace the old modules in /lib/modules/2.6.22-14-generic/ubuntu/wireless/prism2_usb/prism2_usb.ko and /lib/modules/2.6.22-14-generic/ubuntu/wireless/p80211/p80211.ko with these ones and reboot.

For the live CD, I just hope the kernel version matches 2.6.22-14...

Revision history for this message
Zameer Manji (zmanji) wrote :

Have the upstream changes been placed in Debian ? If so, then a sync could be requested. If not, I guess a packaging request must be made in order for this to get into Hardy.

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

No, it's not yet in Debian, but that doesn't matter much since the kernel module source is imported directly into the linux-ubuntu-modules git, and not via the linux-wlan-ng package. Sync request has already been filed in bug #186062.

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

The new kernel modules are now in Hardy, and the linux-wlan-ng package is no longer needed (except if you need firmware RAM loading).

linux-ubuntu-modules-2.6.24 (2.6.24-7.12) hardy; urgency=low

  [Tim Gardner]

  * Updated prism2_usb to current upstream.
  * ALSA 1.0.16

 -- Tim Gardner < <email address hidden>> Tue, 05 Feb 2008 17:04:24 -0700

Changed in linux-wlan-ng:
status: In Progress → Fix Released
Przemek K. (azrael)
Changed in linux-wlan-ng (Baltix):
status: New → 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.