Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/net80211 Can not call ieee80211_sta_join() locked,...



details:   https://anonhg.NetBSD.org/src-all/rev/7a8592be7512
branches:  trunk
changeset: 360873:7a8592be7512
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Mon Jul 06 20:06:00 2020 +0200

description:
Can not call ieee80211_sta_join() locked, it causes locking against
myself error on association.

diffstat:

 sys/net80211/ieee80211_ioctl.c |  2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 7054384e4fa8 -r 7a8592be7512 sys/net80211/ieee80211_ioctl.c
--- a/sys/net80211/ieee80211_ioctl.c    Mon Jul 06 20:04:01 2020 +0200
+++ b/sys/net80211/ieee80211_ioctl.c    Mon Jul 06 20:06:00 2020 +0200
@@ -1730,9 +1730,7 @@
        if (lookup.se == NULL)
                return ENOENT;
        mlmedebug(vap, mac, IEEE80211_MLME_ASSOC, 0);
-       IEEE80211_LOCK(vap->iv_ic);
        int result = ieee80211_sta_join(vap, lookup.se->se_chan, lookup.se);
-       IEEE80211_UNLOCK(vap->iv_ic);
        if (!result)
                return EIO;             /* XXX unique but could be better */
        return 0;



Home | Main Index | Thread Index | Old Index