From: Serene Gud Date: Mon, 9 May 2011 20:46:27 +0530 (IST) Subject: [ath9k-devel] How to initialize net_device structure type In-Reply-To: <405911.58693.qm@web137308.mail.in.yahoo.com> Message-ID: <259166.65098.qm@web137301.mail.in.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org --- On Mon, 5/9/11, Serene Gud wrote: On Thu, Apr 28, 2011 at 8:43 PM, Serene Gud 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