platform/wifi: turn NMWifiUtils into a GObject
This commit is contained in:
@@ -5993,14 +5993,14 @@ wifi_get_wifi_data (NMPlatform *platform, int ifindex)
|
||||
if (!wifi_data) {
|
||||
if (pllink) {
|
||||
if (pllink->type == NM_LINK_TYPE_WIFI)
|
||||
wifi_data = nm_wifi_utils_init (ifindex, TRUE);
|
||||
wifi_data = nm_wifi_utils_new (ifindex, TRUE);
|
||||
else if (pllink->type == NM_LINK_TYPE_OLPC_MESH) {
|
||||
/* The kernel driver now uses nl80211, but we force use of WEXT because
|
||||
* the cfg80211 interactions are not quite ready to support access to
|
||||
* mesh control through nl80211 just yet.
|
||||
*/
|
||||
#if HAVE_WEXT
|
||||
wifi_data = nm_wifi_utils_wext_init (ifindex, FALSE);
|
||||
wifi_data = nm_wifi_utils_wext_new (ifindex, FALSE);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -6096,7 +6096,7 @@ static NMSettingWirelessWakeOnWLan
|
||||
wifi_get_wake_on_wlan (NMPlatform *platform, int ifindex)
|
||||
{
|
||||
WIFI_GET_WIFI_DATA_NETNS (wifi_data, platform, ifindex, FALSE);
|
||||
return wifi_utils_get_wake_on_wlan (wifi_data);
|
||||
return nm_wifi_utils_get_wake_on_wlan (wifi_data);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
@@ -6104,7 +6104,7 @@ wifi_set_wake_on_wlan (NMPlatform *platform, int ifindex,
|
||||
NMSettingWirelessWakeOnWLan wowl)
|
||||
{
|
||||
WIFI_GET_WIFI_DATA_NETNS (wifi_data, platform, ifindex, FALSE);
|
||||
return wifi_utils_set_wake_on_wlan (wifi_data, wowl);
|
||||
return nm_wifi_utils_set_wake_on_wlan (wifi_data, wowl);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
@@ -7013,7 +7013,7 @@ nm_linux_platform_init (NMLinuxPlatform *self)
|
||||
priv->delayed_action.list_master_connected = g_ptr_array_new ();
|
||||
priv->delayed_action.list_refresh_link = g_ptr_array_new ();
|
||||
priv->delayed_action.list_wait_for_nl_response = g_array_new (FALSE, TRUE, sizeof (DelayedActionWaitForNlResponseData));
|
||||
priv->wifi_data = g_hash_table_new_full (nm_direct_hash, NULL, NULL, (GDestroyNotify) nm_wifi_utils_unref);
|
||||
priv->wifi_data = g_hash_table_new_full (nm_direct_hash, NULL, NULL, g_object_unref);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user