sidk_s5jt200: clean up wlan.c
Removes unnecessary code lines and #include.
* language governing permissions and limitations under the License.
*
****************************************************************************/
-#include <net/lwip/opt.h>
-
#include <tinyara/config.h>
-#include <stdio.h>
-#include <debug.h>
-
-#if defined(CONFIG_NET_LWIP)
-#include <net/lwip/opt.h>
-#include <net/lwip/mem.h>
-#include <net/lwip/memp.h>
-#include <net/lwip/dhcp.h>
-#include <net/lwip/tcpip.h>
-#include <net/lwip/init.h>
-#endif
-
-#include <stdlib.h>
-#include <net/lwip/def.h>
-#include <net/lwip/mem.h>
-#include <net/lwip/pbuf.h>
-#include <net/lwip/stats.h>
-#include <net/lwip/snmp.h>
-#include <net/lwip/netif/etharp.h>
-#include <net/lwip/netif/ppp_oe.h>
-
-#include <net/lwip/sys.h>
+#include <stdio.h>
#include <net/if.h>
+#include <net/lwip/opt.h>
+#include <net/lwip/netif.h>
struct wlanif {
struct eth_addr *ethaddr;
@@ -67,46 +46,6 @@ struct wlanif {
*/
err_t wlan_init(struct netif *netif)
{
-#if 0
- struct wlanif *wlanif;
-
- LWIP_ASSERT("netif != NULL", (netif != NULL));
-
- wlanif = mem_malloc(sizeof(struct wlanif));
- if (wlanif == NULL) {
- LWIP_DEBUGF(NETIF_DEBUG, ("wlanif_init: out of memory\n"));
- return ERR_MEM;
- }
-#if LWIP_NETIF_HOSTNAME
- /* Initialize interface hostname */
- netif->hostname = "wlip";
-#endif /* LWIP_NETIF_HOSTNAME */
-
- /*
- * Initialize the snmp variables and counters inside the struct netif.
- * The last argument should be replaced with your link speed, in units
- * of bits per second.
- */
- NETIF_INIT_SNMP(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS);
-
- netif->state = wlanif;
- netif->name[0] = IFNAME0;
- netif->name[1] = IFNAME1;
-
- snprintf(netif->d_ifname, IFNAMSIZ, "%c%c%d", netif->name[0], netif->name[1], netif->num);
-
- /* We directly use etharp_output() here to save a function call.
- * You can instead declare your own function an call etharp_output()
- * from it if you have to do some checks before sending (e.g. if link
- * is available...) */
- //netif->output = etharp_output;
- //netif->linkoutput = low_level_output;
-
- wlanif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);
-
- /* initialize the hardware */
- // low_level_init(netif);
-#endif
netif->name[0] = IFNAME0;
netif->name[1] = IFNAME1;
