diff --git a/itl80211/openbsd/net80211/ieee80211_ra.c b/itl80211/openbsd/net80211/ieee80211_ra.c index 4e1bd00c..323dfa09 100644 --- a/itl80211/openbsd/net80211/ieee80211_ra.c +++ b/itl80211/openbsd/net80211/ieee80211_ra.c @@ -744,7 +744,7 @@ ieee80211_ra_add_stats_ht(struct ieee80211_ra_node *rn, static const uint64_t alpha = RA_FP_1 / 8; /* 1/8 = 0.125 */ static const uint64_t beta = RA_FP_1 / 4; /* 1/4 = 0.25 */ int s; - struct ieee80211_ra_goodput_stats *g = &rn->g[mcs]; + struct ieee80211_ra_goodput_stats *g; uint64_t sfer, rate, delta; /* @@ -758,6 +758,7 @@ ieee80211_ra_add_stats_ht(struct ieee80211_ra_node *rn, s = splnet(); + g = &rn->g[mcs]; g->nprobe_pkts += total; g->nprobe_fail += fail;