mesh: Set interface type to mesh before setting interface
Correct interface type is required to start DFS CAC that can be triggered during interface setup. Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
This commit is contained in:
parent
c95619c211
commit
3ba4a25e5d
1 changed files with 5 additions and 5 deletions
|
@ -372,14 +372,14 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s,
|
||||||
conf->basic_rates[rate_len] = -1;
|
conf->basic_rates[rate_len] = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hostapd_setup_interface(ifmsh)) {
|
if (wpa_drv_init_mesh(wpa_s)) {
|
||||||
wpa_printf(MSG_ERROR,
|
wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
|
||||||
"Failed to initialize hostapd interface for mesh");
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wpa_drv_init_mesh(wpa_s)) {
|
if (hostapd_setup_interface(ifmsh)) {
|
||||||
wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
|
wpa_printf(MSG_ERROR,
|
||||||
|
"Failed to initialize hostapd interface for mesh");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue