Summary: | net-wireless/ipw3945 doesn't compile with kernel-2.6.19 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Scott Van Der Wall <omgponies3> |
Component: | New packages | Assignee: | Christian Heim (RETIRED) <phreak> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ford_prefect, jakub, juan, luca.botti.gentoo, misc, pacho, prlewis, radek, ryan, sgtphou, will.briggs |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 156669 | ||
Attachments: |
Patch to be applied to ieee80211-1.1.13
Patch to be applied to ipw3945-1.0.5 Patch to be applied to ieee80211-1.1.13 |
Description
Scott Van Der Wall
2006-12-04 04:27:53 UTC
*** Bug 157068 has been marked as a duplicate of this bug. *** Created attachment 103356 [details, diff]
Patch to be applied to ieee80211-1.1.13
Simple patch to make ieee80211-1.1.13 compile under 2.6.19
Created attachment 103360 [details, diff]
Patch to be applied to ipw3945-1.0.5
Patch that makes ipw3945-1.0.5 compile under kernel 2.6.19-r1
Comment on attachment 103356 [details, diff] Patch to be applied to ieee80211-1.1.13 >diff -urN original/ieee80211-1.1.13/ieee80211_crypt_ccmp.c modified/ieee80211-1.1.13/ieee80211_crypt_ccmp.c >--- original/ieee80211-1.1.13/ieee80211_crypt_ccmp.c 2006-03-31 11:12:02.000000000 +0200 >+++ modified/ieee80211-1.1.13/ieee80211_crypt_ccmp.c 2006-12-04 21:40:35.000000000 +0100 >@@ -8,8 +8,9 @@ > * published by the Free Software Foundation. See README and COPYING for > * more details. > */ >- >+#ifndef AUTOCONF_INCLUDED > #include <linux/config.h> >+#endif > #include <linux/module.h> > #include <linux/init.h> > #include <linux/slab.h> >diff -urN original/ieee80211-1.1.13/ieee80211_crypt_tkip.c modified/ieee80211-1.1.13/ieee80211_crypt_tkip.c >--- original/ieee80211-1.1.13/ieee80211_crypt_tkip.c 2006-03-31 11:12:02.000000000 +0200 >+++ modified/ieee80211-1.1.13/ieee80211_crypt_tkip.c 2006-12-04 21:41:10.000000000 +0100 >@@ -8,8 +8,9 @@ > * published by the Free Software Foundation. See README and COPYING for > * more details. > */ >- >+#ifndef AUTOCONF_INCLUDED > #include <linux/config.h> >+#endif > #include <linux/module.h> > #include <linux/init.h> > #include <linux/slab.h> >diff -urN original/ieee80211-1.1.13/ieee80211_crypt_wep.c modified/ieee80211-1.1.13/ieee80211_crypt_wep.c >--- original/ieee80211-1.1.13/ieee80211_crypt_wep.c 2006-03-31 11:12:02.000000000 +0200 >+++ modified/ieee80211-1.1.13/ieee80211_crypt_wep.c 2006-12-04 21:41:38.000000000 +0100 >@@ -8,8 +8,9 @@ > * published by the Free Software Foundation. See README and COPYING for > * more details. > */ >- >+#ifndef AUTOCONF_INCLUDED > #include <linux/config.h> >+#endif > #include <linux/module.h> > #include <linux/init.h> > #include <linux/slab.h> >diff -urN original/ieee80211-1.1.13/ieee80211_geo.c modified/ieee80211-1.1.13/ieee80211_geo.c >--- original/ieee80211-1.1.13/ieee80211_geo.c 2006-03-31 11:12:02.000000000 +0200 >+++ modified/ieee80211-1.1.13/ieee80211_geo.c 2006-12-04 21:42:10.000000000 +0100 >@@ -24,7 +24,9 @@ > > ******************************************************************************/ > #include <linux/compiler.h> >+#ifndef AUTOCONF_INCLUDED > #include <linux/config.h> >+#endif > #include <linux/errno.h> > #include <linux/if_arp.h> > #include <linux/in6.h> >diff -urN original/ieee80211-1.1.13/ieee80211_module.c modified/ieee80211-1.1.13/ieee80211_module.c >--- original/ieee80211-1.1.13/ieee80211_module.c 2006-03-31 11:12:02.000000000 +0200 >+++ modified/ieee80211-1.1.13/ieee80211_module.c 2006-12-04 21:29:22.000000000 +0100 >@@ -31,7 +31,9 @@ > *******************************************************************************/ > > #include <linux/compiler.h> >+#ifndef AUTOCONF_INCLUDED > #include <linux/config.h> >+#endif > #include <linux/errno.h> > #include <linux/if_arp.h> > #include <linux/in6.h> >diff -urN original/ieee80211-1.1.13/ieee80211_rx.c modified/ieee80211-1.1.13/ieee80211_rx.c >--- original/ieee80211-1.1.13/ieee80211_rx.c 2006-03-31 11:12:02.000000000 +0200 >+++ modified/ieee80211-1.1.13/ieee80211_rx.c 2006-12-04 21:55:36.000000000 +0100 >@@ -14,7 +14,9 @@ > */ > > #include <linux/compiler.h> >-#include <linux/config.h> >+#ifndef AUTOCONF_INCLUDED >+#include <linux/config.h> >+#endif > #include <linux/errno.h> > #include <linux/if_arp.h> > #include <linux/in6.h> >diff -urN original/ieee80211-1.1.13/ieee80211_tx.c modified/ieee80211-1.1.13/ieee80211_tx.c >--- original/ieee80211-1.1.13/ieee80211_tx.c 2006-03-31 11:12:02.000000000 +0200 >+++ modified/ieee80211-1.1.13/ieee80211_tx.c 2006-12-04 21:55:52.000000000 +0100 >@@ -24,7 +24,9 @@ > > ******************************************************************************/ > #include <linux/compiler.h> >-#include <linux/config.h> >+#ifndef AUTOCONF_INCLUDED >+#include <linux/config.h> >+#endif > #include <linux/errno.h> > #include <linux/if_arp.h> > #include <linux/in6.h> Created attachment 103369 [details, diff]
Patch to be applied to ieee80211-1.1.13
Fixed two comments that were left in from texting.
Fixed in CVS, thanks Scott. *** Bug 161047 has been marked as a duplicate of this bug. *** As Jakub points out, the same patch is required for ipw3945-1.1.0 as well. I have tried this and it works (I just used the existing 1.0.5 patch). *** Bug 164437 has been marked as a duplicate of this bug. *** *** Bug 164703 has been marked as a duplicate of this bug. *** Grumble... Plz. either unmask the fixed version or backport the fix; getting tired of the dupes. (Plus just 1.1.3-r2 will work correctly w/ WE21 AFAICT). *** Bug 164865 has been marked as a duplicate of this bug. *** (In reply to comment #12) > *** Bug 164865 has been marked as a duplicate of this bug. *** I did find this bug before, but didn't believe that it was the same problem. AFAICT this bug is a problem with compiling the driver. Mine related to this error: ipw3945: Error sending SCAN_ABORT_CMD: time out after 500ms ... It's not obvious (to me) if this is the same problem at all. (In reply to comment #13) > (In reply to comment #12) > > *** Bug 164865 has been marked as a duplicate of this bug. *** > > I did find this bug before, but didn't believe that it was the same problem. Considering that ipw3945 1.0.5 won't even compile against 2.6.19, I don't see why do we need a special bug for it. That version is dead. (In reply to comment #14) > (In reply to comment #13) > > (In reply to comment #12) > > > *** Bug 164865 has been marked as a duplicate of this bug. *** > > > > I did find this bug before, but didn't believe that it was the same problem. > > Considering that ipw3945 1.0.5 won't even compile against 2.6.19, I don't see > why do we need a special bug for it. That version is dead. Well ipw3945 1.0.5 from portage compiles against kernel 2.6.19 for me. I just get this error. Also, isn't the point of the stable portage tree that the stuff works? Why are incompatible versions of things in there? IMO upgrading *within* the stable tree shouldn't really break things. This thing shouldn't have been marked stable at all, first of all. Other than that, I fail to see how's this ranting useful here. Have you tried with ipw3945-1.2.0 version? I couldn't test it with 2.6.19 due suspend2 doesn't work for me with this kernel, but I am using ipw3945-1.2.0 on 2.6.18 without problems Good luck I think we should state clearly that to emerge correctly the 1.2.0 version, there are multiple steps involved: 1) Unmerge 2.6.19 gentoo sources 2) Unmerge ieee80211 ebuild 3) re-emerge gentoo-source 4) configure in-kernel 80211 support 5) emerge the ipw package This is caused by ieee80211 modifying the /usr/src/linux directory to accomodate patches; subsequent tries to emerge ipw3945 fail; also, you should use in-kernel 80211 support. Agreed! I also had to do the steps above to emerge ipw3945 (on vanilla-sources) and didn't know it's necessary... (In reply to comment #18) > I think we should state clearly that to emerge correctly the 1.2.0 version, > there are multiple steps involved <snip> Ah, thank you. I'll give that a try today. > I'll give that a try today.
Hmmm... okay, not quite.
I followed the instructions above, and now I get the following.
ipw3945d starts with no problems.
net.eth2 gives me the following on the console:
* Starting eth2
* Configuring wireless network for eth2
eth2 no wireless extensions.
* eth2 does not support scanning
* You either need to set a preferred_aps list in /etc/conf.d/wireless
* preferred_aps=( "ESSID1" "ESSID2" )
* and set associate_order_eth2="forcepreferred"
* or set associate_order_eth2="forcepreferredonly"
* or hardcode the ESSID to "any" and let the driver find an Access Point
* essid_eth2="any"
* or configure defaulting to Ad-Hoc when Managed fails
* adhoc_essid_eth2="WLAN"
* or hardcode the ESSID against the interface (not recommended)
* essid_eth2="ESSID"
* Failed to configure wireless for eth2
dmesg says:
ieee80211_crypt_wep: disagrees about version of symbol ieee80211_register_crypto_ops
ieee80211_crypt_wep: Unknown symbol ieee80211_register_crypto_ops
ieee80211_crypt_wep: disagrees about version of symbol ieee80211_unregister_crypto_ops
ieee80211_crypt_wep: Unknown symbol ieee80211_unregister_crypto_ops
eth2: could not initialize WEP: load module ieee80211_crypt_wep
ipw3945: Error sending SCAN_ABORT_CMD: time out after 500ms.
I tried again, and got the following:
* Starting eth2
* Configuring wireless network for eth2
Error for wireless request "Set Encode" (8B2A) :
SET failed on device eth2 ; Operation not supported.
* eth2 does not support setting keys
* or the parameter "mac_key_<ESSID>" or "key_<ESSID>" is incorrect
* Couldn't associate with any access points on eth2
* Failed to configure wireless for eth2
I have replaced the name of my ESSID with <ESSID>.
This time dmesg gives:
ieee80211_crypt_wep: disagrees about version of symbol ieee80211_register_crypto_ops
ieee80211_crypt_wep: Unknown symbol ieee80211_register_crypto_ops
ieee80211_crypt_wep: disagrees about version of symbol ieee80211_unregister_crypto_ops
ieee80211_crypt_wep: Unknown symbol ieee80211_unregister_crypto_ops
eth2: could not initialize WEP: load module ieee80211_crypt_wep
ipw3945: Error sending SCAN_ABORT_CMD: time out after 500ms.
ipw3945: Error sending LEDS_CMD: time out after 500ms.
ipw3945: Error sending LEDS_CMD: time out after 500ms.
I have removed the previous version of ieee80211 and am using the in-kernel version. Also, I have re-emerged ipw3945 (version 1.2.0). I am using the versions of ipw3945d and ipw3945-ucode from ~x86.
Thanks!
Just a quick reply to #21 - what i wrote is the procedure i applied to my dell d620; some more info: sys-kernel/gentoo-sources-2.6.19-r5 equery list ipw3945 [I--] [ ~] net-wireless/ipw3945-1.2.0 (0) [I--] [ ~] net-wireless/ipw3945-ucode-1.14.2 (0) [I--] [ ~] net-wireless/ipw3945d-1.7.22-r4 (0) Also check http://gentoo-wiki.com/HARDWARE_ipw3945 for details on configuring kernel. (In reply to comment #22) Excellent, thanks. After a cleanout of /lib/modules this did the trick. All appears to be working so far. Thanks for the help. 1.2.0 is stable now; closing. |