summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/common.h
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2014-03-02 00:15:54 +0400
committerJohn W. Linville <linville@tuxdriver.com>2014-03-17 21:13:07 +0400
commitc7303263a0ab2af8f7b6344db7e861c67bd7d29c (patch)
tree5dd918ea70f81a726b0a299ae4e4ccd53fc509d8 /drivers/net/wireless/ath/ath9k/common.h
parentdf728780d2ae2a47ffb9ce6486f0eb190d3371a6 (diff)
downloadlinux-c7303263a0ab2af8f7b6344db7e861c67bd7d29c.tar.xz
ath9k|ath9k_htc: move IEEE80211_MS_TO_TU to common
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common.h b/drivers/net/wireless/ath/ath9k/common.h
index 26aafb394a5c..8deed82f741b 100644
--- a/drivers/net/wireless/ath/ath9k/common.h
+++ b/drivers/net/wireless/ath/ath9k/common.h
@@ -44,6 +44,8 @@
#define ATH_EP_RND(x, mul) \
(((x) + ((mul)/2)) / (mul))
+#define IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024)
+
struct ath_beacon_config {
int beacon_interval;
u16 dtim_period;