linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Ketrenos <jketreno@linux.intel.com>
To: Dick <dm@chello.nl>
Cc: linux-wireless@vger.kernel.org
Subject: Re: mac80211-7.0.4 ieee80211_ptr trouble
Date: Mon, 23 Apr 2007 10:13:51 -0700	[thread overview]
Message-ID: <462CE94F.6020505@linux.intel.com> (raw)
In-Reply-To: <1177144052.9892.8.camel@localhost>

Dick wrote:
> Hi all,
> 
> I'm trying to compile compatible mac80211 modules with
> linux-2.6.20-gentoo-r6 but I'm missing the ieee80211_ptr in struct
> net_device.
> 
> /var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_get_hw_features':
> /var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:119: fout: 'struct net_device' has no member named 'ieee80211_ptr'
> /var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c: In functie 'ieee80211_ioctl_scan':
> /var/tmp/portage/net-wireless/mac80211-7.0.4/work/mac80211-7.0.4/compatible/net/mac80211/ieee80211_ioctl.c:172: fout: 'struct net_device' has no member named 'ieee80211_ptr'
> 
> What am I doing wrong, what happened to ieee80211_ptr?

I have pristine 2.6.20-gentoo-r6 sources here (via 'ACCEPT_KEYWORDS=~amd64 emerge -av gentoo-sources') and am not seeing the above with a manual install of mac80211-7.0.4:

% cd mac80211-7.0.4
% make KSRC=/usr/src/linux-2.6.20-gentoo-r6 clean patch_kernel
% cd /usr/src/linux-2.6.20-gentoo-r6
% make menuconfig   # turned on MAC80211
% make -j9 ; make -j9 modules

No errors during compilation.

I haven't tried using mac80211 Gentoo packages.  

Given that it works when done pristine, and that its failing with the ebuild, I'm guessing ebuild isn't quite right.  The mac80211 build generates a source image specific to your target kernel.  If the wrong target kernel is used as the source during the creation of the 'compatible' build target, the resulting build will fail.

It looks like with your system, compatible/ was built for a kernel that already has ieee80211_ptr defined in include/linux/netdevice.h.

James

  parent reply	other threads:[~2007-04-23 17:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-21  8:27 mac80211-7.0.4 ieee80211_ptr trouble Dick
2007-04-21 18:56 ` John W. Linville
2007-04-21 19:54   ` Johannes Berg
     [not found]     ` <1177186573.13434.5.camel@localhost>
2007-04-21 20:23       ` Johannes Berg
2007-04-23 17:13 ` James Ketrenos [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-04-22 20:51 Dick Marinus
2007-04-23 17:33 ` James Ketrenos
2007-04-23 19:33   ` Dick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=462CE94F.6020505@linux.intel.com \
    --to=jketreno@linux.intel.com \
    --cc=dm@chello.nl \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).