2 * Driver interface for RADIUS server or WPS ER only (no driver)
3 * Copyright (c) 2008, Atheros Communications
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
15 struct none_driver_data {
16 struct hostapd_data *hapd;
21 static void * none_driver_hapd_init(struct hostapd_data *hapd,
22 struct wpa_init_params *params)
24 struct none_driver_data *drv;
26 drv = os_zalloc(sizeof(struct none_driver_data));
28 wpa_printf(MSG_ERROR, "Could not allocate memory for none "
38 static void none_driver_hapd_deinit(void *priv)
40 struct none_driver_data *drv = priv;
46 static int none_driver_send_ether(void *priv, const u8 *dst, const u8 *src,
47 u16 proto, const u8 *data, size_t data_len)
53 static void * none_driver_init(void *ctx, const char *ifname)
55 struct none_driver_data *drv;
57 drv = os_zalloc(sizeof(struct none_driver_data));
59 wpa_printf(MSG_ERROR, "Could not allocate memory for none "
69 static void none_driver_deinit(void *priv)
71 struct none_driver_data *drv = priv;
77 const struct wpa_driver_ops wpa_driver_none_ops = {
79 .desc = "no driver (RADIUS server/WPS ER)",
80 .hapd_init = none_driver_hapd_init,
81 .hapd_deinit = none_driver_hapd_deinit,
82 .send_ether = none_driver_send_ether,
83 .init = none_driver_init,
84 .deinit = none_driver_deinit,