forked from br101/horst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ieee80211_util.h
27 lines (22 loc) · 863 Bytes
/
ieee80211_util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* copied from linux wireless-2.6/net/mac80211/util.c */
/*
* Copyright 2002-2005, Instant802 Networks, Inc.
* Copyright 2005-2006, Devicescape Software, Inc.
* Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
* Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
* Copyright 2014-2015 Bruno Randolf (br1@einfach.org)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* utilities for mac80211
*/
#ifndef _IEEE80211_UTIL_H_
#define _IEEE80211_UTIL_H_
#include <stddef.h>
int ieee80211_frame_duration(int phymode, size_t len, int rate, int short_preamble,
int ackcts, int shortslot, char qos_class, int retries);
int ieee80211_freq2channel(int freq);
int ieee80211_channel2freq(int channel);
#endif