Author: avos
Date: Mon Mar 20 08:10:35 2017
New Revision: 315623
URL: https://svnweb.freebsd.org/changeset/base/315623

Log:
  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)

Modified:
  head/sys/dev/rtwn/if_rtwn.c

Modified: head/sys/dev/rtwn/if_rtwn.c
==============================================================================
--- head/sys/dev/rtwn/if_rtwn.c Mon Mar 20 06:12:55 2017        (r315622)
+++ head/sys/dev/rtwn/if_rtwn.c Mon Mar 20 08:10:35 2017        (r315623)
@@ -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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to