LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-08-2007, 06:54 AM   #1
jalla
Member
 
Registered: Oct 2003
Posts: 33

Rep: Reputation: Disabled
mac80211 and nla_put_flag.patch


Hi,

I am trying to install the driver 3945ABG/BG for which I need mac80211. I am trying to follow instruction in README and get the following error:
Code:
Building compatibility version in 'compatible/' directory:
Copying compatible/ from modified/...done
 + Applying: patches/qdisc-api.patch
        Use older qdisc API for qdisc_create_dflt
 + Applying: patches/block-cipher.patch
        Switch crypto system to older non-block cipher algorithms.
 + Applying: patches/delayed_work.patch
        Add delayed_work structure compatibility.
 + Running: delayed_work.sh
        Use compat_ delayed_work functions to fix argument issues.
 + Applying: patches/rtnl_notify.patch
        Use netlink_broadcast vs. rtnl_notify
 + Applying: patches/class_dev_to_dev-wireless.patch
        Reverse class_dev to dev changes
 + Applying: patches/dev_release.patch
        Legacy device.h API (dev_uevent, dev_release, dev_attrs)
 + Applying: patches/net_sch_fifo.patch
        Add pfifo_qdisc if kernel doesn't support explicit CONFIG_NET_SCHED_FIFO
 + Applying: patches/skb_mac_header.patch
        diff -upr origin/net/mac80211/ieee80211.c update/net/mac80211/ieee80211.c
 + Running: ilog2.sh
        IEEE80211_STYPE_QOS_DATA's mask is 0x0080
 + Applying: patches/seq_open_const.patch
        diff -upr linux-2.6.18-gentoo-r6/net/wireless/wext.c linux-2.6.18-gentoo-r6-building/net/wireless/wext.c
 + Applying: patches/tcf_destroy_chain.patch
        Add tcf_destroy_chain to mac80211's wme.c
 + Applying: patches/nla_put_flag.patch
        NLA_PUT_FLAG used to has 3 parameters instead of 2
-----patch failure output-----
can't find file to patch at input line 6
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|NLA_PUT_FLAG used to has 3 parameters instead of 2
|---
|diff -urp old/net/wireless/nl80211.c compatible/net/wireless/nl80211.c
|--- old/net/wireless/nl80211.c 2007-07-05 15:30:01.000000000 +0800
|+++ compatible/net/wireless/nl80211.c  2007-07-05 15:31:38.000000000 +0800
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
2 out of 2 hunks ignored

