vollero / openCAPWAP

openCAPWAP
113 stars 83 forks source link

Configuration wireless network in elena.ago branch. #6

Closed IgorPastushok closed 9 years ago

IgorPastushok commented 9 years ago

Hello! I'm using branch elena.ago on Ubuntu 14.04. When I run WTP in system created two interfaces (WTPWLan00 and monitor0), but WiFi network wasn't created. In last post about issues was said: "In elenago branch there is no need of hostapd". So, how can I configure a wireless network with WTP?

e-ago commented 9 years ago

Hi! Currently in elena.ago branch openCAPWAP can handle an access point without hostapd. 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 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

IgorPastushok commented 9 years ago

Thank you! Could you send us draft of this paper?

biased commented 9 years ago

2iElenago Hello! We run /wum -c addwlan -w -1 -r 0 -l 0 -s wtpSSID -t 1 in AC side. After that we get the following messagee in "wtp.log":

__WLAN Configuration Request received

... [NL80211 ERROR] Set channel interface error: -95, Operation not supported. ...

What causes this error? Supported interface mode of our WIFI-adapter includes AP, monitor and manage modes Another question: which one of files (WTP or WUA) must be running on the WTP-side?

biased commented 9 years ago

The problem was solved after wlan0 interface down and WPTWlan00 interface restart. Radio network has appeared, but the following problems occurred after association procedure: (next message in the topic)

IgorPastushok commented 9 years ago

Hello! I have a problem with data transfer through wireless connection. I created network using command "./wum -c addwlan -w -0 -r 0 -l 0 -s wtpSSID -t 1". A network was created with error "[NL80211 ERROR] Register frame command failed (type=208): ret=-114 (Operation already in progress)", and new station can connect to it. So, when station connects to network, AC send Configuration Request (Add Station) two times, and received two Configuration Responses: first is "add station success" response, and second one is error "[NL80211 ERROR] Set new STA error: -22, Invalid argument". Then station have associated to network status, but I can't ping AC or WTP (Port unreachable) from Station as I can't ping Station from AC and WTP. I attached log files from AC and WTP. Google Drive: https://drive.google.com/folderview?id=0B-JTYIdrlWlkRWVHVGFhcnpjc3c&usp=sharing

Dineshkumarparameswaran commented 9 years ago

Hi everyone, After running the /wum -c addwlan -w -1 -r 0 -l 0 -s wtpSSID -t 1 in AC side. WTPWLan00 interface is in AP mode with SSID "wtpSSID". But , the station is not able to connect with AP.

e-ago commented 9 years ago

Send me via email your logs from capwap and wireshark

2015-03-03 4:52 GMT+00:00 Dineshkumarparameswaran notifications@github.com :

After running the /wum -c addwlan -w -1 -r 0 -l 0 -s wtpSSID -t 1 in AC side. WTPWLan00 interface is in AP mode with SSID "wtpSSID". But , the station is not able to connect with AP.

— Reply to this email directly or view it on GitHub https://github.com/vollero/openCAPWAP/issues/6#issuecomment-76886996.

Dineshkumarparameswaran commented 9 years ago

Hi iElenago, I sent the logs though mail.After running the WTP and AC.I kill the both AC and WTP .Again running the AC and WTP it gives error ,

[NL80211 ERROR] Set new interface error: -23, Too many open files in sys [NL80211 ERROR] creating new interface. RadioID: 0, WLAN ID: 0

biased commented 9 years ago

2Dineshkumarparameswaran It seems that you do not remove the monitor0 and WTPWLan00 interfaces before restarting WTP. Try: iw monitor0 del iw WTPWLan00 del

Dineshkumarparameswaran commented 9 years ago

Hi biased ,

After deleting the interface using the iw command it is working fine.No error

                 Thank you !!!!
Dineshkumarparameswaran commented 9 years ago

Hi IgorPastushok ,

