Commit Graph

299 Commits

Author SHA1 Message Date
1d95a62061 upgrade version to v1.1.0 v1.1.0 2016-03-07 15:40:32 +01:00
667d7a59e7 transition to WolfSSL API
Rename all remaining CyaSSL API references to WolfSSL.
Newer WolfSSL have significant DTLS fixes and security
improvements. Continuing to support old CyaSSL releases
would impact the perfomance of encrypted WTP sessions.
2016-03-07 15:32:36 +01:00
94d6702d9a upgrade WolfSSL dependency to 3.8.0 for DTLS fixes 2016-03-07 15:22:06 +01:00
f732261226 update README 2016-03-07 15:20:19 +01:00
d366a98717 add support for new NL80211_ATTR_IFACE_SOCKET_OWNER netlink attribute 2016-03-07 14:45:43 +01:00
973bf5eab7 disable IPv6 on WTP AP interface 2016-03-04 18:39:08 +01:00
58741d302f update CAPWAP support kernel patch
reduce debug output, only report ono-IPv4 packets.
2016-03-04 17:08:37 +01:00
0175052cf1 set transport header when injecting 802.3 frames
Resetting the headers is not enoug, we have to make sure
the transport header points the right position and the
skb->protocol is initialized to the payload protocol.
2016-03-04 17:05:56 +01:00
5f98005414 handle WTP QoS IE 2016-03-04 17:04:21 +01:00
d93cd1044d reformat WTP config file reader 2016-03-03 16:44:56 +01:00
2b489947c2 add support for setting the STA WME fields from WMM 2016-03-03 16:44:15 +01:00
4d56938321 reindent ieee80211_retrieve_information_elements_position 2016-03-03 15:27:29 +01:00
d68bc01d00 change supportedrates config setting to the actual MBit value
supportedrates is now a list instead on an array and float values
(e.g. 5.5) are permited.
2016-03-03 08:59:49 +01: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
067eb8d11a remove socket.o reference from kernel build 2016-02-29 15:45:23 +01:00
484002b3e6 add support for CAPWAP IEEE 802.11 Information Element to AssocResponse 2016-02-29 15:30:54 +01:00
a85f07f18a change buffer data type in hexdump logging to unsigned char 2016-02-29 15:30:19 +01:00
e4a5abba65 add support for CAPWAP IEEE 802.11 Information Element 2016-02-29 14:32:02 +01:00
9fee37a994 rework wifi type and rate logic
Hard coding basic rates is wrong. Each Wifi types does expect
some default basic rates. However those rates are not set in
stone and the AC is permited to set then to whatever it deems
ok. This might prevent client from connecting, but it still is
the AC decission to do so.

This is first step towards a more flexible basic rate handling.
2016-02-29 14:26:13 +01:00
3bfd0c5642 logging: add alternate log syntax 2016-02-29 14:23:58 +01:00
c66dc85c04 add hexdump log formater 2016-02-29 14:23:41 +01:00
47b18b3763 update kernel support patch 2016-02-25 12:40:35 +01:00
b80073b756 inject 802.11 frames through the normal device queue 2016-02-25 12:39:19 +01:00
0c19932b58 send 802.3 frames through the normal device TX path
Injecting 802.11 frames underneath the device logic bypasses
the queue logik and leads to delay. Pass 802.3 frames through
the normal device TX chain.

This has the added benefit that AF_PACKET sockets (e.g. tcpdump)
see the send frames.
2016-02-22 16:56:03 +01:00
f3119eec8d rework kernel socket handling to use udp tunnel infrastructure
Reimplmenting what is already there doesn't make sense. Switch
to the existing and UDP tunnel support code and handle the data
channel as a connected UDP socket
2016-02-22 16:54:54 +01:00
cc5b38f322 impelment station binding to wlanid
* add a kernel bash hash list to track station to
  radio and wlan id binding
* enforce binding on recv
* configure binding through netlink interface from
  WTP process
2016-02-18 19:36:22 +01:00
a6d0efe91a wtp: rework kernel socket handling
Switch to a connected UDP kernel socket. Comparing the
local and remote IPs is no longer required and handling
different IP versions and UDP types is automatic.

The WTP logic needs to reopen the socket on demand now.
2016-02-18 15:06:39 +01:00
cae859e42f [debug] add debug trace logging for some procedures 2016-02-17 11:56:03 +01:00
c71a9db6ed remove IEEE 802.11 WTP Radio Information from responses
RFC 5416 does require IEEE 802.11 WTP Radio Information for
Discovery and Join Response Messages in Chapter 5. However
Chapter 6.25 indicates that this IE should only be included
in the request messages.
2016-02-17 11:52:59 +01:00
3a9a673d71 register pernet support befor anything else 2016-02-08 17:33:31 +01:00
1ee42c1881 unsigned long is 64bit on some platforms, use the 32bit datatype instead 2016-02-08 17:33:00 +01:00
f6711c3b14 Vendor Payload can appear multiple times, make it a list element 2016-02-08 17:31:40 +01:00
385832a010 start with network namespace support
This is incomplete. There are several places left where a global
variable is used (e.g. there can only be one AC session).
2016-02-05 17:43:15 +01:00
69ca3d3256 change __genl_const to const
__genl_const was depreciated some time ago.
2016-02-05 17:42:43 +01:00
8c20d78941 remove dos style newlines 2016-02-05 17:38:49 +01:00
6e3ce9ed74 use libnl3 2016-02-05 17:33:57 +01:00
93cb64ca6f convert (partially) to wolfssl 2016-02-05 17:33:57 +01:00
7e0b977fcd fix strict aliasing errors 2016-02-05 17:33:57 +01:00
88aa3de48b Update OpenWRT patch with fix inject function 2016-02-05 17:33:18 +01:00
58c63bbc4e Fix error in retrasmisson packets 2016-02-05 17:33:09 +01:00
729ed4f768 Use the capwap_exit instead of exit 2015-01-24 13:17:47 +01:00
8042cd2e04 Merge 2015-01-24 13:14:05 +01:00
86998ce2da Merged in alagoutte/smartcapwap/clang (pull request #2)
Fix build with clang and warning found by Clang Analyzer
2015-01-24 13:13:10 +01:00
28112ee228 Fix Branch condition evaluates to a garbage value found by Clang Analyzer
---
 src/ac/ac_backend.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
2015-01-22 10:19:38 +01:00
63189997df Fix Uninitialized argument value found by Clang Analyzer
(Need to be confirmed)
---
 src/ac/ac_dfa_join.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
2015-01-22 10:19:38 +01:00
4d1b60a6c1 Fix Dead Store (Dead increment) found by Clang Analyzer
---
 src/common/binding/ieee80211/ieee80211.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
2015-01-22 10:19:38 +01:00
49f7ba41df Fix Dead Store (Dead increment) found by Clang Analyzer
---
 src/wtp/binding/ieee80211/wifi_drivers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2015-01-22 10:19:38 +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
e5f1fbd992 Fix Dead Store (Dead Assignment) found by Clang Analyzer
---
 src/wtp/binding/ieee80211/wifi_nl80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2015-01-22 10:19:38 +01:00
3a51803eba Fix Dead Store (Dead Assignment) found by Clang Analyzer
---
 src/common/capwap_protocol.c | 2 --
 1 file changed, 2 deletions(-)
2015-01-22 10:19:38 +01:00