Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Feb 2016 09:43:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-wireless@FreeBSD.org
Subject:   [Bug 197498] [net80211]: Setting ssid on running interface in adhoc mode causes panic
Message-ID:  <bug-197498-21060-fnqY6Pk5lx@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197498-21060@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197498-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D197498

Andriy Voskoboinyk <avos@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |In Progress

--- Comment #6 from Andriy Voskoboinyk <avos@freebsd.org> ---
Before https://reviews.freebsd.org/D5145, scanning and <smth> -> INIT (FEXT
REINIT) -> <smth2> state transition were two solid parts. How things were
worked:
1) network.subr executes 'ifconfig <iface> up', INIT -> SCAN (w/ FEXT_REINIT
flag) state transition happens;
2) INIT -> INIT, FEXT_REINIT dropped;
3) INIT -> SCAN, scanning starts (and cannot be interrupted, since
newstate_cb() uses the same taskqueue)
4) network.subr executes hostapd / wpa_supplicant -> interface reinitialize=
s.
5) SCAN -> SCAN (w/ FEXT_REINIT flag); the task was enqueued, but (!) will =
not
be executed untill scan ends;
6) scan ends (no networks were seen, so it decides to create another one); =
SCAN
-> RUN state transition is enqueued (FEXT_REINIT is still here, but nstate =
will
be changed to RUN).
7) newstate_cb() is executed, SCAN -> INIT state transition (everything is
dropped via ieee80211_reset_bss() call).
8) and INIT -> RUN state transition is issued (with corresponding result).

Note: FEXT_REINIT is not added in STA mode, so it's not affected by this bu=
g.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197498-21060-fnqY6Pk5lx>