samples: net: Remove IEEE 802.15.4 sample setup

The IEEE 802.15.4 settings are applied automatically by
net_app_init() function is is enabled by default.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2017-08-07 15:01:40 +03:00 committed by Anas Nashif
commit 0c243dfe8c
5 changed files with 0 additions and 55 deletions

View file

@ -32,10 +32,6 @@
#include <net/net_app.h>
#if defined(CONFIG_NET_L2_IEEE802154)
#include <ieee802154_settings.h>
#endif
#include "common.h"
#define APP_BANNER "Run echo client"
@ -102,13 +98,6 @@ static inline int init_app(void)
k_sem_init(&quit_lock, 0, UINT_MAX);
#if defined(CONFIG_NET_L2_IEEE802154)
if (ieee802154_sample_setup()) {
NET_ERR("IEEE 802.15.4 setup failed");
return -EFAULT;
}
#endif
return 0;
}

View file

@ -22,10 +22,6 @@
#include <net/net_app.h>
#if defined(CONFIG_NET_L2_IEEE802154)
#include <ieee802154_settings.h>
#endif
#include "common.h"
/* The startup time needs to be longish if DHCP is enabled as setting
@ -148,13 +144,6 @@ static inline int init_app(void)
{
k_sem_init(&quit_lock, 0, UINT_MAX);
#if defined(CONFIG_NET_L2_IEEE802154)
if (ieee802154_sample_setup()) {
NET_ERR("IEEE 802.15.4 setup failed");
return -EFAULT;
}
#endif
return 0;
}

View file

@ -26,10 +26,6 @@
#include <gpio.h>
#if defined(CONFIG_NET_L2_IEEE802154)
#include <ieee802154_settings.h>
#endif
#include <net/zoap.h>
#include <net/zoap_link_format.h>
@ -486,13 +482,6 @@ void main(void)
.sin6_port = htons(MY_COAP_PORT) };
int r;
#if defined(CONFIG_NET_L2_IEEE802154)
if (ieee802154_sample_setup()) {
NET_ERR("IEEE 802.15.4 setup failed");
return;
}
#endif
led0 = device_get_binding(LED_GPIO_NAME);
/* Want it to be NULL if not available */

View file

@ -25,10 +25,6 @@
#include <net/zoap.h>
#include <net/zoap_link_format.h>
#if defined(CONFIG_NET_L2_IEEE802154)
#include <ieee802154_settings.h>
#endif
#define MY_COAP_PORT 5683
#define STACKSIZE 2000
@ -1248,13 +1244,6 @@ void main(void)
.sin6_port = htons(MY_COAP_PORT) };
int r;
#if defined(CONFIG_NET_L2_IEEE802154)
if (ieee802154_sample_setup()) {
NET_ERR("IEEE 802.15.4 setup failed");
return;
}
#endif
if (!join_coap_multicast_group()) {
NET_ERR("Could not join CoAP multicast group\n");
return;

View file

@ -30,10 +30,6 @@
#include "ipv6.h" /* to get infinite lifetime */
#if defined(CONFIG_NET_L2_IEEE802154)
#include <ieee802154_settings.h>
#endif
#define DEVICE_NAME "zperf shell"
static const char *CONFIG =
@ -1083,13 +1079,6 @@ struct shell_cmd commands[] = {
void main(void)
{
#if defined(CONFIG_NET_L2_IEEE802154)
if (ieee802154_sample_setup()) {
NET_ERR("IEEE 802.15.4 setup failed");
return;
}
#endif
shell_cmd_version(0, NULL);
SHELL_REGISTER(MY_SHELL_MODULE, commands);
shell_register_default_module(MY_SHELL_MODULE);