<div>Hi,</div><div><br></div>Im experiencing a problem with building hostapd with nl80211 support. I&#39;ve tried to build it as described here:<div><br></div><div><a href="http://acx100.erley.org/git.html#libnl">http://acx100.erley.org/git.html#libnl</a></div>
<div><br></div><div>I&#39;ve got the latest versions of hostapd and libnl from git:</div><div><br></div><div>git://<a href="http://w1.fi/srv/git/hostap.git">w1.fi/srv/git/hostap.git</a></div><div>git://<a href="http://git.kernel.org/pub/scm/libs/netlink/libnl.git">git.kernel.org/pub/scm/libs/netlink/libnl.git</a></div>
<div><br></div><div>There are no erros when i build it without nl80211 support. Additional info:</div><div><br></div><div>System: CentOS 5.5 x32</div><div>Kernel: 2.6.18-194.11.3.el5</div><div><br></div><div>Here is a part of .config file i modified:</div>
<div><br></div><div><div># Driver interface for drivers using the nl80211 kernel interface</div><div>CONFIG_DRIVER_NL80211=y</div><div># driver_nl80211.c requires a rather new libnl (version 1.1) which may not be</div><div>
# shipped with your distribution yet. If that is the case, you need to build</div><div># newer libnl version and point the hostapd build to use it.</div><div>LIBNL=/usr/src/libnl</div><div>CFLAGS += -I$(LIBNL)/include</div>
<div>LIBS += -L$(LIBNL)/lib</div></div><div><br></div><div>Here is the error im getting:</div><div><br></div><div><div>  CC  main.c</div><div>  CC  config_file.c</div><div>  CC  ../src/ap/hostapd.c</div><div>  CC  ../src/ap/wpa_auth_glue.c</div>
<div>  CC  ../src/ap/drv_callbacks.c</div><div>  CC  ../src/ap/ap_drv_ops.c</div><div>  CC  ../src/ap/utils.c</div><div>  CC  ../src/ap/authsrv.c</div><div>  CC  ../src/ap/ieee802_1x.c</div><div>  CC  ../src/ap/ap_config.c</div>
<div>  CC  ../src/ap/ieee802_11_auth.c</div><div>  CC  ../src/ap/sta_info.c</div><div>  CC  ../src/ap/wpa_auth.c</div><div>  CC  ../src/ap/tkip_countermeasures.c</div><div>  CC  ../src/ap/ap_mlme.c</div><div>  CC  ../src/ap/wpa_auth_ie.c</div>
<div>  CC  ../src/ap/preauth_auth.c</div><div>  CC  ../src/ap/pmksa_cache_auth.c</div><div>  CC  ../src/drivers/drivers.c</div><div>  CC  ../src/utils/eloop.c</div><div>  CC  ../src/utils/common.c</div><div>  CC  ../src/utils/wpa_debug.c</div>
<div>  CC  ../src/utils/wpabuf.c</div><div>  CC  ../src/utils/os_unix.c</div><div>  CC  ../src/utils/ip_addr.c</div><div>  CC  ../src/common/ieee802_11_common.c</div><div>  CC  ../src/common/wpa_common.c</div><div>  CC  ../src/eapol_auth/eapol_auth_sm.c</div>
<div>  CC  dump_state.c</div><div>  CC  ../src/eapol_auth/eapol_auth_dump.c</div><div>  CC  ../src/radius/radius.c</div><div>  CC  ../src/radius/radius_client.c</div></div><div><div>  CC  ../src/ap/accounting.c</div><div>
  CC  ../src/ap/vlan_init.c</div><div>  CC  ctrl_iface.c</div><div>  CC  ../src/ap/ctrl_iface_ap.c</div><div>  CC  ../src/crypto/md5.c</div><div>  CC  ../src/ap/iapp.c</div><div>  CC  ../src/ap/peerkey_auth.c</div><div>  CC  ../src/drivers/driver_hostap.c</div>