Did you solve your error :"NL80211 ERROR] Set new STA error: -22, Invalid argument" .I am also getting the same error.If you solved this error , help me ...

fatma09 commented 9 years ago

Hello everybody, I have an association problem between the station and the WTP. Every association attempt ends with (according to the wtp.log):

____ Station Configuration Request received ____

Parsing Station Configuration Request... Searching for STA -> 34:fc:ef:c6:1a:83 Station Configuration Request Parsed [CW80211] REQUEST Add Station nl80211: nl80211_send_recv_cb_input->nl_recvmsgs failed: -16 Set STA info ok -> 34:fc:ef:c6:1a:83 Assembling Sattion Configuration Response... Station Configuration Response Assembled Message Sent

[CW80211] Association Timer Raised WTP HeartBeat Timer Expired... we send an ECHO Request

____ Echo Request Message 0 ____

Echo Response received [CW80211] Disassociation Request Received nl80211: nl80211_send_recv_cb_input->nl_recvmsgs failed: -16 WTP HeartBeat Timer Expired... we send an ECHO Request

Do anyone know the cause of this problem? A priori, we need a dhcp server. How we can set it with openCAPWAP?

Helpper commented 9 years ago

Hi IgorPastushok ,

Did you solve your error :"NL80211 ERROR] Set new STA error: -22, Invalid argument" .I am also getting the same error.If you solved this error , help me ...

Helpper commented 9 years ago

Hello! I have a question like lgorPastushok. When I execute "sudo ./wum -c addwlan -w 0 -s test -r 1 -l 0 -t 1 ",I get an error in wtp log file ."NL80211 ERROR] Set new STA error: -22, Invalid argument".If you can solve this error ,help me ,Thank you !

e-ago commented 9 years ago

As I said in the other issues, send me by email your ac and wtp logs

Helpper commented 9 years ago

I attached log files from AC and WTP. Google Drive: https://drive.google.com/folderview?id=0B-JTYIdrlWlkRWVHVGFhcnpjc3c&usp=sharing

e-ago commented 9 years ago

It's not a real bug. There are some problems when the same station send two or more Association Request. I'm working to solve it. Anyway it's not a critical issue, as I can see in your logs the station successfully associated with your WTP.

Helpper commented 9 years ago

Thank you for your response! Though the station have successfully associated with my WTP, but the station can't connect to the network. Can you tell me the reason?Thank you.

e-ago commented 9 years ago

Did you create the bridge between AC_tap interface and your eth0 interface?

Helpper commented 9 years ago

Yes, I have created a bridge between AC_tap and eth0, but it is not useful. Does it need to create a bridge on WTP side.

e-ago commented 9 years ago

Is there a dhcp server on AC side?

2015-04-27 9:39 GMT+00:00 Helpper notifications@github.com:

Yes, I have created a bridge between AC_tap and eth0, but it is not useful. Does it need to create a bridge on WTP side.

— Reply to this email directly or view it on GitHub https://github.com/vollero/openCAPWAP/issues/6#issuecomment-96584877.

Helpper commented 9 years ago

I use the dhcp to allocate IP address for the bridge on AC side automatically. I want to kown how to use the dhcp server that you said and what I can use it to do.

e-ago commented 9 years ago

Does your station acquire an IP address? If you pull again, in INSTALL notes I have added a little script I used for the AC bridge

Helpper commented 9 years ago

Thank you! Yes, My station has acquired an IP address. I want to kown more about how to run WTP (including detailed commands)? Can you tell me something more about settings.wtp.txt? My system is ubuntu 14.04,what should I change in the settings.wtp.txt? RADIO_PHY_TOT 1 RADIO_PHY_NAME_0 phy0 WTP_ETH_IF_NAME eth0 BRIDGE_IF_NAME br0 IF_NAME mon.wlan0 RADIO_0_IF_NAME wlan0 BASE_MAC_IF_NAME vmnet1 BOARD_REVISION_NO eth0 WTP_MODEL_NUM 12345678 WTP_SERIAL_NUM 12345678 I want to know more about these values? Should I need to change them?

