Commit Graph

32 Commits

Author SHA1 Message Date
84859e20c4 also clear the local control port when resetting the WTP state
Without reseting the port, the new control socket will be
bound to the same port as the old one.
2016-03-30 09:22:02 +02:00
32e9567f7b rework bssid handling and stop all used bssids when leaving RUN
Instead of haing a pool of unsused BSS Id's and a list of active
BSS's (wlans), use a single array and only mark the BSS Id as used
or unused.

When leaving RUN state, release (stop) all used BSS.
2016-03-29 15:28:40 +02:00
40a98c9075 move packet processing from main receive loop into function 2016-03-29 11:51:39 +02:00
a3c2e52d3c reset WTP state when going into DTLS TD 2016-03-29 11:51:39 +02:00
13ef6c0d62 rework deep indented if statement in wtp_dfa_retransmition_timeout 2016-03-29 11:48:28 +02:00
258c8ff750 rework overly deep if statement in wtp_dfa_running 2016-03-29 11:48:28 +02:00
de9b54e8b1 reindent wtp_dfa_execute 2016-03-29 11:48:28 +02:00
26415cae34 [wtp] remove curly brackets from single line if statements 2016-03-29 11:48:28 +02:00
067f920d81 reformat some overly long code lines 2016-03-29 11:48:28 +02:00
8dc30ae3c4 rework socket and discovery handling
Swtich sockets to connected when talking to a specific AC. Use
unconnected UDP sockets only during DISCOVERY.

In JOIN, we need send our local address. The old, routing table
based local address discovery is broken for many reasons (VRF,
policy routing, ...). With a connected socket, we can the same
information with a simple getsockname.

During DISCOVERY we are talking to all potential AC's at once.
So using an unconnected socket makes still sense.
2016-03-02 15:13:56 +01:00
cae859e42f [debug] add debug trace logging for some procedures 2016-02-17 11:56:03 +01:00
58c63bbc4e Fix error in retrasmisson packets 2016-02-05 17:33:09 +01:00
d12d15d67d Fix Dead Store (Dead Assignment) found by Clang Analyzer
---
 src/wtp/wtp_dfa.c | 2 --
 1 file changed, 2 deletions(-)
2015-01-22 10:19:38 +01:00
98069694c5 Teardown connection if receive packet in unknown state 2014-12-26 15:37:30 +01:00
8d9985fdea The capwap data channel migrated from userspace to kernalspace 2014-09-10 21:58:23 +02:00
71006a9121 Fix minor bug.
Add draft of ac kernel module.
2014-06-15 09:09:48 +02:00
67daa8dcbb Permit to forward IEEE802.11 Data Packet from kernel space to user space bypass
kernel network stack.
2014-06-07 22:37:19 +02:00
ae97e96f57 Started implementing the packet management of IEEE802.11 by AC side.
Made it clear some constants.
2014-04-02 22:40:04 +02:00
6042161d75 Reengineering the timeout manager. Allows to create an arbitrary number of timer
with the possibility to invoke a callback function on timeout.
2014-03-02 19:31:27 +01:00
ea02d7379e Refactoring timeout functions, change functions name and add timeout handler
into session.
2014-02-19 19:16:33 +01:00
025880583c Changed the management of the wireless interfaces, from creation to usage.
The virtual interfaces are created at the startup of the wtp to reduce the time
required to configure a wireless interface.
Applied some patches to build the WTP on OpenWRT trunk
2014-02-08 18:03:38 +01:00
0790fb511a Improved the management of authentication and association of the stations 2014-01-21 19:54:59 +01:00
022585f3a1 Add nl80211 handler message events 2013-12-21 23:50:15 +01:00
516f129fce Cleaning WTP DFA code 2013-11-07 22:06:29 +01:00
08a8af0a70 Drop packets if connection is teardown 2013-09-16 22:10:37 +02:00
d34e98fc2c Implicitly inserted capwap_outofmemory() into the capwap_alloc().
capwap_alloc() can never return NULL.
2013-08-18 19:07:19 +02:00
7ddb32d217 Added the code that handles the result code of a request. 2013-08-11 18:38:23 +02:00
7b5b9be58b Ignore SIGPIPE 2013-08-06 22:13:00 +02:00
7b6bd52f48 Centralized control of the AC IP address into recv function 2013-06-09 21:49:43 +02:00
49bf2dc5c9 Improved the WTP application to exit 2013-06-05 19:39:03 +02:00
6c55b4d71f Improve memory administration for tx/rx packet manager 2013-05-27 21:33:23 +02:00
7dd6d43954 First commit 2013-05-01 14:52:55 +02:00