<div>../src/drivers/driver_nl80211.c: In function send_and_recv:</div><div>../src/drivers/driver_nl80211.c:206: warning: passing argument 1 of nl_send_auto_complete from incompatible pointer type</div><div>../src/drivers/driver_nl80211.c:221: warning: passing argument 1 of nl_recvmsgs from incompatible pointer type</div>
<div>../src/drivers/driver_nl80211.c: In function family_handler:</div><div>../src/drivers/driver_nl80211.c:255: error: CTRL_ATTR_MCAST_GROUPS undeclared (first use in this function)</div><div>../src/drivers/driver_nl80211.c:255: error: (Each undeclared identifier is reported only once</div>
<div>../src/drivers/driver_nl80211.c:255: error: for each function it appears in.)</div><div>../src/drivers/driver_nl80211.c:259: error: CTRL_ATTR_MCAST_GRP_MAX undeclared (first use in this function)</div><div>../src/drivers/driver_nl80211.c:262: error: CTRL_ATTR_MCAST_GRP_NAME undeclared (first use in this function)</div>
<div>../src/drivers/driver_nl80211.c:263: error: CTRL_ATTR_MCAST_GRP_ID undeclared (first use in this function)</div><div>../src/drivers/driver_nl80211.c:259: warning: unused variable tb2</div><div>../src/drivers/driver_nl80211.c: In function nl_get_multicast_id:</div>
<div>../src/drivers/driver_nl80211.c:286: warning: passing argument 1 of genl_ctrl_resolve from incompatible pointer type</div><div>../src/drivers/driver_nl80211.c: In function wpa_driver_nl80211_event_receive:</div><div>
../src/drivers/driver_nl80211.c:1177: warning: passing argument 1 of nl_recvmsgs from incompatible pointer type</div><div>../src/drivers/driver_nl80211.c: In function wpa_driver_nl80211_init_nl:</div><div>../src/drivers/driver_nl80211.c:1347: warning: implicit declaration of function nl_handle_alloc_cb</div>
<div>../src/drivers/driver_nl80211.c:1347: warning: assignment makes pointer from integer without a cast</div><div>../src/drivers/driver_nl80211.c:1354: warning: assignment makes pointer from integer without a cast</div><div>
../src/drivers/driver_nl80211.c:1361: warning: passing argument 1 of genl_connect from incompatible pointer type</div><div>../src/drivers/driver_nl80211.c:1367: warning: passing argument 1 of genl_connect from incompatible pointer type</div>
<div>../src/drivers/driver_nl80211.c:1386: warning: passing argument 1 of genl_ctrl_alloc_cache from incompatible pointer type</div><div>../src/drivers/driver_nl80211.c:1386: error: too few arguments to function genl_ctrl_alloc_cache</div>
<div>../src/drivers/driver_nl80211.c:1392: warning: passing argument 1 of genl_ctrl_alloc_cache from incompatible pointer type</div><div>../src/drivers/driver_nl80211.c:1392: error: too few arguments to function genl_ctrl_alloc_cache</div>
<div>../src/drivers/driver_nl80211.c:1409: warning: passing argument 1 of nl_socket_add_membership from incompatible pointer type</div><div>../src/drivers/driver_nl80211.c:1419: warning: passing argument 1 of nl_socket_add_membership from incompatible pointer type</div>
<div>../src/drivers/driver_nl80211.c:1427: warning: passing argument 1 of nl_socket_get_fd from incompatible pointer type</div><div>../src/drivers/driver_nl80211.c:1437: warning: implicit declaration of function nl_handle_destroy</div>
<div>../src/drivers/driver_nl80211.c: In function wpa_driver_nl80211_init:</div><div>../src/drivers/driver_nl80211.c:1546: warning: passing argument 1 of nl_socket_get_fd from incompatible pointer type</div><div>../src/drivers/driver_nl80211.c: In function wpa_driver_nl80211_deinit:</div>
<div>../src/drivers/driver_nl80211.c:1766: warning: passing argument 1 of nl_socket_get_fd from incompatible pointer type</div><div>make: *** [../src/drivers/driver_nl80211.o] Error 1</div></div><div><br></div><div><br></div>
<div>Im not a programmer, so i have no ideas what causes the problem. Any suggestions from your side will be appreciated.</div><div><br></div><div>Thanks in advance</div><div>-----</div><div>Alexey Klimenok</div><div><br>
</div>