i802_set_country, NL80211_CMD_REQ_SET_REG & NL80211_ATTR_REG_ALPHA2 not declared

Jouni Malinen j
Mon Dec 8 11:58:47 PST 2008


On Fri, Dec 05, 2008 at 01:40:45AM +0100, Ruben Gonzalez wrote:

> I'm having some problems building hostapd. When I do "make" a part of the
> code is built, but the process is stopped when it is compiling
> driver_nl80211.c. 2 errors are thrown: in function i802_set_country,
> NL80211_CMD_REQ_SET_REG & NL80211_ATTR_REG_ALPHA2 are not declared. What
> do I need to fix the problem?

It sounds like the build was using an old version of linux/nl80211.h
that does not have this define. The current Git snapshot of hostapd
0.6.x includes a copy of a known-to-work nl80211.h and does not depend
on the kernel header file anymore. That should fix this type of
compilation issues.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list