All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vitja Makarov <vitja.makarov@gmail.com>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: compat-wireless with CONFIG_MAC80211disabled
Date: Fri, 13 Feb 2009 14:47:31 +0300	[thread overview]
Message-ID: <1925ef8a0902130347i32905e04g439ed04d6c718594@mail.gmail.com> (raw)
In-Reply-To: <43e72e890902130023w3c192b04r3a41b4643eedb530@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 846 bytes --]

2009/2/13 Luis R. Rodriguez <mcgrof@gmail.com>:
> On Fri, Feb 13, 2009 at 12:15 AM, Vitja Makarov <vitja.makarov@gmail.com> wrote:
>> Hi!
>>
>> I was trying to build compat wireless for my arm board.
>> First of all I disabled CONFIG_MAC80211 in my kernel, and successfully
>> built compat-wireless.
>>
>> Then at runtime I get kernel panic.
>> Then I found that sk_buff in 2.6.28 depends on CONFIG_MAC80211, so
>> enabling it solves my problem.
>
> Ah nice catch. Well you're the first to try that and report it.
>
>> Shouldn't compat-wireless Makefile check kernel dot config for this
>> option as well as for wireless extension?
>
> Yes, Can you send a patch, put some nasty warn on config.mk if its not
> enabled on 2.6.28 and error out.
>
>  Luis
>

Here is patch, sorry for attachment, firewall here blocks all email
related ports.

vitja.

[-- Attachment #2: error-on-mac80211-disabled.diff --]
[-- Type: text/x-diff, Size: 1378 bytes --]

diff --git a/config.mk b/config.mk
index 49e82b3..f91f8f1 100644
--- a/config.mk
+++ b/config.mk
@@ -16,8 +16,6 @@ endif
 ifeq ($(CONFIG_MAC80211),y)
 $(error "ERROR: you have MAC80211 compiled into the kernel, CONFIG_MAC80211=y, as such you cannot replace its mac80211 driver. You need this set to CONFIG_MAC80211=m. If you are using Fedora upgrade your kernel as later version should this set as modular. For further information on Fedora see https://bugzilla.redhat.com/show_bug.cgi?id=470143. If you are using your own kernel recompile it and make mac80211 modular")
 endif
-# Wireless subsystem stuff
-CONFIG_MAC80211=m
 
 # We will warn when you don't have MQ support or NET_SCHED enabled.
 #
@@ -44,6 +42,12 @@ $(error "ERROR: Your 2.6.27 kernel has CONFIG_DYNAMIC_FTRACE, please upgrade you
 endif
 endif
 
+ifeq ($(shell test $(KERNEL_SUBLEVEL) -ge 28 && echo yes),yes)
+ifeq ($(CONFIG_MAC80211),)
+$(error "ERROR: Your >=2.6.28 kernel has CONFIG_MAC80211 disabled, you should have it CONFIG_MAC80211=m if you want to use this thing.")
+endif
+endif
+
 ifneq ($(KERNELRELEASE),) # This prevents a warning
 
 ifeq ($(CONFIG_NET_SCHED),)
@@ -59,6 +63,8 @@ endif
 endif # build check
 endif # kernel Makefile check
 
+# Wireless subsystem stuff
+CONFIG_MAC80211=m
 
 # choose between pid and minstrel as default rate control algorithm
 CONFIG_MAC80211_RC_DEFAULT=minstrel

  reply	other threads:[~2009-02-13 11:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-13  8:15 compat-wireless with CONFIG_MAC80211disabled Vitja Makarov
2009-02-13  8:23 ` Luis R. Rodriguez
2009-02-13 11:47   ` Vitja Makarov [this message]
2009-02-13 12:54   ` Vitja Makarov
2009-02-13 22:49     ` Luis R. Rodriguez
2009-02-14  2:43       ` pat-lkml
2009-02-14  3:08         ` Luis R. Rodriguez
2009-02-14  3:16           ` pat-lkml
2009-02-14  3:24             ` Luis R. Rodriguez

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=1925ef8a0902130347i32905e04g439ed04d6c718594@mail.gmail.com \
    --to=vitja.makarov@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.