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
@ -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…
x
Reference in New Issue
Block a user