mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-24 06:40:37 +01:00
wifi: rename some AP debug dumping functions
This commit is contained in:
parent
339229e4c6
commit
f6aa009712
3 changed files with 7 additions and 8 deletions
|
|
@ -1690,7 +1690,7 @@ nm_device_wifi_get_address (NMDeviceWifi *self,
|
|||
}
|
||||
|
||||
static void
|
||||
nm_device_wifi_ap_list_print (NMDeviceWifi *self)
|
||||
ap_list_dump (NMDeviceWifi *self)
|
||||
{
|
||||
NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE (self);
|
||||
GSList * elt;
|
||||
|
|
@ -1701,7 +1701,7 @@ nm_device_wifi_ap_list_print (NMDeviceWifi *self)
|
|||
nm_log_dbg (LOGD_WIFI_SCAN, "Current AP list:");
|
||||
for (elt = priv->ap_list; elt; elt = g_slist_next (elt), i++) {
|
||||
NMAccessPoint * ap = NM_AP (elt->data);
|
||||
nm_ap_print_self (ap, "AP: ");
|
||||
nm_ap_dump (ap, "List AP: ");
|
||||
}
|
||||
nm_log_dbg (LOGD_WIFI_SCAN, "Current AP list: done");
|
||||
}
|
||||
|
|
@ -2180,7 +2180,7 @@ supplicant_iface_scan_done_cb (NMSupplicantInterface *iface,
|
|||
* happens when there are actual scan results to process.
|
||||
*/
|
||||
cull_scan_list (self);
|
||||
nm_device_wifi_ap_list_print (self);
|
||||
ap_list_dump (self);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
@ -2421,7 +2421,7 @@ supplicant_iface_new_bss_cb (NMSupplicantInterface *iface,
|
|||
|
||||
ap = nm_ap_new_from_properties (properties);
|
||||
if (ap) {
|
||||
nm_ap_print_self (ap, "AP: ");
|
||||
nm_ap_dump (ap, "New AP: ");
|
||||
|
||||
/* Add the AP to the device's AP list */
|
||||
merge_scanned_ap (self, ap);
|
||||
|
|
@ -2430,7 +2430,7 @@ supplicant_iface_new_bss_cb (NMSupplicantInterface *iface,
|
|||
/* Remove outdated access points */
|
||||
cull_scan_list (self);
|
||||
|
||||
nm_device_wifi_ap_list_print (self);
|
||||
ap_list_dump (self);
|
||||
} else {
|
||||
nm_log_warn (LOGD_WIFI_SCAN, "(%s): invalid AP properties received",
|
||||
nm_device_get_iface (NM_DEVICE (self)));
|
||||
|
|
|
|||
|
|
@ -751,8 +751,7 @@ error:
|
|||
#define MAC_ARG(x) ((guint8*)(x))[0],((guint8*)(x))[1],((guint8*)(x))[2],((guint8*)(x))[3],((guint8*)(x))[4],((guint8*)(x))[5]
|
||||
|
||||
void
|
||||
nm_ap_print_self (NMAccessPoint *ap,
|
||||
const char * prefix)
|
||||
nm_ap_dump (NMAccessPoint *ap, const char *prefix)
|
||||
{
|
||||
NMAccessPointPrivate *priv;
|
||||
|
||||
|
|
|
|||
|
|
@ -112,6 +112,6 @@ NMAccessPoint * nm_ap_match_in_list (NMAccessPoint *find_ap,
|
|||
GSList *ap_list,
|
||||
gboolean strict_match);
|
||||
|
||||
void nm_ap_print_self (NMAccessPoint *ap, const char * prefix);
|
||||
void nm_ap_dump (NMAccessPoint *ap, const char *prefix);
|
||||
|
||||
#endif /* NM_ACCESS_POINT_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue