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/8b51b5c6343f
branches:  trunk
changeset: 949535:8b51b5c6343f
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 c1ff4b9cf1a6 -r 8b51b5c6343f 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
@@ -1731,9 +1731,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