patches/nla_put_flag.patch failed. Terminating.
If patch or script failed, check pre/ and post/ for current stage.
make: *** [compatible/modified] Error 1
The content of patch file is:
Code:
 NLA_PUT_FLAG used to has 3 parameters instead of 2
  2 ---
  3 diff -urp old/net/wireless/nl80211.c compatible/net/wireless/nl80211.c
  4 --- old/net/wireless/nl80211.c  2007-07-05 15:30:01.000000000 +0800
  5 +++ compatible/net/wireless/nl80211.c   2007-07-05 15:31:38.000000000 +0800
  6 @@ -110,7 +110,7 @@ static struct nla_policy nl80211_policy[
  7 
  8  #define CHECK_CMD(ptr, cmd)                            \
  9         if (drv->ops->ptr)                              \
 10 -               NLA_PUT_FLAG(msg, NL80211_CMD_##cmd);
 11 +               NLA_PUT_FLAG(msg, NL80211_CMD_##cmd, 0);
 12 
 13  static int nl80211_get_cmdlist(struct sk_buff *skb, struct genl_info *info)
 14  {
 15 @@ -139,10 +139,10 @@ static int nl80211_get_cmdlist(struct sk
 16 
 17         /* unconditionally allow some common commands we handle centrally
 18          * or where we require the implementation */
 19 -       NLA_PUT_FLAG(msg, NL80211_CMD_GET_CMDLIST);
 20 -       NLA_PUT_FLAG(msg, NL80211_CMD_GET_WIPHYS);
 21 -       NLA_PUT_FLAG(msg, NL80211_CMD_GET_INTERFACES);
 22 -       NLA_PUT_FLAG(msg, NL80211_CMD_RENAME_WIPHY);
 23 +       NLA_PUT_FLAG(msg, NL80211_CMD_GET_CMDLIST, 0);
 24 +       NLA_PUT_FLAG(msg, NL80211_CMD_GET_WIPHYS, 0);
 25 +       NLA_PUT_FLAG(msg, NL80211_CMD_GET_INTERFACES, 0);
 26 +       NLA_PUT_FLAG(msg, NL80211_CMD_RENAME_WIPHY, 0);
 27 
 28         CHECK_CMD(add_virtual_intf, ADD_VIRTUAL_INTERFACE);
 29         CHECK_CMD(del_virtual_intf, DEL_VIRTUAL_INTERFACE);
I am quite new to linux and would really like to get the wireless networking working. Appreciate any help.
 
Old 10-09-2007, 04:15 AM   #2
jalla
Member
 
Registered: Oct 2003
Posts: 33

Original Poster
Rep: Reputation: Disabled
anyone pls?
 
Old 10-18-2007, 03:33 AM   #3
christophre
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
have you solved this?

i am having the same problem (centos 5.0, stock kernel). the same thing happens when using the kernel source tree from the kernel SRPM (since RH doesn't publish kernel-source RPMS anymore).
 
Old 10-18-2007, 03:41 AM   #4
jalla
Member
 
Registered: Oct 2003
Posts: 33

Original Poster
Rep: Reputation: Disabled
no, haven't solved it yet. I have both CentOS and Vista and am using Vista for the time being, unfortunately.
 
Old 10-18-2007, 03:43 AM   #5
jalla
Member
 
Registered: Oct 2003
Posts: 33

Original Poster
Rep: Reputation: Disabled
Just guessing: it may look like nl80211.c is missing from the source tree...
 
Old 10-18-2007, 02:31 PM   #6
christophre
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by jalla View Post
Just guessing: it may look like nl80211.c is missing from the source tree...
AFAIK, that's exactly what is happening, but since i'm using centos, which uses a heavily patched kernel (AFAIK), i'd prefer to use the kernel source from the distro. this leaves me kind of stuck.

i did, however, notice that RHEL 5.1 beta has a patched kernel (still just 2.6.18 as its basis) that incorporates mac80211 and iw4965, but it's supposed to be very experimental (and it looks like it too...). i just tried that and, after hours of poking and a forced installation of the hotplug functionality missing from centos (!?), i actually got something "working." i couldn't figure out how it could load the firmware microcode otherwise. anyway, it eventually crashed out and made the system think that i was holding down the "P" key, repeating "P"s into every field in my desktop on which i focused! blargh!

long story short, it doesn't look like centos and the 4965AGN play very nicely together at all.

please do respond to this thread if you (anyone!) get's it working properly.

thanks!
 
Old 10-21-2007, 01:48 PM   #7
jalla
Member
 
Registered: Oct 2003
Posts: 33

Original Poster
Rep: Reputation: Disabled
I downloaded the vanilla source (2.6.23.1) which has mac80211 included and built the new kernel with support for it. But I can't boot it. Get the error msg (something about ext3.ko, that it could not be loaded).
Any hints?
 
Old 10-22-2007, 11:30 AM   #8
jalla
Member
 
Registered: Oct 2003
Posts: 33

Original Poster
Rep: Reputation: Disabled
I got it working finally. Do these steps:

Code:
sudo rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
sudo yum -y install dkms dkms-ipw3945 ipw3945d ipw2945-firmware
sudo reboot
If you need a WPA key for your network, you can fix it with system-config-network.

Good luck.
 
  


Reply

Tags
mac80211, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
patch problem - can't find file to patch jnutt Linux - Kernel 3 02-10-2010 03:45 PM
bcm43xx-mac80211 issue mercnet Linux - Hardware 2 06-21-2007 09:18 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration