nl80211: Share monitor mode filtering and reading functions
[wpasupplicant] / hostapd / wme.h
1 /*
2  * hostapd / WMM (Wi-Fi Multimedia)
3  * Copyright 2002-2003, Instant802 Networks, Inc.
4  * Copyright 2005-2006, Devicescape Software, Inc.
5  *
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.
9  *
10  * Alternatively, this software may be distributed under the terms of BSD
11  * license.
12  *
13  * See README and COPYING for more details.
14  */
15
16 #ifndef WME_H
17 #define WME_H
18
19 struct ieee80211_mgmt;
20
21 u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid);
22 int hostapd_eid_wmm_valid(struct hostapd_data *hapd, u8 *eid, size_t len);
23 #ifdef NEED_MLME
24 int hostapd_wmm_sta_config(struct hostapd_data *hapd, struct sta_info *sta);
25 #else /* NEED_MLME */
26 static inline int hostapd_wmm_sta_config(struct hostapd_data *hapd,
27                                          struct sta_info *sta)
28 {
29         return 0;
30 }
31 #endif /* NEED_MLME */
32 void hostapd_wmm_action(struct hostapd_data *hapd, struct ieee80211_mgmt *mgmt,
33                         size_t len);
34 int wmm_process_tspec(struct wmm_tspec_element *tspec);
35
36 #endif /* WME_H */