diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2020-03-05 10:13:53 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2020-03-05 10:13:53 +0000 |
commit | 8a9b0e9a7fdd8c87a218b4a7ef448fe3e09ceb06 (patch) | |
tree | 21d101af4e64a0c129b8ec634f5cb4fa2ac1d966 /sys | |
parent | 585e24bb44448abcfb881b41be2c3414968f4eaf (diff) |
fix build without MIRA_AGGRESSIVE_DOWNWARDS_PROBING
ok tb@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_mira.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_mira.c b/sys/net80211/ieee80211_mira.c index 2d5ecb65b26..e69b02d42b2 100644 --- a/sys/net80211/ieee80211_mira.c +++ b/sys/net80211/ieee80211_mira.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_mira.c,v 1.19 2020/03/05 10:13:12 stsp Exp $ */ +/* $OpenBSD: ieee80211_mira.c,v 1.20 2020/03/05 10:13:52 stsp Exp $ */ /* * Copyright (c) 2016 Stefan Sperling <stsp@openbsd.org> @@ -1138,7 +1138,10 @@ ieee80211_mira_choose(struct ieee80211_mira_node *mn, struct ieee80211com *ic, struct ieee80211_node *ni) { struct ieee80211_mira_goodput_stats *g = &mn->g[ni->ni_txmcs]; - int s, sgi = (ni->ni_flags & IEEE80211_NODE_HT_SGI20) ? 1 : 0; + int s; +#ifdef MIRA_AGGRESSIVE_DOWNWARDS_PROBING + int sgi = (ni->ni_flags & IEEE80211_NODE_HT_SGI20) ? 1 : 0; +#endif s = splnet(); |