]> git.ipfire.org Git - thirdparty/hostap.git/commit
mesh: Use setup completion callback to complete mesh join
authorPeter Oh <peter.oh@bowerswilkins.com>
Tue, 30 Jun 2020 12:18:56 +0000 (14:18 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Nov 2020 09:57:37 +0000 (11:57 +0200)
commitf1df4fbfc7ad3d8c18a8c9fe5c71628f2ed09bb7
treecb6407b5179117d0a78bf0707945a31ee0be6794
parent3c9abc7858ee27a3adb56f14ceb6a916fbe24114
mesh: Use setup completion callback to complete mesh join

Mesh join function is the last function to be called during mesh join
process, but it's been called a bit earlier than it's supposed to be, so
that some mesh parameter values such as VHT capabilities were not
applied correct when mesh join is in process. Moreover, the current
design of mesh join that is called directly after mesh initialization
isn't suitable for DFS channels to use, since mesh join process should
be paused until DFS CAC is done and resumed after it's done.

The callback will be called by hostapd_setup_interface_complete_sync().
There is a possibility that completing mesh init fails, so add error
handling codes for that.

Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
src/ap/hostapd.c
wpa_supplicant/mesh.c