/* 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-2016  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
