2 * hostapd / Driver interface for RADIUS server only (no driver)
3 * Copyright (c) 2008, Atheros Communications
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
17 #include "../hostapd/hostapd.h"
21 struct none_driver_data {
22 struct hostapd_data *hapd;
26 static void * none_driver_init(struct hostapd_data *hapd,
27 struct wpa_init_params *params)
29 struct none_driver_data *drv;
31 drv = os_zalloc(sizeof(struct none_driver_data));
33 wpa_printf(MSG_ERROR, "Could not allocate memory for none "
43 static void none_driver_deinit(void *priv)
45 struct none_driver_data *drv = priv;
51 static int none_driver_send_ether(void *priv, const u8 *dst, const u8 *src,
52 u16 proto, const u8 *data, size_t data_len)
58 const struct wpa_driver_ops wpa_driver_none_ops = {
60 .hapd_init = none_driver_init,
61 .hapd_deinit = none_driver_deinit,
62 .send_ether = none_driver_send_ether,