Re: How to compile prism2_ap.c?


From: Victor Aleo (victor.aleo_at_estudiant.upc.es)
Date: 2002-09-10 15:33:51 UTC



Jouni Malinen wrote:

> 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

Well, it seems I was pretty wrong! I have downloaded the lastest CVS snapshot from your web page. I have compiled only the hostapd module. When I try to execute it happens the next:

[root_at_victor]# ./hostapd wlan0
ioctl(SIOCGIFINDEX): No such device
ioctl[SIOCGIFFLAGS]: No such device

However, it works without problems when I execute the hostapd from my old release version (Prism2-2002-05-19). As I have said, I have installed the version Prism2-2002-05-19 of the driver but I do not thing this is the problem.

Please, let me know if you have any clue!

Thanks a lot,

--
Victor


This archive was generated by hypermail 2.1.4.