vollero / openCAPWAP

openCAPWAP
114 stars 84 forks source link

AC build problem #5

Closed biased closed 9 years ago

biased commented 9 years ago

Hello,

we have tried to build the AC using your project: we have used hostapd1_1 and ubuntu 12.04 (3.13.0.-32-generic).

First of all, we have build 'pure' hostapd1_1 - no problems. After that, we added the wrapper by using your instruction: have obtained the following errors:

ieee80211_radiotap_iterator_init': /home/user/hostap_1_1/hostapd/../src/utils/radiotap.c:84: multiple definition ofieee80211_radiotap_iterator_init' ../src/utils/radiotap.o:/home/user/hostap_1_1/hostapd/../src/utils/radiotap.c:84: first defined here ../src/utils/radiotap.o: In function ieee80211_radiotap_iterator_next': /home/user/hostap_1_1/hostapd/../src/utils/radiotap.c:160: multiple definition ofieee80211_radiotap_iterator_next' ../src/utils/radiotap.o:/home/user/hostap_1_1/hostapd/../src/utils/radiotap.c:160: first defined here ../src/drivers/netlink_fake.o: In function netlink_init': /home/user/hostap_1_1/hostapd/../src/drivers/netlink_fake.c:48: multiple definition ofnetlink_init' ../src/drivers/netlink.o:/home/user/hostap_1_1/hostapd/../src/drivers/netlink.c:98: first defined here ../src/drivers/netlink_fake.o: In function netlink_deinit': /home/user/hostap_1_1/hostapd/../src/drivers/netlink_fake.c:76: multiple definition ofnetlink_deinit' ../src/drivers/netlink.o:/home/user/hostap_1_1/hostapd/../src/drivers/netlink.c:135: first defined here ../src/drivers/netlink_fake.o: In function netlink_send_oper_ifla': /home/user/hostap_1_1/hostapd/../src/drivers/netlink_fake.c:82: multiple definition ofnetlink_send_oper_ifla' ../src/drivers/netlink.o:/home/user/hostap_1_1/hostapd/../src/drivers/netlink.c:148: first defined here ../src/drivers/linux_ioctl_fake.o: In function linux_set_iface_flags': /home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl_fake.c:29: multiple definition oflinux_set_iface_flags' ../src/drivers/linux_ioctl.o:/home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl.c:25: first defined here ../src/drivers/linux_ioctl_fake.o: In function linux_iface_up': /home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl_fake.c:34: multiple definition oflinux_iface_up' ../src/drivers/linux_ioctl.o:/home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl.c:64: first defined here ../src/drivers/linux_ioctl_fake.o: In function linux_get_ifhwaddr': /home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl_fake.c:36: multiple definition oflinux_get_ifhwaddr' ../src/drivers/linux_ioctl.o:/home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl.c:86: first defined here ../src/drivers/linux_ioctl_fake.o: In function linux_set_ifhwaddr': /home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl_fake.c:72: multiple definition oflinux_set_ifhwaddr' ../src/drivers/linux_ioctl.o:/home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl.c:109: first defined here ../src/drivers/linux_ioctl_fake.o: In function linux_br_add': /home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl_fake.c:91: multiple definition oflinux_br_add' ../src/drivers/linux_ioctl.o:/home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl.c:142: first defined here ../src/drivers/linux_ioctl_fake.o: In function linux_br_del': /home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl_fake.c:95: multiple definition oflinux_br_del' ../src/drivers/linux_ioctl.o:/home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl.c:154: first defined here ../src/drivers/linux_ioctl_fake.o: In function linux_br_add_if': /home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl_fake.c:99: multiple definition oflinux_br_add_if' ../src/drivers/linux_ioctl.o:/home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl.c:166: first defined here ../src/drivers/linux_ioctl_fake.o: In function linux_br_del_if': /home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl_fake.c:103: multiple definition oflinux_br_del_if' ../src/drivers/linux_ioctl.o:/home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl.c:188: first defined here ../src/drivers/linux_ioctl_fake.o: In function linux_br_get': /home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl_fake.c:107: multiple definition oflinux_br_get' ../src/drivers/linux_ioctl.o:/home/user/hostap_1_1/hostapd/../src/drivers/linux_ioctl.c:210: first defined here

Where the problem might be?

vollero commented 9 years ago

Are you working with the master or the elena.ago branch?

biased commented 9 years ago

We are working with the master branch. What is difference between these branches?

vollero commented 9 years ago

the master branch is not longer maintained.

read this https://github.com/vollero/openCAPWAP/issues/4 for the differences.

biased commented 9 years ago

Ok, thank you! We will install elena branch. Just in case, could you explain that how to install AC step by step? Maybe you have more detailed manual?

biased commented 9 years ago

We have looked elena branch - it has the same wrapper as the master branch, so it does not help us. Maybe we use the wrong version of the kernel or hostapd?

hwinkel commented 9 years ago

You can find a slightly more maintained version here: https://github.com/travelping/openCAPWAP but we only take care of the WTP parts

e-ago commented 9 years ago

In elenago branch there is no need of hostapd. Wrappers are obsolete.

Il giorno 22/gen/2015, alle ore 14:29, biased notifications@github.com ha scritto:

We have looked elena branch - it has the same wrapper as the master branch, so it does not help us. Maybe we use the wrong version of the kernel or hostapd?

\ Reply to this email directly or view it on GitHub.

biased commented 9 years ago

Hello! Thanks for your help! Finally, we have build "travelping" project (hostapd + AC). Could you show logs of correctly working AC and WTP (ac.log.txt and wtp.log.txt)? Also, we have a few questions about:

dmitry-bodnya commented 9 years ago

iElenago,

"In elenago branch there is no need of hostapd. Wrappers are obsolete." Could you, please, explain, what does it mean? We don't need to patch hostapd or we don't need to use it at all(run ac and wtp with no hostapd)?

dmitry-bodnya commented 9 years ago

The linkage problems, describes in the beginning of this thread are happens when compilation of hostapd is done with several drivers enabled(CONFIG_DRIVER_HOSTAP, CONFIG_DRIVER_NL80211, CONFIG_DRIVER_CAPWAP), because some of them uses original netlink(but CAPWAP uses fake). If .config have only CONFIG_DRIVER_CAPWAP=y compilation is ok.

What is the proper way of configuring hostapd for AC?

e-ago commented 9 years ago

Hi! Currently in elena.ago branch openCAPWAP can handle an access point without hostapd. If you want to use SPLIT MAC mode, you must set -DSPLIT_MAC flag in Makefile. Then after startup, WTP creates 2 interfaces: 1 monitor and 1 station. In Run state, it is possible to use the WUM utility (included in the openCAPWAP repository) to send commands to the AC and also to create a new AP interface on the WTP side through AC, specifying radio interface number, wlan interface number (the interface in station mode) and SSID: ./wum -c addwlan -w -r 0 -l 0 -s wtpSSID -t 1

We are working on a paper to explain all the new features included in this new openCAPWAP release

dmitry-bodnya commented 9 years ago

Hi, iElenago. Thanks for response.

Could you tell is your branch still working only with madwifi based cards?

e-ago commented 9 years ago

No, I used nl80211 + mac80211 kernel module to interact with wireless interfaces. I used an Atheros card during my tests.

ramonfontes commented 7 years ago

Hi,

How can I run opencapwap with hostapd? I can run WTP, AC (There is communication between WTP and AC) and hostapd on both sides, but I cannot see any ssid by means of scan command (iw dev scan). I unsuccessfully tried https://github.com/travelping/openCAPWAP too. The CLI says: wait add_wlan... Do I have to use wum? Is it required?