mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
rtwn: fix node id assignment.
Do not assign new id if node is reused. Tested with RTL8821AU, HOSTAP mode + RTL8188EU, STA mode (with inactivity timeout == 90)
This commit is contained in:
parent
b79299b5e7
commit
90589b904f
1 changed files with 2 additions and 2 deletions
|
|
@ -1718,13 +1718,13 @@ rtwn_node_alloc(struct ieee80211vap *vap,
|
|||
}
|
||||
|
||||
static void
|
||||
rtwn_newassoc(struct ieee80211_node *ni, int isnew)
|
||||
rtwn_newassoc(struct ieee80211_node *ni, int isnew __unused)
|
||||
{
|
||||
struct rtwn_softc *sc = ni->ni_ic->ic_softc;
|
||||
struct rtwn_node *un = RTWN_NODE(ni);
|
||||
int id;
|
||||
|
||||
if (!isnew)
|
||||
if (un->id != RTWN_MACID_UNDEFINED)
|
||||
return;
|
||||
|
||||
RTWN_NT_LOCK(sc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue