summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-09-12 10:11:27 -0500
committerDan Williams <dcbw@redhat.com>2012-09-20 10:11:36 -0500
commit997ef39f88d71c2a811ec6b31b330c4604db7909 (patch)
tree138552f158fabd598a6ecb73ef900e2f25361d74
parent29fe6ec830f131c32cf285fa9c68763d21e875ae (diff)
wifi: rename set_current_ap -> set_active_ap
Matches the D-Bus property, less confusing.
-rw-r--r--src/nm-device-wifi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nm-device-wifi.c b/src/nm-device-wifi.c
index db8ee8ab..54261d74 100644
--- a/src/nm-device-wifi.c
+++ b/src/nm-device-wifi.c
@@ -654,7 +654,7 @@ update_seen_bssids_cache (NMDeviceWifi *self, NMAccessPoint *ap)
}
static void
-set_current_ap (NMDeviceWifi *self, NMAccessPoint *new_ap)
+set_active_ap (NMDeviceWifi *self, NMAccessPoint *new_ap)
{
NMDeviceWifiPrivate *priv;
char *old_path = NULL;
@@ -785,7 +785,7 @@ periodic_update (gpointer user_data)
g_free (old_addr);
g_free (new_addr);
- set_current_ap (self, new_ap);
+ set_active_ap (self, new_ap);
}
new_rate = wifi_utils_get_rate (priv->wifi_data);
@@ -930,7 +930,7 @@ real_take_down (NMDevice *dev)
}
cleanup_association_attempt (self, TRUE);
- set_current_ap (self, NULL);
+ set_active_ap (self, NULL);
remove_all_aps (self);
}
@@ -952,7 +952,7 @@ real_deactivate (NMDevice *dev)
cleanup_association_attempt (self, TRUE);
- set_current_ap (self, NULL);
+ set_active_ap (self, NULL);
priv->rate = 0;
/* If the AP is 'fake', i.e. it wasn't actually found from
@@ -2939,7 +2939,7 @@ real_act_stage1_prepare (NMDevice *dev, NMDeviceStateReason *reason)
nm_active_connection_set_specific_object (NM_ACTIVE_CONNECTION (req), nm_ap_get_dbus_path (ap));
done:
- set_current_ap (self, ap);
+ set_active_ap (self, ap);
return NM_ACT_STAGE_RETURN_SUCCESS;
}
@@ -3540,7 +3540,7 @@ dispose (GObject *object)
priv->supplicant.mgr = NULL;
}
- set_current_ap (self, NULL);
+ set_active_ap (self, NULL);
remove_all_aps (self);
if (priv->wifi_data)