WPS: Remove unused net_if copy

This commit is contained in:
Jouni Malinen 2009-12-19 21:58:00 +02:00
parent eeb49f991b
commit 45767a9597
2 changed files with 0 additions and 4 deletions

View file

@ -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;

View file

@ -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 */