WPS: Remove unused net_if copy
This commit is contained in:
parent
eeb49f991b
commit
45767a9597
2 changed files with 0 additions and 4 deletions
|
@ -945,8 +945,6 @@ void upnp_wps_device_stop(struct upnp_wps_device_sm *sm)
|
||||||
event_send_stop_all(sm);
|
event_send_stop_all(sm);
|
||||||
os_free(sm->wlanevent);
|
os_free(sm->wlanevent);
|
||||||
sm->wlanevent = NULL;
|
sm->wlanevent = NULL;
|
||||||
os_free(sm->net_if);
|
|
||||||
sm->net_if = NULL;
|
|
||||||
os_free(sm->mac_addr_text);
|
os_free(sm->mac_addr_text);
|
||||||
sm->mac_addr_text = NULL;
|
sm->mac_addr_text = NULL;
|
||||||
os_free(sm->ip_addr_text);
|
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)
|
if (sm->started)
|
||||||
upnp_wps_device_stop(sm);
|
upnp_wps_device_stop(sm);
|
||||||
|
|
||||||
sm->net_if = strdup(net_if);
|
|
||||||
sm->multicast_sd = -1;
|
sm->multicast_sd = -1;
|
||||||
sm->ssdp_sd = -1;
|
sm->ssdp_sd = -1;
|
||||||
sm->started = 1;
|
sm->started = 1;
|
||||||
|
|
|
@ -113,7 +113,6 @@ struct upnp_wps_device_sm {
|
||||||
char *root_dir;
|
char *root_dir;
|
||||||
char *desc_url;
|
char *desc_url;
|
||||||
int started; /* nonzero if we are active */
|
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 */
|
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 */
|
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 */
|
char *ip_addr_text; /* IP address of network i.f. we use */
|
||||||
|
|
Loading…
Reference in a new issue