$search
00001 /* 00002 * hostapd - Driver operations 00003 * Copyright (c) 2009, Jouni Malinen <j@w1.fi> 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 as 00007 * published by the Free Software Foundation. 00008 * 00009 * Alternatively, this software may be distributed under the terms of BSD 00010 * license. 00011 * 00012 * See README and COPYING for more details. 00013 */ 00014 00015 #ifndef AP_DRV_OPS 00016 #define AP_DRV_OPS 00017 00018 enum wpa_driver_if_type; 00019 struct wpa_bss_params; 00020 struct wpa_driver_scan_params; 00021 00022 void hostapd_set_driver_ops(struct hostapd_driver_ops *ops); 00023 int hostapd_set_privacy(struct hostapd_data *hapd, int enabled); 00024 int hostapd_set_generic_elem(struct hostapd_data *hapd, const u8 *elem, 00025 size_t elem_len); 00026 int hostapd_get_ssid(struct hostapd_data *hapd, u8 *buf, size_t len); 00027 int hostapd_set_ssid(struct hostapd_data *hapd, const u8 *buf, size_t len); 00028 int hostapd_if_add(struct hostapd_data *hapd, enum wpa_driver_if_type type, 00029 const char *ifname, const u8 *addr, void *bss_ctx, 00030 void **drv_priv, char *force_ifname, u8 *if_addr); 00031 int hostapd_if_remove(struct hostapd_data *hapd, enum wpa_driver_if_type type, 00032 const char *ifname); 00033 int hostapd_set_ieee8021x(struct hostapd_data *hapd, 00034 struct wpa_bss_params *params); 00035 int hostapd_get_seqnum(const char *ifname, struct hostapd_data *hapd, 00036 const u8 *addr, int idx, u8 *seq); 00037 int hostapd_flush(struct hostapd_data *hapd); 00038 int hostapd_set_freq(struct hostapd_data *hapd, int mode, int freq, 00039 int channel, int ht_enabled, int sec_channel_offset); 00040 int hostapd_set_rts(struct hostapd_data *hapd, int rts); 00041 int hostapd_set_frag(struct hostapd_data *hapd, int frag); 00042 int hostapd_sta_set_flags(struct hostapd_data *hapd, u8 *addr, 00043 int total_flags, int flags_or, int flags_and); 00044 int hostapd_set_rate_sets(struct hostapd_data *hapd, int *supp_rates, 00045 int *basic_rates, int mode); 00046 int hostapd_set_country(struct hostapd_data *hapd, const char *country); 00047 int hostapd_set_cts_protect(struct hostapd_data *hapd, int value); 00048 int hostapd_set_preamble(struct hostapd_data *hapd, int value); 00049 int hostapd_set_short_slot_time(struct hostapd_data *hapd, int value); 00050 int hostapd_set_tx_queue_params(struct hostapd_data *hapd, int queue, int aifs, 00051 int cw_min, int cw_max, int burst_time); 00052 int hostapd_valid_bss_mask(struct hostapd_data *hapd, const u8 *addr, 00053 const u8 *mask); 00054 struct hostapd_hw_modes * 00055 hostapd_get_hw_feature_data(struct hostapd_data *hapd, u16 *num_modes, 00056 u16 *flags); 00057 int hostapd_driver_commit(struct hostapd_data *hapd); 00058 int hostapd_set_ht_params(struct hostapd_data *hapd, 00059 const u8 *ht_capab, size_t ht_capab_len, 00060 const u8 *ht_oper, size_t ht_oper_len); 00061 int hostapd_drv_none(struct hostapd_data *hapd); 00062 int hostapd_driver_scan(struct hostapd_data *hapd, 00063 struct wpa_driver_scan_params *params); 00064 struct wpa_scan_results * hostapd_driver_get_scan_results( 00065 struct hostapd_data *hapd); 00066 00067 #endif /* AP_DRV_OPS */