Skip to content

Commit

Permalink
[SQUASH ME] nativenet: make nativenet independent of netdev
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Oct 6, 2014
1 parent beab588 commit c05d6f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ ifneq (,$(filter ccn_lite,$(USEMODULE)))
USEMODULE += crypto
endif

ifneq (,$(filter nativenet,$(USEMODULE)))
USEMODULE += netdev_base
endif

ifneq (,$(filter rgbled,$(USEMODULE)))
USEMODULE += color
endif
Expand Down
7 changes: 7 additions & 0 deletions cpu/native/net/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ void _nativenet_handle_packet(radio_packet_t *packet)
* netdev_base wrapper
***************************************************************/

#ifdef MODULE_NETDEV_BASE
int _nativenet_send_data(netdev_t *dev, void *dest, size_t dest_len,
netdev_hlist_t *upper_layer_hdrs, void *data,
size_t data_len)
Expand Down Expand Up @@ -609,5 +610,11 @@ _nativenet_netdev_more_t _nativenet_default_dev_more;
netdev_t nativenet_default_dev = {NETDEV_TYPE_BASE, &nativenet_driver,
&_nativenet_default_dev_more
};
#else
_nativenet_netdev_more_t _nativenet_default_dev_more;
netdev_t nativenet_default_dev = {NETDEV_TYPE_BASE, NULL,
&_nativenet_default_dev_more
};
#endif /* MODULE_NETDEV_BASE */

/** @} */

0 comments on commit c05d6f1

Please sign in to comment.