Moep Library  2.0-nc
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
ieee80211.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013, 2014 Maurice Leclaire <leclaire@in.tum.de>
3  * Stephan M. Guenther <moepi@moepi.net>
4  *
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.
8  *
9  * See COPYING for more details.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
26 #ifndef __MOEP80211_MODULES_IEEE80211_H
27 #define __MOEP80211_MODULES_IEEE80211_H
28 
29 #include <moep/dev.h>
30 #include <moep/frame.h>
31 #include <moep/ieee80211_frametypes.h>
32 
33 #include <moep/modules/radio.h>
34 
35 
37  __le16 frame_control;
38  __le16 duration_id;
39  u8 addr1[IEEE80211_ALEN];
40  u8 addr2[IEEE80211_ALEN];
41  u8 addr3[IEEE80211_ALEN];
42  __le16 seq_ctrl;
43  u8 addr4[IEEE80211_ALEN];
44  __le16 qos_ctrl;
45  __le32 ht_ctrl;
46 } __attribute__((packed));
47 
48 
77 moep_dev_t moep_dev_ieee80211_open(const char *devname, u32 freq,
78  enum moep80211_chan_width chan_width,
79  u32 freq1, u32 freq2, int mtu);
80 
95 
114 
116 #endif /* __MOEP80211_MODULES_IEEE80211_H */
struct moep_frame * moep_frame_t
a moep frame
Definition: frame.h:45
moep_dev_t moep_dev_ieee80211_open(const char *devname, u32 freq, enum moep80211_chan_width chan_width, u32 freq1, u32 freq2, int mtu)
open an ieee80211 device
moep80211_chan_width
channel width definition
Definition: radio.h:37
moep_frame_t moep_frame_ieee80211_create(void)
create a ieee80211 frame
struct moep_dev * moep_dev_t
a moep device
Definition: dev.h:46
struct ieee80211_hdr_gen * moep_frame_ieee80211_hdr(moep_frame_t frame)
ieee80211 header
Definition: ieee80211.h:36