2 * hostapd / IEEE 802.11 Management
3 * Copyright (c) 2002-2006, Jouni Malinen <j@w1.fi>
4 * Copyright (c) 2007-2008, Intel Corporation
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * Alternatively, this software may be distributed under the terms of BSD
13 * See README and COPYING for more details.
19 #include "ieee802_11_defs.h"
21 /* Parsed Information Elements */
22 struct ieee802_11_elems {
42 u8 ext_supp_rates_len;
60 u8 ht_capabilities_len;
65 typedef enum { ParseOK = 0, ParseUnknown = 1, ParseFailed = -1 } ParseRes;
68 struct hostapd_frame_info {
74 unsigned int passive_scan:1;
81 void ieee802_11_send_deauth(struct hostapd_data *hapd, u8 *addr, u16 reason);
82 void ieee802_11_mgmt(struct hostapd_data *hapd, u8 *buf, size_t len,
83 u16 stype, struct hostapd_frame_info *fi);
84 void ieee802_11_mgmt_cb(struct hostapd_data *hapd, u8 *buf, size_t len,
86 ParseRes ieee802_11_parse_elems(struct hostapd_data *hapd, u8 *start,
88 struct ieee802_11_elems *elems,
90 void ieee802_11_print_ssid(char *buf, const u8 *ssid, u8 len);
91 void ieee80211_michael_mic_failure(struct hostapd_data *hapd, const u8 *addr,
93 int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen);
94 int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
95 char *buf, size_t buflen);
96 u16 hostapd_own_capab_info(struct hostapd_data *hapd, struct sta_info *sta,
98 u8 * hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid);
99 u8 * hostapd_eid_ext_supp_rates(struct hostapd_data *hapd, u8 *eid);
100 u8 * hostapd_eid_ht_capabilities_info(struct hostapd_data *hapd, u8 *eid);
101 u8 * hostapd_eid_ht_operation(struct hostapd_data *hapd, u8 *eid);
102 int hostapd_ht_operation_update(struct hostapd_iface *iface);
104 #endif /* IEEE802_11_H */