Re: Loop detected - calling function from different modules

2006-09-03 Thread Frank Schneider


hi Stephen,

you can check these:

 http://bcm43xx.berlios.de/
http://madwifi.org/

R
/frank



From: Stephen Hemminger <[EMAIL PROTECTED]>
To: "Frank Schneider" <[EMAIL PROTECTED]>
CC: netdev@vger.kernel.org
Subject: Re: Loop detected  - calling function from different modules
Date: Wed, 30 Aug 2006 14:26:07 -0700

On Wed, 30 Aug 2006 22:58:17 +0200
"Frank Schneider" <[EMAIL PROTECTED]> wrote:

>
> hi all,
>
> I am writing/customizing a network(wlan pc card) device driver for Linux
> kernel 2.6.12
> Think about I have two modules e.g. ath_pci and wlan module.
> I can call a function from a   .c file which is implemented in a  .c 
file in

> wlan module by using EXPORT_SYMBOL macro..
>
> and i need to do same in reverse way, i.e. call a function from wlan 
module

> that is implemented in ath_pci module.
>
> I did the same way and its making but when I do  make install its 
showing

> following error:
>
> WARNING: Loop detected: /lib/modules/2.6.12/net/ath_pci.ko needs wlan.ko
> which needs ath_pci.ko again!
>
> Please anybody tell how can I do this, any clue , please ?
>
> thanx in advance
>
> n.b. this question may consider as very naive since I am not good yet in
> kernel hacking.. 
>
> regards,
> /Frank

Where are these open source drivers so the wireless developers can help?

--
Stephen Hemminger <[EMAIL PROTECTED]>


_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



--
VGER BF report: U 0.864812
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Loop detected - calling function from different modules

2006-08-31 Thread Frank Schneider


Dear Johannes,

I just got an idea, may be not usefull,  but I am gonna try:

If I assign a function which is implemented in ath_pci module to
hard_start_xmit
and do  my little work and call  the actual function to xmit data frame in 
wlan module.

that I can do..
accordingly I will pass the concern structure sk_buff that contain data 
frame..
that will serve my purpose as well as normal data frame is suppose to send 
out from the device, AP.


can I do it ?
I will let you know, if I success...

/Frank




From: Johannes Berg <[EMAIL PROTECTED]>

> Any suggestions to do that please ?

d80211 has a hardware definition struct that is registered by the driver
and contains a callback that is called for each frame. This is the
direction you should take as well:

   hard_start_xmit (generic code)
calls
   hardware_xmit (your module code, e.g. in a struct wlan_device)

johannes
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Loop detected - calling function from different modules

2006-08-31 Thread Frank Schneider


Dear Johannes,

To port ath_pci to wlan(d80211) module and make it “one” module – might be a 
possible solution. But you know, ath_pci has some dependency and some binary 
crap(HAL)
More over, I need only an signal (e.g. by calling a funciton) in the ath_pci 
module when a data frame is sending out from the card(as AP)

We know struct net_device has a member pointer to a method called
hard_start_xmit that initiates the transmission through the device.
Wlan module already assigned a function ("ieee80211_hardstart" ) to this 
pointer
hard_start_xmit. It uses dev_queue_xmit() to transmit outgoing data frame 
from

AP.
Is it possible to assign another function in different module, e.g.
ath_pci I need to call this function when transmit data frame, but in 
practice,

this function will not send any data frame, e.g. won’t use dev_queue_xmit.

Or is any other way to get an indication in ath_pci module that an outgoing 
data

frame is gonna send out?

Any suggestions to do that please ?

regards,
Frank




From: Johannes Berg <[EMAIL PROTECTED]>
On Wed, 2006-08-30 at 22:58 +0200, Frank Schneider wrote:

> and i need to do same in reverse way, i.e. call a function from wlan 
module

> that is implemented in ath_pci module.

No, you don't. Period. Either wlan provides services to ath_pci, or they
should be one module. Besides, why don't you port atheros drivers to
d80211 instead? And how about showing code? :)

johannes
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Loop detected - calling function from different modules

2006-08-30 Thread Frank Schneider


hi all,

I am writing/customizing a network(wlan pc card) device driver for Linux 
kernel 2.6.12

Think about I have two modules e.g. ath_pci and wlan module.
I can call a function from a   .c file which is implemented in a  .c file in 
wlan module by using EXPORT_SYMBOL macro..


and i need to do same in reverse way, i.e. call a function from wlan module 
that is implemented in ath_pci module.


I did the same way and its making but when I do  make install its showing 
following error:


WARNING: Loop detected: /lib/modules/2.6.12/net/ath_pci.ko needs wlan.ko 
which needs ath_pci.ko again!


Please anybody tell how can I do this, any clue , please ?

thanx in advance

n.b. this question may consider as very naive since I am not good yet in 
kernel hacking.. 


regards,
/Frank

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


dealing with "hard_start_xmit " of net_device

2006-08-29 Thread Frank Schneider


hi all,

I am customizing a linux driver code of WLAN card as Access Point on Linux 
kernel 2.6.12 to work with.


We know struct net_device has a member pointer to a method called
hard_start_xmit that initiates the transmission through the device. Data 
should contain sk_buff structure.


For that particular device, the whole driver code is consists of some 
modules. Among those one module already assigned a function to this pointer 
"hard_start_xmit". I already tested its working well to transmit outgoing 
data frame from AP.
My question is, how can I assign another function in different module. I 
need to call this function when transmit data frame, but in practice, this 
function will not send any data frame, e.g. won’t use dev_queue_xmit.
You can assume, when something to  transmit it will call two functions in 
two modules of same driver


Any suggestions to do that please ?



regards,
/ Frank

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html