aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-07-25 21:45:17 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-08-06 11:00:59 +0200
commite7f1935c11269bc53cd52425b1025657adddb839 (patch)
tree84bffeddf3dec06016bd0c8c53c09eb3d43a6502 /net/mac80211/ieee80211_i.h
parentmac80211: add channel switch command and beacon callbacks (diff)
downloadlinux-dev-e7f1935c11269bc53cd52425b1025657adddb839.tar.xz
linux-dev-e7f1935c11269bc53cd52425b1025657adddb839.zip
wireless: make TU conversion macros available
A few places in the code (mac80211 and iwlmvm) use the same TU_TO_JIFFIES() macro and could use TU_TO_EXP_TIME() that mac80211 has. Make these available to everyone and use them. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index e94c84050e9c..b6186517ec56 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -53,9 +53,6 @@ struct ieee80211_local;
* increased memory use (about 2 kB of RAM per entry). */
#define IEEE80211_FRAGMENT_MAX 4
-#define TU_TO_JIFFIES(x) (usecs_to_jiffies((x) * 1024))
-#define TU_TO_EXP_TIME(x) (jiffies + TU_TO_JIFFIES(x))
-
/* power level hasn't been configured (or set to automatic) */
#define IEEE80211_UNSET_POWER_LEVEL INT_MIN