3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-19 09:52:46 +01:00

device: Drop unused device->connected_mde

This commit is contained in:
Andrew Zaborowski 2016-12-23 05:38:12 -05:00 committed by Denis Kenzior
parent 7e81dcac6f
commit 15f4ddfaa6

View File

@ -72,7 +72,6 @@ struct device {
struct l_dbus_message *disconnect_pending; struct l_dbus_message *disconnect_pending;
uint32_t netdev_watch_id; uint32_t netdev_watch_id;
struct watchlist state_watches; struct watchlist state_watches;
uint8_t *connected_mde;
struct wiphy *wiphy; struct wiphy *wiphy;
struct netdev *netdev; struct netdev *netdev;
@ -503,9 +502,6 @@ static void device_reset_connection_state(struct device *device)
device->connected_bss = NULL; device->connected_bss = NULL;
device->connected_network = NULL; device->connected_network = NULL;
l_free(device->connected_mde);
device->connected_mde = NULL;
l_dbus_property_changed(dbus, device_get_path(device), l_dbus_property_changed(dbus, device_get_path(device),
IWD_DEVICE_INTERFACE, "ConnectedNetwork"); IWD_DEVICE_INTERFACE, "ConnectedNetwork");
l_dbus_property_changed(dbus, network_get_path(network), l_dbus_property_changed(dbus, network_get_path(network),
@ -789,7 +785,6 @@ void device_connect_network(struct device *device, struct network *network,
device->connected_bss = bss; device->connected_bss = bss;
device->connected_network = network; device->connected_network = network;
device->connected_mde = mde;
device_enter_state(device, DEVICE_STATE_CONNECTING); device_enter_state(device, DEVICE_STATE_CONNECTING);
@ -1291,8 +1286,6 @@ static void device_free(void *user)
netdev_watch_remove(device->netdev, device->netdev_watch_id); netdev_watch_remove(device->netdev, device->netdev_watch_id);
l_free(device->connected_mde);
scan_ifindex_remove(device->index); scan_ifindex_remove(device->index);
l_free(device); l_free(device);
} }