linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems with 2.6.30-rc1
       [not found]     ` <20090408192634.GB3717@samweis.home.lxtec.de>
@ 2009-04-08 21:18       ` Larry Finger
  2009-04-09  3:59         ` gavron
  2009-04-09 10:37         ` Sedat Dilek
  0 siblings, 2 replies; 3+ messages in thread
From: Larry Finger @ 2009-04-08 21:18 UTC (permalink / raw)
  To: bcm43xx-dev; +Cc: wireless


If you are having problems with wireless networking using 2.6.30-rc1 from
Linus's Linux-2.6 git tree, the fix is the following (Note: This is _NOT_ needed
for wireless-testing!!!):

---
Fix try_then_request_module to use waiting __request_module again.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
---
 include/linux/kmod.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.30-rc1/include/linux/kmod.h
===================================================================
--- linux-2.6.30-rc1.orig/include/linux/kmod.h	2009-04-08 12:47:54.000000000 +0200
+++ linux-2.6.30-rc1/include/linux/kmod.h	2009-04-08 17:39:35.000000000 +0200
@@ -34,7 +34,7 @@ extern int __request_module(bool wait, c
 #define request_module(mod...) __request_module(true, mod)
 #define request_module_nowait(mod...) __request_module(false, mod)
 #define try_then_request_module(x, mod...) \
-	((x) ?: (__request_module(false, mod), (x)))
+	((x) ?: (__request_module(true, mod), (x)))
 #else
 static inline int request_module(const char *name, ...) { return -ENOSYS; }
 static inline int request_module_nowait(const char *name, ...) { return -ENOSYS; }

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems with 2.6.30-rc1
  2009-04-08 21:18       ` Problems with 2.6.30-rc1 Larry Finger
@ 2009-04-09  3:59         ` gavron
  2009-04-09 10:37         ` Sedat Dilek
  1 sibling, 0 replies; 3+ messages in thread
From: gavron @ 2009-04-09  3:59 UTC (permalink / raw)
  To: Larry Finger; +Cc: bcm43xx-dev, wireless

I had the same problem on my iwlagn notebook.  This patch successfully 
fixed that as well!

Thanks, Larry :)

Ehud

Larry Finger wrote:
> If you are having problems with wireless networking using 2.6.30-rc1 from
> Linus's Linux-2.6 git tree, the fix is the following (Note: This is _NOT_ needed
> for wireless-testing!!!):
>
> ---
> Fix try_then_request_module to use waiting __request_module again.
>
> Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
> ---
>  include/linux/kmod.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-2.6.30-rc1/include/linux/kmod.h
> ===================================================================
> --- linux-2.6.30-rc1.orig/include/linux/kmod.h	2009-04-08 12:47:54.000000000 +0200
> +++ linux-2.6.30-rc1/include/linux/kmod.h	2009-04-08 17:39:35.000000000 +0200
> @@ -34,7 +34,7 @@ extern int __request_module(bool wait, c
>  #define request_module(mod...) __request_module(true, mod)
>  #define request_module_nowait(mod...) __request_module(false, mod)
>  #define try_then_request_module(x, mod...) \
> -	((x) ?: (__request_module(false, mod), (x)))
> +	((x) ?: (__request_module(true, mod), (x)))
>  #else
>  static inline int request_module(const char *name, ...) { return -ENOSYS; }
>  static inline int request_module_nowait(const char *name, ...) { return -ENOSYS; }
>
>   

-- 
Legal Disclaimer that you are now contractually bound to under all laws with no recourse:
http://attrition.org/security/rants/z/disclaimers.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems with 2.6.30-rc1
  2009-04-08 21:18       ` Problems with 2.6.30-rc1 Larry Finger
  2009-04-09  3:59         ` gavron
@ 2009-04-09 10:37         ` Sedat Dilek
  1 sibling, 0 replies; 3+ messages in thread
From: Sedat Dilek @ 2009-04-09 10:37 UTC (permalink / raw)
  To: Larry Finger; +Cc: bcm43xx-dev, wireless

=46YI: For Linux-2.6.30-rc1 vanilla kernel users

In the meantime Andreas Schwab's Patch is applied into Rusty Russell's
"linux-2.6-module-and-param.git" GIT-branch (see [0], [1] and [2]):

"module: fix try_then_request_module"

Impact: fix wireless modules, broken by acae05156551fd7528fbb616271e672=
789388e3c

=46ix try_then_request_module to use waiting __request_module again.

Hope this patch will be applied to Linus GIT-tree soon.

-- Sedat

[0] http://marc.info/?l=3Dlinux-kernel&m=3D123924185913668&w=3D2
[1] module: fix try_then_request_module Patch
http://git.kernel.org/?p=3Dlinux/kernel/git/rusty/linux-2.6-module-and-=
param.git;a=3Dcommit;h=3D8188c26f4bdd6ea8ae9f018e24ee8609394020f4
[2] Browesable GIT-branch:
http://git.kernel.org/?p=3Dlinux/kernel/git/rusty/linux-2.6-module-and-=
param.git;a=3Dsummary


On Wed, Apr 8, 2009 at 11:18 PM, Larry Finger <Larry.Finger@lwfinger.ne=
t> wrote:
>
> If you are having problems with wireless networking using 2.6.30-rc1 =
from
> Linus's Linux-2.6 git tree, the fix is the following (Note: This is _=
NOT_ needed
> for wireless-testing!!!):
>
> ---
> Fix try_then_request_module to use waiting __request_module again.
>
> Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
> ---
> =C2=A0include/linux/kmod.h | =C2=A0 =C2=A02 +-
> =C2=A01 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-2.6.30-rc1/include/linux/kmod.h
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- linux-2.6.30-rc1.orig/include/linux/kmod.h =C2=A02009-04-08 12:47=
:54.000000000 +0200
> +++ linux-2.6.30-rc1/include/linux/kmod.h =C2=A0 =C2=A0 =C2=A0 2009-0=
4-08 17:39:35.000000000 +0200
> @@ -34,7 +34,7 @@ extern int __request_module(bool wait, c
> =C2=A0#define request_module(mod...) __request_module(true, mod)
> =C2=A0#define request_module_nowait(mod...) __request_module(false, m=
od)
> =C2=A0#define try_then_request_module(x, mod...) \
> - =C2=A0 =C2=A0 =C2=A0 ((x) ?: (__request_module(false, mod), (x)))
> + =C2=A0 =C2=A0 =C2=A0 ((x) ?: (__request_module(true, mod), (x)))
> =C2=A0#else
> =C2=A0static inline int request_module(const char *name, ...) { retur=
n -ENOSYS; }
> =C2=A0static inline int request_module_nowait(const char *name, ...) =
{ return -ENOSYS; }
>
> --
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wirel=
ess" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =C2=A0http://vger.kernel.org/majordomo-info.ht=
ml
>
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-09 10:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20090408182021.GA4112@aragorn.home.lxtec.de>
     [not found] ` <200904082050.00327.mb@bu3sch.de>
     [not found]   ` <49DCF537.8000702@lwfinger.net>
     [not found]     ` <20090408192634.GB3717@samweis.home.lxtec.de>
2009-04-08 21:18       ` Problems with 2.6.30-rc1 Larry Finger
2009-04-09  3:59         ` gavron
2009-04-09 10:37         ` Sedat Dilek

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).