mesh: Connection and group started/removed events into debug log
The messages were sent out with wpa_msg_ctrl() so they were not visible in the debug log. However, these would be quite helpful strings to search for in the debug log, so change these messages to use wpa_msg(). Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2da4a56f22
commit
6174de663c
2 changed files with 9 additions and 11 deletions
|
@ -715,8 +715,8 @@ static void mesh_mpm_plink_estab(struct wpa_supplicant *wpa_s,
|
|||
eloop_cancel_timeout(plink_timer, wpa_s, sta);
|
||||
|
||||
/* Send ctrl event */
|
||||
wpa_msg_ctrl(wpa_s, MSG_INFO, MESH_PEER_CONNECTED MACSTR,
|
||||
MAC2STR(sta->addr));
|
||||
wpa_msg(wpa_s, MSG_INFO, MESH_PEER_CONNECTED MACSTR,
|
||||
MAC2STR(sta->addr));
|
||||
}
|
||||
|
||||
|
||||
|
@ -854,9 +854,8 @@ static void mesh_mpm_fsm(struct wpa_supplicant *wpa_s, struct sta_info *sta,
|
|||
" closed with reason %d",
|
||||
MAC2STR(sta->addr), reason);
|
||||
|
||||
wpa_msg_ctrl(wpa_s, MSG_INFO,
|
||||
MESH_PEER_DISCONNECTED MACSTR,
|
||||
MAC2STR(sta->addr));
|
||||
wpa_msg(wpa_s, MSG_INFO, MESH_PEER_DISCONNECTED MACSTR,
|
||||
MAC2STR(sta->addr));
|
||||
|
||||
hapd->num_plinks--;
|
||||
|
||||
|
|
|
@ -1684,10 +1684,9 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
|
|||
return;
|
||||
}
|
||||
wpa_s->current_bss = bss;
|
||||
wpa_msg_ctrl(wpa_s, MSG_INFO, MESH_GROUP_STARTED
|
||||
"ssid=\"%s\" id=%d",
|
||||
wpa_ssid_txt(ssid->ssid, ssid->ssid_len),
|
||||
ssid->id);
|
||||
wpa_msg(wpa_s, MSG_INFO, MESH_GROUP_STARTED "ssid=\"%s\" id=%d",
|
||||
wpa_ssid_txt(ssid->ssid, ssid->ssid_len),
|
||||
ssid->id);
|
||||
#else /* CONFIG_MESH */
|
||||
wpa_msg(wpa_s, MSG_ERROR,
|
||||
"mesh mode support not included in the build");
|
||||
|
@ -2610,8 +2609,8 @@ void wpa_supplicant_deauthenticate(struct wpa_supplicant *wpa_s,
|
|||
|
||||
#ifdef CONFIG_MESH
|
||||
if (wpa_s->ifmsh) {
|
||||
wpa_msg_ctrl(wpa_s, MSG_INFO, MESH_GROUP_REMOVED "%s",
|
||||
wpa_s->ifname);
|
||||
wpa_msg(wpa_s, MSG_INFO, MESH_GROUP_REMOVED "%s",
|
||||
wpa_s->ifname);
|
||||
wpa_supplicant_leave_mesh(wpa_s);
|
||||
}
|
||||
#endif /* CONFIG_MESH */
|
||||
|
|
Loading…
Reference in a new issue