Helpper commented 9 years ago

Hi! I still can't build and run CAPWAP for ubuntu 14.04. Can you tell me your system version that you are using?

fatma09 commented 9 years ago

Hi Helpper, If your station acquired an IP address, that means it works! About the settings.wtp.txt, I only needed to change the index of physical interface (e.g. phy0 or phy1) according to the output of the "iw dev" command. For the system version, I used also ubuntu 14.04 and it works for me.

Helpper commented 9 years ago

Thank you! Did you create a bridge on WTP side? And on my WTP side, I has an interface wlan0,but it is down.Do I need to delete it?

fatma09 commented 9 years ago

I created a bridge only in the AC side. You can either disable the wlan0 interface or delete it. It works in both cases. You need also to run this command: rfkill unblock wlan.

Helpper commented 9 years ago

Thank you for your help! Please tell me your gcc version. Thank you. I have another question. After I close WTP, it will show an error "libgcc_s.so.1 must be installed for pthread_cancel to work " in the AC Termination, Then AC will close too. But I can find the libgcc_s.so.1 in "/lib/i386_linux_gnu/ libgcc_s.so.1". Can you help me solve the problem? Thank you!

Helpper commented 9 years ago

Hi! Now my phone has connected to the WTP. But when my phone want to connect to a small website with few bytes.Thongh I still can't connect to the website, but I don't get any error and WTP and AC run normally. Then my phone want to connect to a big website, then I can get the error on WTP side.

____ Echo Request Message 0 ____

[CAPWAP::Tue Apr 28 15:40:35 2015] b7336700 Echo Response received [CAPWAP::Tue Apr 28 15:40:35 2015] b4dffb40 [KeepAlive packet] [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 Received Fragment ID:0, offset:0, notLast:0 [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 ERROR: Need Resource [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 Received Fragment ID:0, offset:175, notLast:1 [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 totalSize = 1532 , currentSize = 1532 [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 WTP Received All Fragments [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 Message Reassembled [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 nl80211: sendmsg: Message too long [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 Received Fragment ID:1, offset:0, notLast:0 [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 ERROR: Need Resource [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 Received Fragment ID:1, offset:175, notLast:1 [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 totalSize = 1532 , currentSize = 1532 [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 WTP Received All Fragments [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 Message Reassembled [CAPWAP::Tue Apr 28 15:40:47 2015] b4dffb40 nl80211: sendmsg: Message too long

And on AC side, it always get an error "Error on accept (applications) system call"? Can you tell me why?

e-ago commented 9 years ago

WTP cannot send the packet to your station because is > 1500 byte (MTU unit of your wireless interface). I'm working on it and I will fix this bug with fragmentation. Apart from this can you ping other web sites? Please, send me entire WTP and AC logs using my email.

Helpper commented 9 years ago

Thank you! I have send you entire WTP and AC logs to the email---notifications@github.com. Is it your e-mail?

Helpper commented 9 years ago

How can I change the MTU unit of my wireless interface?

Helpper commented 9 years ago

Now, I want to do something about loading balance. On AC side, how can I know how many stations that connnect to the WTP?

e-ago commented 9 years ago

Currently you can't. During my work I focused on access point management, WUM is only a limited tool to interact with OpenCAPWAP and it has not many features. I will work on it.

Helpper commented 9 years ago

Thank you for your explaination!

Helpper commented 9 years ago

Thank you for your explaination!

Helpper commented 9 years ago

Hi! On my AC side, I want to send a message to the WTP, what should I do ? And which function I can use? Can you tell me the detailed information? Thank you.

ramonfontes commented 7 years ago

Hello Helpper,

Did you find an answer for the last question?

vijaynct commented 6 years ago

Is it possible to create two or more WLANs in single radio interface. That is same RADIO ID and different WLAN ID