From 45767a9597a675212e20c2d5ea77da9f52b0f36e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 19 Dec 2009 21:58:00 +0200 Subject: [PATCH] WPS: Remove unused net_if copy --- src/wps/wps_upnp.c | 3 --- src/wps/wps_upnp_i.h | 1 - 2 files changed, 4 deletions(-) diff --git a/src/wps/wps_upnp.c b/src/wps/wps_upnp.c index 60c4c0d79..705e6aaa0 100644 --- a/src/wps/wps_upnp.c +++ b/src/wps/wps_upnp.c @@ -945,8 +945,6 @@ void upnp_wps_device_stop(struct upnp_wps_device_sm *sm) event_send_stop_all(sm); os_free(sm->wlanevent); sm->wlanevent = NULL; - os_free(sm->net_if); - sm->net_if = NULL; os_free(sm->mac_addr_text); sm->mac_addr_text = NULL; os_free(sm->ip_addr_text); @@ -974,7 +972,6 @@ int upnp_wps_device_start(struct upnp_wps_device_sm *sm, char *net_if) if (sm->started) upnp_wps_device_stop(sm); - sm->net_if = strdup(net_if); sm->multicast_sd = -1; sm->ssdp_sd = -1; sm->started = 1; diff --git a/src/wps/wps_upnp_i.h b/src/wps/wps_upnp_i.h index 2036acb71..904ff8a92 100644 --- a/src/wps/wps_upnp_i.h +++ b/src/wps/wps_upnp_i.h @@ -113,7 +113,6 @@ struct upnp_wps_device_sm { char *root_dir; char *desc_url; int started; /* nonzero if we are active */ - char *net_if; /* network interface we use */ char *mac_addr_text; /* mac addr of network i.f. we use */ u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ char *ip_addr_text; /* IP address of network i.f. we use */