Skip to content

Commit

Permalink
Ignore ADDBA requests if we are not ready to receive data frames.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Apr 7, 2024
1 parent e886ebb commit 68dcd1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions itl80211/openbsd/net80211/ieee80211_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -2987,6 +2987,11 @@ ieee80211_recv_addba_req(struct ieee80211com *ic, mbuf_t m,
u_int8_t token, tid;
int err = 0;

/* Ignore if we are not ready to receive data frames. */
if (ic->ic_state != IEEE80211_S_RUN ||
((ic->ic_flags & IEEE80211_F_RSNON) && !ni->ni_port_valid))
return;

if (!(ni->ni_flags & IEEE80211_NODE_HT)) {
DPRINTF(("received ADDBA req from non-HT STA %s\n",
ether_sprintf(ni->ni_macaddr)));
Expand Down

0 comments on commit 68dcd1b

Please sign in to comment.