WPS: Remove unused net_if copy
authorJouni Malinen <j@w1.fi>
Sat, 19 Dec 2009 19:58:00 +0000 (21:58 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 19 Dec 2009 19:58:00 +0000 (21:58 +0200)
src/wps/wps_upnp.c
src/wps/wps_upnp_i.h

index 60c4c0d..705e6aa 100644 (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;
index 2036acb..904ff8a 100644 (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 */