prism2 doesn't work with network-manager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-wlan-ng (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-wlan-ng
On the upstream mailing list there is a patch to make linux-wlan-ng work with network-manager:
http://
The patch should be applied to the kernel source p80211wext.c file.
To make it work, the wlan_wext_write option must be enabled:
$ cat /etc/modprobe.
# make prism2 wifi work with network-manager
options p80211 wlan_wext_write=1
Tormod Volden (tormodvolden) wrote : | #1 |
Tormod Volden (tormodvolden) wrote : | #2 |
For those who want to test this on Feisty, I have compiled the modules here:
http://
(Don't ask me why my modules are so big compared to the original ones. It must be something with the way I compiled them - I tried to avoid compiling the whole kernel.)
Tormod Volden (tormodvolden) wrote : | #3 |
(the modules got a normal size when I ran strip --strip-debug on them)
With this patch and network-manager, the linux-wlan-ng package is only needed for its udev rule which calls
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
when the device is detected.
Jose Baeza (baeza-jos) wrote : | #4 |
Please, add compiled modules for final kernel 2.6.20-15-generic.
theubuntuna (www-x86-com) wrote : | #5 |
I really need compiled modules for kernel 2.6.20-15-generic! Please!!
Tormod Volden (tormodvolden) wrote : | #6 |
Due to popular demand, here are the two compiled modules for 2.6.20-15-generic. Copy this first one to /lib/modules/
Tormod Volden (tormodvolden) wrote : | #7 |
Copy this one to /lib/modules/
(Making backups of the original prism2.ko and p80211.ko before copying would not hurt.)
Tormod Volden (tormodvolden) wrote : | #8 |
- /etc/modprobe/linux-wlan-ng for network-manager Edit (78 bytes, text/plain)
Finally copy this file to /etc/modprobe.d/
Now run "sudo depmod -a", and either unload/reload the modules, or reboot.
Please report the results!
One known issue: network-manager will not connect automatically to "hidden" networks.
Jose Baeza (baeza-jos) wrote : | #9 |
Didn't work for me (Acer Warplink 802.11B usb). Previously, I had to "ifdown" manually after disconnecting the device. After updating the modules and the file in /etc/modprobe.d, the device still is recognized in lsusb, but is not configured at all, in spite the configuration is manually set up in /etc/network/
Fortunately, I backed up the original files !
Tormod Volden (tormodvolden) wrote : | #10 |
Jose, so the new modules make things worse? They should not change any existing functionality, only add more "wireless extensions" for network-manager. Can you look for more information in /var/log/syslog after you have plugged in the card?
Jose Baeza (baeza-jos) wrote : | #11 |
The net usb device is inside my laptop. I only switch it on/off with an slide button.
Do you want the syslog with the original modules or the patched ones? ... or both?
Tormod Volden (tormodvolden) wrote : | #12 |
Especially the one with patched modules, both would be nice too.
theubuntuna (www-x86-com) wrote : | #13 |
They didn't work for me either. I am also relatively new to ubuntu, so i just followed the instructions. I have a Netgear MA111v1 802.11b
theubuntuna (www-x86-com) wrote : | #14 |
also- is there any way that you could put the WORKING files in a .deb package? it would make it a lot easier for me because I frequently reinstall an OS.
Tormod Volden (tormodvolden) wrote : | #15 |
theubuntuna, what do you mean by "WORKING" files?
Philipp Schlesinger (philipp-sadleder) wrote : | #16 |
Consider updating to the latest upstream release [1], which has support for NetworkManager:
0.2.8
- Fix up a pile of sparse warnings (Pavel Roskin)
- Support 2.6.20 kernels (Pavel Roskin)
- Tweaks to the udev rules (Richard Kennedy)
- Silence a large pile of warnings with GCC4.1
- pt_regs is gone for USB as well on 2.6.19+ (Chris Rankin)
- Large WEXT patch that allows use of NetworkManager. (Richard Kennedy)
Tormod Volden (tormodvolden) wrote : | #17 |
Jose and theubuntuna, the modules were built for -i386, I hope you don't have -amd64. If we are to investigate your problems further we need more information from you than just "doesn't work".
Philipp, I also compiled the upstream 0.2.8, but the resulting modules failed on loading with an "INITWORK2" error. The patches I used here are the same as in the 0.2.8 version. Anyway, a Ubuntu package of 0.2.8 will hopefully arrive soon, it's already in Debian unstable.
theubuntuna (www-x86-com) wrote : | #18 |
don't worry- i have i386. I'm also sorry I was not more specific with "working" files. I meant that when the bug is fixed and everything is working correctly. Here is my problem: after i plug in my device, i need to select 'connect to other wireless network', then i enter all of that info, then i click 'connect'. After that i left-click on thenetwork manager icon in the top right corner and click on my network. then it prompts me to enter my encryption code again, i do that, even though i alredy did that in the 'connect to other wireless network' dialog. Then i repeat the step several times untill the "enter encryoption key" stops appearing. I have a WEP encrypted network. Is this enough info?
Tormod Volden (tormodvolden) wrote : | #19 |
It should be enough to enter the network name and WEP key once in 'connect to other wireless network'. Can you attach your /var/log/syslog ? And what is the output from "cat /sys/module/
theubuntuna (www-x86-com) wrote : | #20 |
Tormod Volden (tormodvolden) wrote : | #21 |
If you don't have the /sys/module/
theubuntuna (www-x86-com) wrote : | #22 |
theubuntuna (www-x86-com) wrote : | #23 |
Tormod Volden (tormodvolden) wrote : | #24 |
Please run "dmesg > dmesg.txt" after plugging in/turning on the card, and attach dmesg.txt
And run "tar zcf sys-mod-p80211.tgz /sys/module/p80211" and attach sys-mod-p80211.tgz
theubuntuna (www-x86-com) wrote : | #25 |
Sorry, but i don't quite understand what you want me to do. Could you please be a little more specific with your instructions. as i said earlier, I am relatively new to ubuntu, so i only have a very small idea of what you want me to do. Don't you have to run somthing in a terminal?
theubuntuna (www-x86-com) wrote : | #26 |
- F:\dmesg.txt Edit (24.8 KiB, text/plain)
I'm sorry, but please disregard everything i said in my last post. once i took a closer look at everything on my system, and your instructions, i figured it out. I was in a rush at that moment.
Here is dmesg
theubuntuna (www-x86-com) wrote : | #27 |
Tormod Volden (tormodvolden) wrote : | #28 |
Unfortunately I can not see the card initialize in your dmesg output. Did you unplug it and replug it before running the dmesg command? Does the card work with manual configuration?
theubuntuna (www-x86-com) wrote : | #29 |
Sorry, forgot to mention it's a usb device. Also, it does not work with manual config. and do i run the dmesg command immediatly after plugging in the device?
Tormod Volden (tormodvolden) wrote : | #30 |
If your card doesn't work anyway, network-manager is not going to help. Please file a new bug, or support request. (Wait at least 10 seconds after plugging in before running dmesg)
theubuntuna (www-x86-com) wrote : | #31 |
I'm going to try the dmesg command one more time and post the output. Last time i ran it immediatly after i plugged in the card.
Tormod Volden (tormodvolden) wrote : | #32 |
theubuntuna, please post the new dmesg, together with the URL of your support request or new bug. This bug report is about the network manager patch, and you have another issue. It just adds confusion to this report.
theubuntuna (www-x86-com) wrote : | #33 |
this may dissapoint you, but i have swiched back to M$. I do think that ubuntu is cool, but this error crap is stupid.
Hello Microsoft Windows XP!
Sal (salty72) wrote : | #34 |
Hi Tormod,
I tried the patches you provided and they seem to work, albeit only for a couple of seconds. I've replaced the files and the configuration file for linux-wlan-ng. Upon connecting a Microsoft MN-510 USB devices, the system recognizes it and enables its wireless functionality. I've confirmed this through the execution of Network Manager and 'iwconfig'. After two or three seconds, it appears that the device does its scan for networks, then the wireless functionality is disabled. The command 'iwconfig' replies indicating no wireless extensions and network manager thinks that the device is a wired network interface.
I can re-enable the wireless functionality of the device by executing the following 'wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable'.
Then both the network manager and 'iwconfig' recognize the wireless capability of the device.
Any suggestions? I need to configure this for non-expert users that just need it to work during boot-up and after suspend.
If I try to configure the device with my wireless settings, then the device loses its wireless capability and becomes a wired device in network-manager and has no wireless extensions in 'iwconfig'. After that, nothing works with the USB device; even trying 'wlanctl-ng ...' described earlier cannot enable the wireless functionality again.
Tormod Volden (tormodvolden) wrote : | #35 |
Sal, thanks for testing. These problems sounds like a network-manager bug I have seen, where it takes down the interface after a few seconds. However, I haven't seen this in recent updates. You have fully updated your system, right? How can you tell that "network manager thinks that the device is a wired network interface"? Please attach /var/log/syslog. Is your network adapter stable with manual configuration (network-admin)?
Tormod Volden (tormodvolden) wrote : | #36 |
The user utilities should now have been fixed in Gutsy with the release of 0.2.8+dfsg-
Changed in linux-wlan-ng: | |
status: | Unconfirmed → In Progress |
Tormod Volden (tormodvolden) wrote : | #37 |
> With this patch and network-manager, the linux-wlan-ng package is only needed for its udev rule which calls wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable when the device is detected.
The linux-wlan-ng packages are also needed for ram loading of firmware which is essential for some cards...
Sal (salty72) wrote : | #38 |
Hi Tormod,
I'm responding to the post from you on 2007-05-18.
Sorry for the late reply. I was out of town for a few days.
In response to your questions:
1. The system is fully up-to-date according to the Update Manager response (including updating the repository information).
2. My conclusion that the network manager is changing its assessment from wireless to wired is based on the image in front of the interface and the properties field when I click to configure the interface. When it is wireless, the wireless interface icon appears and the properties allow the configuration of the ESSID, key, etc... When network manager shows the wired icon, the only properties available are the ip fields.
3. I am not near the computer at the moment, so I will upload the syslog tonight (EST).
Thanks.
Tormod Volden (tormodvolden) wrote : | #39 |
Sal, I guess you mean network-admin then. Network-Manager is the little icon on the top right of your desktop. It has a menu entry "Manual configuration" which takes you to network-admin, which you can also access from System -> Administration -> Network
If you have trouble with network-admin, without using Network-Manager, it has probably nothing to do with the patches in this bug report.
If you configure your card manually with network-admin, the configuration is written to /etc/network/
Tormod Volden (tormodvolden) wrote : | #40 |
- patched modules built for 2.6.20-16-generic Edit (50.8 KiB, application/x-tar)
For testing, here are modules for the 2.6.20-16-generic kernel.
Sal (salty72) wrote : | #41 |
Hi Tormod,
I tried the patched modules with the latest kernel version and the wireless device MN-510 works perfectly.
I performed a manual update, installed your modules by executing the provided README file.
The wireless connection was verified by connecting to servers in the local area network and wide area network (by disabling the wired connection to ensure that the wireless was workig properly).
If there is anything I can do to help test, please let me know.
Thanks for your help!
~Sal
Tormod Volden (tormodvolden) wrote : | #42 |
Hi Sal, I am glad to hear that. Thanks for trying it out. If you want to test more, it would be nice if you could test Gutsy, or install the Gutsy linux-wlan-ng package in your Feisty.
Stefan (ubuntu-trittler) wrote : | #43 |
Thanks very much for the patched modules, now works for me with 2.6.20-16-generic kernel and Netgear MA111 v1 USB.
Had to change a couple of settings (i.e. deactivate roaming mode), but it seems to be working fine with WEP now (after entering the key as xx:xx:xx:xx:... instead of xxxxxxx...).
Some error messages can be found in the logs though, i.e.
dmesg:
[ 36.673137] p80211: no version for "struct_module" found: kernel tainted.
[ 710.006358] hfa384x_
[ 710.006368] prism2sta_
There seem to be some issues when switching users (i.e. network strength icon vanishes), but as long as it works, this is ok for me.
Tormod Volden (tormodvolden) wrote : | #44 |
Stefan, are you sure you need to enter the WEP key as xx:xx:xx...? This was fixed in an earlier version, so it would be a bug.
If you deactivate roaming mode, then you are not using these patches! Are you using "Manual configuration..." (network-admin)?
Tormod Volden (tormodvolden) wrote : | #45 |
It seems like the prism2 modules shipped with linux-ubuntu-
Tormod Volden (tormodvolden) wrote : | #46 |
The debdiff in bug #114793 fixes all user-land issues. Only the kernel modules needs to be fixed. I leave this bug open anyway, so people can find it and test the attached modules.
Changed in linux-wlan-ng: | |
status: | In Progress → Confirmed |
Tormod Volden (tormodvolden) wrote : | #47 |
The prism2 modules shipped with linux-ubuntu-
Marcos (marcosrdz) wrote : | #48 |
do the precompiled modules work on Feisty amd64?
Tormod Volden (tormodvolden) wrote : | #49 |
Kernel modules have to match the exact kernel version. The attached modules were built for the -generic kernel.
For other kernels, you can either download the kernel source package, patch it with the patch above and build the modules, or you can download the linux-wlan-
Tormod Volden (tormodvolden) wrote : | #50 |
From bug #114793 it seems that the linux-wlan-
Tormod Volden (tormodvolden) wrote : | #51 |
For the broken kernel modules in Gutsy, please see bug #121959.
Tormod Volden (tormodvolden) wrote : | #52 |
Gutsy finally has working kernel modules again, which can work with network-manager. The only piece missing for out-of-the-box plug-and-play with network-manager will be fixed by the debdiff in bug 114793.
Tormod Volden (tormodvolden) wrote : | #53 |
Now that Gutsy finally has 0.2.8+svn1832+
linux-wlan-ng (0.2.8+
[ Tormod Volden ]
* Merge from Debian unstable, remaining changes:
- Ubuntu maintainer fields in control.*
- debian/control updates concerning modules in Ubuntu kernels
- etc/Makefile: no hotplug agent in Ubuntu
- etc/rc.wlan: say p80211.ko instead of p80211.o
* debian/
in Ubuntu (LP: #115580)
* wlan-udev.sh: remove dbus-send call
* debian/rules: rename local TMPDIR variable which clashes with the
environment variable of the same name (LP: #128002)
* Ubuntu bugs resolved in new Debian version:
- debian/
network-
Changed in linux-wlan-ng: | |
status: | Confirmed → Fix Released |
Jakub 'Livio' Rusinek (liviopl-pl) wrote : | #54 |
SHOULD work, but doesn't...
Neither wireless extension support or NM support is provided by this driver (prism2_usb).
Tormod Volden (tormodvolden) wrote : | #55 |
Jakob, please file a new bug where you explain what you see, error messages, lsusb and dmesg output and so on.
Here is the mentioned patch, modified to apply cleanly on linux-source- 2.6.20_ 2.6.20- 14.22.