Skip to contentSkip to conversation

How to initialize net_device structure type

ath9k-devel Serene Gud 2 participants 4 messages Apr 28, 2011 – May 9, 2011

lore
Share & tools
lore
#1 lore raw
Quoted 8 lines · Serene Gud

Hi all,

I am trying to make some function calls in net/mac80211/main.c which involve the net_device struct as one parameter, but I am unable to pass any arguments for it.

Can anybody suggest me how to initialize struct net_Device *dev?

may be iface.c ? I am not sure

Quoted 9 lines

Thanks,
-Serene

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110428/decd328c/attachment.htm

author
#2 lore raw

--- On Thu, 4/28/11, Mohammed Shafi <[email protected]> wrote:

On Thu, Apr 28, 2011 at 8:43 PM, Serene Gud <[email protected]> wrote:

Hi all,

I am trying to make some function calls in net/mac80211/main.c which involve the net_device struct as one parameter, but I am unable to pass any arguments for it.

Can anybody suggest me how to initialize struct net_Device *dev? ?may be iface.c ? I am not sure

Hi all,

I am still unable to initialize the net_device structure. Also, now i doubt if it is possible to make a call to the functions defined in cfg.c
(net/mac80211/cfg.c). All thefunctions in there were declared 'static'; so I removed the static keyword so that I could make a call to the
function in? main.c (net/mac80211/main.c) but now I am wondering if it is possible to do this or I am just trying something which cannot be done.

Thanks for the help!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110509/e6c58a17/attachment.htm

author
#3 lore raw

--- On Mon, 5/9/11, Serene Gud <[email protected]> wrote:

On Thu, Apr 28, 2011 at 8:43 PM, Serene Gud <[email protected]> wrote:

Hi all,

I am trying to make some function calls in net/mac80211/main.c which involve the net_device struct as one parameter, but I am unable to pass any arguments for it.

Can anybody suggest me how to initialize struct net_Device *dev? ?may be iface.c ? I am not sure

Hi all,

I am still unable to initialize the net_device structure. Also, now i doubt if it is possible to make a call to the functions defined in cfg.c
(net/mac80211/cfg.c). All thefunctions in there were declared 'static'; so I removed the static keyword so that I could make a call to the
function in? main.c (net/mac80211/main.c) but now I am wondering if it is possible to do this or I am just trying something which cannot be done.

Thanks for the help!
Is it possible to do:

dev->name=wlan0;

where dev is an instance of struct net_device (struct net_device *dev;)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110509/b06527c0/attachment.htm