From: Jouni Malinen (jkmaline_at_cc.hut.fi)
Date: 2002-09-10 14:22:07 UTC
On Tue, Sep 10, 2002 at 01:25:44PM +0200, Victor Aleo wrote:
> I use the Prism2-2002-05-19 driver and I want to use some functions from
> the next files to make a program in the user space. The goal is to
> create a library with these files, so I will be able to call these
> functions from my program.
> I have tried to compile, for example prism2_ap.c, but it says:
> [victor]# gcc -c prism2_ap.c
> prism2_ap.c:509:41: missing binary operator before '<'
> Is it possible to create an object file for these files?
No, prism2_ap.c (or nowadays hostap_ap.c) is not designed for that. It will be included in some other file (hostap.c in latest CVS snapshot, something else in the 2002-05-19 release). It requires headers etc. from the other files and furthermore, it is designed to be a kernel module, not user space code..
If you like to get some code that performs similar things that prism2_ap.c, but is for user space, I would suggest taking a look at the hostapd daemon in the latest CVS snapshot (from http://hostap.epitest.fi/)
-- Jouni Malinen PGP id EFC895FA