[SOLVED] Compiling wireless compat for kernel 2.6.38-9
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
With the kernel shipped with Ubuntu Natty ( 2.6.38-9-generic ). I also applied the patches needed for WEP cracking
wl_frag+ack_v1.patch
nel-negative-one-maxim.patch
The problem is, the compliation process always return error, I tried going back with gcc 4.4 (as ubuntu 11.04 uses 4.5), it complies about some functions not declared. Here is the error:
Code:
CC [M] /home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.o
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c: In function ‘___ieee80211_stop_tx_ba_session’:
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:158: error: implicit declaration of function ‘kfree_rcu’
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:158: error: ‘rcu_head’ undeclared (first use in this function)
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:158: error: (Each undeclared identifier is reported only once
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:158: error: for each function it appears in.)
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c: In function ‘ieee80211_tx_ba_session_handle_start’:
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:317: error: ‘rcu_head’ undeclared (first use in this function)
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c: In function ‘ieee80211_stop_tx_ba_cb’:
/home/saeioul/compat-wireless-2011-05-04/net/mac80211/agg-tx.c:696: error: ‘rcu_head’ undeclared (first use in this function)
Before upgrading to Natty, I could compile the compat wireless. I should point out that I used an older version of wireless-compat, but that version also does not compile under the new kernel, and thats the reason I tried with the new version.
Any help will be appreciated, thanks in advance
Click here to see the post LQ members have rated as the most helpful post in this thread.
Hi, I also tried to patch against a version dated before may (the date of the patch), but unlike the other patches applied, this one does not list the offset or the lines that changed. Of course, it does not compile.
Any direction you can point to check for another patch maybe?
Have you tried an older version? I know the version I have listed in my blog worked without a hitch for me, and I used it for compiling many drivers for different chipsets. I would definitely try that before you go trying to apply a different version of a patch, and/or just a different patch in general.
Edit - Or, you can do what I did and modify the file manually and insert the changes by hand. The file might be a bit different, and that might be why it is giving you problems.
No problem man! If you have any questions regarding compat-wireless, ask away
Josh
Thanks very MUCHO for the link with the patch.
I have read the information, and seems correct, because the date is May the 5th, the same date on the wireless compat package. I'm starting to think that maybe I'm not applying correctly the patch. I have always patched like this:
Have you tried an older version? I know the version I have listed in my blog worked without a hitch for me, and I used it for compiling many drivers for different chipsets. I would definitely try that before you go trying to apply a different version of a patch, and/or just a different patch in general.
Edit - Or, you can do what I did and modify the file manually and insert the changes by hand. The file might be a bit different, and that might be why it is giving you problems.
Yep, I tried older versions of the wireless compat. I will try to introduce the changes by hand. In the meanwhile, can you tell me which version you used to compile?
To be completely honest with you, I normally look at the original file and hand edit like I said before. Could you post both the original file and the patch file? I can take a look to see if there is any compatibility issues, and even patch it for you and test it.
To be completely honest with you, I normally look at the original file and hand edit like I said before. Could you post both the original file and the patch file? I can take a look to see if there is any compatibility issues, and even patch it for you and test it.
Okay, here we go. It would be great if you can tell me how to read those patch files so I can do this in the future. The only thing I get is that the diff file has the offset in which the changes go.
The attachments are in .txt , as .c and .patch are not accepted.
To be completely honest with you, I normally look at the original file and hand edit like I said before. Could you post both the original file and the patch file? I can take a look to see if there is any compatibility issues, and even patch it for you and test it.
As I look through the files right now as I type, the way I do is open both the patch file and original file in two separate terminals, and I swithc between them, looking at the patch file and navigating to the lines identified in the file. From there, I just match the text that correlates with the correct position, and then I copy and paste. I hope that makes sense to you, I'm a horrible explainer
Haha, you beat me to it. The patch IS already applied. Maybe try reverting back to a previous version and go from there? It might be a compatibility issue, since compat-wireless is built around compatibility itself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.