Jouni Malinen
2586bc64d0
Move authentication server setup into separate file
2009-12-25 13:43:43 +02:00
Jouni Malinen
ad44e244b1
Move iapp.c into src/ap
2009-12-25 13:04:45 +02:00
Jouni Malinen
0e2d35c614
Move ctrl_iface_ap.c into src/ap
2009-12-25 12:25:55 +02:00
Jouni Malinen
e5f2b59c7e
Move hostapd driver initialization away from hostapd.c
...
This makes it easier to customize AP mode initialization for
wpa_supplicant.
2009-12-25 12:21:11 +02:00
Jouni Malinen
363b9e6052
Fix wpa_supplicant CONFIG_AP build
2009-12-25 12:06:53 +02:00
Jouni Malinen
64ee63a0d8
wired: Use os_*() wrappers more consistently
...
Need to allocate and free memory with same style to avoid WPA_TRACE
errors.
2009-12-25 11:54:02 +02:00
Jouni Malinen
bee07ce805
hostapd: Do not call eloop_terminate() on interface setup failure
...
The caller is able to handle the error code properly and there is no
need to forcefully stop the eloop run here.
2009-12-25 11:51:20 +02:00
Jouni Malinen
65668bfb77
Add forgotten src/ap/utils.c file
...
Commit 32da61d9c9
was supposed to add
this file.
2009-12-25 01:31:28 +02:00
Jouni Malinen
9fdeaf8f3a
WPS: Fix a memory leak if set_ie_cb() is not set
...
Skip WPS IE building for Beacon and Probe Response frames is set_ie_cb()
is not set. This fixes a memory leak and optimizes operations by not
allocating memory and building the WPS IEs unnecessarily.
2009-12-25 01:29:59 +02:00
Jouni Malinen
32da61d9c9
Move wps_hostapd.c into src/ap
2009-12-25 01:26:37 +02:00
Jouni Malinen
1057d78eb8
Move generic AP functionality implementation into src/ap
...
This code can be shared by both hostapd and wpa_supplicant and this
is an initial step in getting the generic code moved to be under the
src directories. Couple of generic files still remain under the
hostapd directory due to direct dependencies to files there. Once the
dependencies have been removed, they will also be moved to the src/ap
directory to allow wpa_supplicant to be built without requiring anything
from the hostapd directory.
2009-12-25 01:12:50 +02:00
Jouni Malinen
6d1278e998
Remove direct driver calls from tkip_countermeasures.c
2009-12-25 00:39:22 +02:00
Jouni Malinen
2ce86d9d72
Remove direct driver calls from ieee802_11.c
2009-12-25 00:35:10 +02:00
Jouni Malinen
bdee6fceb9
Remove direct driver calls from sta_info.c
2009-12-25 00:30:16 +02:00
Jouni Malinen
36592d31c1
Remove direct driver calls from vlan_init.c
2009-12-25 00:17:07 +02:00
Jouni Malinen
677449b97e
Remove direct driver calls from beacon.c
2009-12-25 00:10:31 +02:00
Jouni Malinen
2f3e0bd4d4
Remove need for direct driver calls from ieee802_11_auth.c
2009-12-24 23:49:19 +02:00
Jouni Malinen
d24df7c33d
Avoid direct call to hostapd_new_assoc_sta from ieee802_11.c
2009-12-24 23:42:13 +02:00
Jouni Malinen
a2de634d1c
Removed hostapd_new_assoc_sta() from driver wrapper API
...
This is not called directly by any of the driver wrappers anymore, so
the function can be removed from driver.h and drv_callbacks.c.
2009-12-24 23:30:32 +02:00
Jouni Malinen
94709ea358
Avoid a direct call to drv_callbacks.c from beacon.c
2009-12-24 23:20:53 +02:00
Jouni Malinen
010401fe65
Move hostapd_set_drv_ieee8021x() into ap_drv_ops
2009-12-24 23:17:11 +02:00
Jouni Malinen
4c2ddda495
Move hostapd-to-driver flag mapping to be within ap_drv_ops.c
2009-12-24 23:11:16 +02:00
Jouni Malinen
d3b86aed73
Move wpa_drivers dependency into config_file.c
...
This cleans up config.o from driver wrapper dependencies.
2009-12-24 22:50:17 +02:00
Jouni Malinen
a3d4fafa41
Remove direct driver calls from accounting.c
2009-12-24 22:24:57 +02:00
Jouni Malinen
41d719d6e0
Move hostapd configuration parser into separate file
...
config.c includes now only the generic helper functions that are needed
both for hostapd and the AP mode operations in wpa_supplicant.
hostapd/config_file.c is only needed for hostapd.
2009-12-24 21:05:40 +02:00
Jouni Malinen
45cefa0bf3
Move more driver ops into struct hostapd_driver_ops
...
This removes need to include driver_i.h into ieee802_1x.c.
2009-12-24 20:41:30 +02:00
Jouni Malinen
579bc0e64c
Move hostapd_set_privacy() call to hostapd.c
...
IEEE 802.1X code does not need to know about this driver configuration
mechanism and all the other calls were already in hostapd.c.
2009-12-24 20:18:55 +02:00
Jouni Malinen
c90933d2a3
Use hostapd driver op wrapper for send_mgmt_frame
2009-12-24 20:13:44 +02:00
Jouni Malinen
14f7938660
Merge driver ops set_wps_beacon_ie and set_wps_probe_resp_ie
...
set_ap_wps_ie() is not used to set WPS IE for both Beacon and Probe
Response frames with a single call. In addition, struct wpabuf is used
instead of separate u8* and length fields. This avoids duplicated
allocation of the IEs and simplifies code in general.
2009-12-24 19:46:06 +02:00
Jouni Malinen
bf65bc638f
hostapd: Use separate driver operations abstraction
...
It would be bettet to avoid including driver_i.h, i.e., direct driver
operation calls from hostapd components. This is an initial step in
that direction for WPS IE updates.
2009-12-24 16:15:22 +02:00
Jouni Malinen
9aca440199
Drop WPA_TRACE reference before eloop timeout handler call
...
This avoids bogus error reports for cases where the timeout handler
frees the memory that was pointed to by the eloop timeout context.
2009-12-24 12:41:20 +02:00
Jouni Malinen
1b9eb51bbd
Enable IPv6 support for libutils.a and libradius.a
2009-12-24 12:27:42 +02:00
Jouni Malinen
6aa9e7a64a
Redesign struct hostapd_ip_addr to be of fixed size
...
This structure is embedded in some other structures and as such, it
would be nicer if this would not change its length based on build
options.
2009-12-24 12:26:47 +02:00
Jouni Malinen
f42cdcc894
radius_example: Fix memory leak on deinit
2009-12-24 12:18:57 +02:00
Jouni Malinen
64ce68fc42
Comment out CONFIG_IPV6 for now in RADIUS library build
...
This needs to be used consistently in order to get correct size for
struct hostapd_ip_addr.
2009-12-24 12:18:22 +02:00
Jouni Malinen
e20845184a
Build radius_example using src/*/lib*.a
2009-12-24 12:05:51 +02:00
Jouni Malinen
174e899f69
Fix RADIUS client callback function parameters
2009-12-24 12:03:40 +02:00
Jouni Malinen
8a404b598d
Add build rules for src/radius/libradius.a
2009-12-24 11:59:08 +02:00
Jouni Malinen
019c8c669d
Fix radius_example build
2009-12-24 11:58:19 +02:00
Felix Fietkau
fbbfcbac29
hostapd: Add WDS (4-address frame) mode with per-station interfaces
...
This mode allows associated stations to use 4-address frames to allow
layer 2 bridging to be used. At least for the time being, this is only
supported with driver=nl80211.
2009-12-24 11:46:22 +02:00
Jouni Malinen
09eac1ac56
nl80211: Sync with wireless-testing.git linux/nl80211.h
2009-12-24 11:07:02 +02:00
Jouni Malinen
2a29f0d45c
Rename EAP TLS variables to make server and peer code consistent
2009-12-24 00:16:58 +02:00
Jouni Malinen
09e47a0768
Convert to use struct dl_list
2009-12-23 23:56:35 +02:00
Jouni Malinen
3e82a2ed62
Add developer documentation for WPA_TRACE
2009-12-23 23:35:33 +02:00
Jouni Malinen
96603e4fe1
Comment CONFIG_WPA_TRACE_BFD=y out by default
2009-12-23 23:20:11 +02:00
Jouni Malinen
bf5d6fc37e
Update documentation for uni tests to use the new tests directory
2009-12-23 23:19:22 +02:00
Jouni Malinen
a5b9337fc8
Avoid NULL dereference on error path when default driver is used
2009-12-23 23:16:21 +02:00
Jouni Malinen
5e5223bf29
trace: Show eloop unregistered handler function name/file/line
2009-12-22 01:52:48 +02:00
Jouni Malinen
94caf8cd62
trace: Filter out uninteresting functions from backtrace
...
This filters out the functions inside trace.c and functions before
main() since those are not relevant to the actual issue that is being
reported.
2009-12-22 01:29:15 +02:00
Jouni Malinen
a6ff0e0810
trace: Add active reference tracking
...
This WPA_TRACE=y additions allows components to register active references
to memory that has been provided to them as a pointer. If such an actively
referenced memory area is freed, tracer will report this as an error and
backtraces of both the invalid free and the location where this pointer
was marked referenced are shown.
2009-12-22 01:11:15 +02:00