From cf17883e507593bdca0ac151ffd89d9f8dcc6a22 Mon Sep 17 00:00:00 2001
From: patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>
Date: Thu, 21 Apr 2011 19:03:01 +0000
Subject: [PATCH] Add logic to assign IP address in apps/examples/wlan

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3530 42af7a65-404d-4744-a932-0658087f49c3
---
 configs/detron/wlan/appconfig               | 4 ++++
 configs/detron/wlan/defconfig               | 9 +++++++++
 configs/olimex-lpc1766stk/nettest/appconfig | 1 -
 configs/olimex-lpc1766stk/wlan/appconfig    | 3 +++
 configs/olimex-lpc1766stk/wlan/defconfig    | 9 +++++++++
 5 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/configs/detron/wlan/appconfig b/configs/detron/wlan/appconfig
index d529420492..d08f73002b 100644
--- a/configs/detron/wlan/appconfig
+++ b/configs/detron/wlan/appconfig
@@ -37,3 +37,7 @@
 
 CONFIGURED_APPS += examples/wlan
 
+# Networking support
+
+CONFIGURED_APPS += netutils/uiplib
+
diff --git a/configs/detron/wlan/defconfig b/configs/detron/wlan/defconfig
index 6ab071b014..bb55832aad 100755
--- a/configs/detron/wlan/defconfig
+++ b/configs/detron/wlan/defconfig
@@ -767,6 +767,15 @@ CONFIG_EXAMPLE_NETTEST_DRIPADDR=(10<<24|0<<16|0<<8|1)
 CONFIG_EXAMPLE_NETTEST_NETMASK=(255<<24|255<<16|255<<8|0)
 CONFIG_EXAMPLE_NETTEST_CLIENTIP=(10<<24|0<<16|0<<8|1)
 
+#
+# Settings for apps/examples/wlan
+#
+CONFIG_EXAMPLE_WLAN_DHCPC=n
+CONFIG_EXAMPLE_WLAN_NOMAC=n
+CONFIG_EXAMPLE_WLAN_IPADDR=(192<<24|168<<16|0<<8|201)
+CONFIG_EXAMPLE_WLAN_DRIPADDR=(192<<24|168<<16|0<<8|1)
+CONFIG_EXAMPLE_WLAN_NETMASK=(255<<24|255<<16|255<<8|0)
+
 #
 # Settings for examples/ostest
 #
diff --git a/configs/olimex-lpc1766stk/nettest/appconfig b/configs/olimex-lpc1766stk/nettest/appconfig
index d90b6e2e90..11b02d4c9e 100644
--- a/configs/olimex-lpc1766stk/nettest/appconfig
+++ b/configs/olimex-lpc1766stk/nettest/appconfig
@@ -37,7 +37,6 @@
 
 CONFIGURED_APPS += examples/nettest
 
-
 # Networking support
 
 CONFIGURED_APPS += netutils/uiplib
diff --git a/configs/olimex-lpc1766stk/wlan/appconfig b/configs/olimex-lpc1766stk/wlan/appconfig
index 652db8f2d1..17055072ae 100644
--- a/configs/olimex-lpc1766stk/wlan/appconfig
+++ b/configs/olimex-lpc1766stk/wlan/appconfig
@@ -37,3 +37,6 @@
 
 CONFIGURED_APPS += examples/wlan
 
+# Networking support
+
+CONFIGURED_APPS += netutils/uiplib
diff --git a/configs/olimex-lpc1766stk/wlan/defconfig b/configs/olimex-lpc1766stk/wlan/defconfig
index 02b639bef8..53a5f02af4 100755
--- a/configs/olimex-lpc1766stk/wlan/defconfig
+++ b/configs/olimex-lpc1766stk/wlan/defconfig
@@ -766,6 +766,15 @@ CONFIG_EXAMPLE_NETTEST_DRIPADDR=(10<<24|0<<16|0<<8|1)
 CONFIG_EXAMPLE_NETTEST_NETMASK=(255<<24|255<<16|255<<8|0)
 CONFIG_EXAMPLE_NETTEST_CLIENTIP=(10<<24|0<<16|0<<8|1)
 
+#
+# Settings for apps/examples/wlan
+#
+CONFIG_EXAMPLE_WLAN_DHCPC=n
+CONFIG_EXAMPLE_WLAN_NOMAC=n
+CONFIG_EXAMPLE_WLAN_IPADDR=(192<<24|168<<16|0<<8|201)
+CONFIG_EXAMPLE_WLAN_DRIPADDR=(192<<24|168<<16|0<<8|1)
+CONFIG_EXAMPLE_WLAN_NETMASK=(255<<24|255<<16|255<<8|0)
+
 #
 # Settings for examples/ostest
 #
-- 
GitLab