void eagle_lwip_if_free(struct myif_state *state) { if(state->dhcps_if == 0) { netif_remove(state->myif); // if(lwip_if_queues[0] != NULL) vPortFree(lwip_if_queues[0]); } else { if(dhcps_flag) dhcps_stop(); netif_remove(state->myif); // if(lwip_if_queues[1] != NULL) vPortFree(lwip_if_queues[1]); } if(state->myif != NULL) { vPortFree(state->myif); state->myif = NULL; } }
void eagle_lwip_if_free(struct ieee80211_conn *conn) { if(conn->dhcps_if == 0) { netif_remove(conn->myif); // if(lwip_if_queues[0] != NULL) vPortFree(lwip_if_queues[0]); } else { if(dhcps_flag) dhcps_stop(); netif_remove(conn->myif); // if(lwip_if_queues[1] != NULL) vPortFree(lwip_if_queues[1]); } if(conn->myif != NULL) { vPortFree(conn->myif); conn->myif = NULL; } }