Skip to content

Commit

Permalink
ra: access good put stats array before mcs value check.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Mar 18, 2024
1 parent 32fb693 commit 9d5145d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion itl80211/openbsd/net80211/ieee80211_ra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand All @@ -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;

Expand Down

0 comments on commit 9d5145d

Please sign in to comment.