usb: Fix compilation for Windows
[qemu/ar7.git] / hw / net / atheros_wlan_packet.h
blobae4603b990f5f9f8a0ae6380179889599181797e
1 /**
2 * QEMU WLAN access point emulation
4 * Copyright (c) 2008 Clemens Kolbitsch
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
24 * Modifications:
25 * 2008-February-24 Clemens Kolbitsch :
26 * New implementation based on ne2000.c
30 #ifndef atheros_wlan_packet_h
31 #define atheros_wlan_packet_h 1
33 #include "hw/atheros_wlan.h"
35 void Atheros_WLAN_init_frame(Atheros_WLANState *s, struct mac80211_frame *frame);
37 int Atheros_WLAN_dumpFrame(struct mac80211_frame *frame, int frame_len, char *filename);
39 struct mac80211_frame *Atheros_WLAN_create_beacon_frame(void);
40 struct mac80211_frame *Atheros_WLAN_create_probe_response(void);
41 struct mac80211_frame *Atheros_WLAN_create_authentication(void);
42 struct mac80211_frame *Atheros_WLAN_create_deauthentication(void);
43 struct mac80211_frame *Atheros_WLAN_create_association_response(void);
44 struct mac80211_frame *Atheros_WLAN_create_disassociation(void);
45 struct mac80211_frame *Atheros_WLAN_create_data_reply(Atheros_WLANState *s, struct mac80211_frame *incoming);
46 struct mac80211_frame *Atheros_WLAN_create_data_packet(Atheros_WLANState *s, const uint8_t *buf, int size);
48 #endif // atheros_wlan_packet_h