Christophe Aeschlimann | 21 Feb 2012 15:54
Picon
Gravatar

Fix when building for libnl3 in Debian 6.0

Hi,

After the following commit :

http://linux-zigbee.git.sourceforge.net/git/gitweb.cgi?p=linux-zigbee/linux-zigbee;a=commit;h=6d4636d57f87a149657b4d9a8529648388179791

It was not possible to build the linux-zigbee user space tools in Debian 6.0.

The following patch fixes the configure script and adds the required dependencies 
on genl which is now in a separate library (libnl-genl-3).

Dmitry could you test that this patch doesn't break the build on your system ?

Best regards,

--
Christophe Aeschlimann

Embedded Software Engineer & IT Manager
ACN Advanced Communications Networks S.A.
2000 - Neuchâtel, Switzerland
Tel. +41 32 724 74 31

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
(Continue reading)

Christophe Aeschlimann | 21 Feb 2012 15:54
Picon
Gravatar

[PATCH] Fix building with libnl-3

---
 configure.ac      |    3 ++-
 src/Makefile.am   |    4 ++--
 tests/Makefile.am |    2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index bc55f3d..fd0aaaa 100644
--- a/configure.ac
+++ b/configure.ac
 <at>  <at>  -81,10 +81,11  <at>  <at>  AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)

 # Checks for libraries.
 PKG_CHECK_MODULES([NL], [libnl-3.0])
+PKG_CHECK_MODULES([NL_GENL], [libnl-genl-3.0])

 AC_MSG_CHECKING([whether libnl requires additional libraries])
 _libnl_save_libs="$LIBS"
-LIBS="$NL_LIBS $LIBS"
+LIBS="$NL_LIBS $NL_GENL_LIBS $LIBS"
 AC_LINK_IFELSE([AC_LANG_CALL([], [genl_connect])], libnl_add="none" , libnl_add="fail")
 if test "$libnl_add" = fail
 then
diff --git a/src/Makefile.am b/src/Makefile.am
index 46c4017..240dcdd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
 <at>  <at>  -22,10 +22,10  <at>  <at>  noinst_HEADERS = iz.h
 izcoordinator_SOURCES = coordinator.c
 izcoordinator_CFLAGS = $(AM_CFLAGS) $(NL_CFLAGS) -DLEASE_FILE=\"$(leasefile)\" -D_GNU_SOURCE
(Continue reading)

David Miller | 22 Feb 2012 20:56
Favicon

Re: [PATCH 2/2] net/ieee802154/6lowpan.c: reuse eth_mac_addr()

From: Danny Kukawka <danny.kukawka@...>
Date: Wed, 22 Feb 2012 13:36:39 +0100

> Use eth_mac_addr() for .ndo_set_mac_address, remove
> lowpan_set_address since it do currently the same as
> eth_mac_addr(). Additional advantage: eth_mac_addr() already
> checks if the given address is valid
> 
> Signed-off-by: Danny Kukawka <danny.kukawka@...>

Applied.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Prajosh Premdas | 24 Feb 2012 10:02
Picon

[PATCH 1/9] ieee802154: mlme reset for netlink interface

mlme reset functionality has been added for netlink socket interface
attributes mentioned are as per the IEEE 802.15.4 - 2006 specification

Tested on SAM9G20-EK board

Signed-off-by: Prajosh Premdas <premdas.prajosh@...>
---
 include/linux/nl802154.h        |    2 +
 include/net/ieee802154_netdev.h |    2 +
 include/net/nl802154.h          |    9 ++++++
 net/ieee802154/nl-mac.c         |   57 +++++++++++++++++++++++++++++++++++++-
 net/ieee802154/nl_policy.c      |    2 +
 5 files changed, 70 insertions(+), 2 deletions(-)

diff --git a/include/linux/nl802154.h b/include/linux/nl802154.h
index fbd0fdf..69fe03a 100644
--- a/include/linux/nl802154.h
+++ b/include/linux/nl802154.h
 <at>  <at>  -70,6 +70,8  <at>  <at>  enum {
 	IEEE802154_ATTR_PHY_NAME,
 	IEEE802154_ATTR_DEV_TYPE,

+	IEEE802154_ATTR_SET_DEFAULT_PIB,
+
 	__IEEE802154_ATTR_MAX,
 };

diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h
index b27730e..25cb045 100644
--- a/include/net/ieee802154_netdev.h
(Continue reading)

Prajosh Premdas | 24 Feb 2012 10:02
Picon

[PATCH 2/9] ieee802154: added MAC PIB attribute ids

From: Felix Varghese <felixvarghes@...>

Added #defines for MAC PIB attribute ids and default values for PIB attributes

Signed-off-by: Felix Varghese <felixvarghes@...>
Signed-off-by: Prajosh Premdas <premdas.prajosh@...>
---
 include/net/ieee802154.h |  148 ++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 137 insertions(+), 11 deletions(-)

diff --git a/include/net/ieee802154.h b/include/net/ieee802154.h
index ee59f8b..5134f13 100644
--- a/include/net/ieee802154.h
+++ b/include/net/ieee802154.h
 <at>  <at>  -63,15 +63,137  <at>  <at> 
 #define IEEE802154_MFR_SIZE	2 /* 2 octets */

 /* MAC's Command Frames Identifiers */
-#define IEEE802154_CMD_ASSOCIATION_REQ		0x01
-#define IEEE802154_CMD_ASSOCIATION_RESP		0x02
-#define IEEE802154_CMD_DISASSOCIATION_NOTIFY	0x03
-#define IEEE802154_CMD_DATA_REQ			0x04
-#define IEEE802154_CMD_PANID_CONFLICT_NOTIFY	0x05
-#define IEEE802154_CMD_ORPHAN_NOTIFY		0x06
-#define IEEE802154_CMD_BEACON_REQ		0x07
-#define IEEE802154_CMD_COORD_REALIGN_NOTIFY	0x08
-#define IEEE802154_CMD_GTS_REQ			0x09
+#define IEEE802154_CMD_ASSOCIATION_REQ			0x01
+#define IEEE802154_CMD_ASSOCIATION_RESP			0x02
+#define IEEE802154_CMD_DISASSOCIATION_NOTIFY		0x03
(Continue reading)

Prajosh Premdas | 24 Feb 2012 10:02
Picon

[PATCH 6/9] mac802154: MLME PIB Implementation - Add new file mlme_pib.c

From: Felix Varghese <felixvarghes@...>

Adds new file mlme_pib.c and function for resetting all PIB attributes
to their default values

Signed-off-by: Felix Varghese <felixvarghes@...>
Signed-off-by: Prajosh Premdas <premdas.prajosh@...>
---
 net/mac802154/mlme_pib.c |  152 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 152 insertions(+), 0 deletions(-)
 create mode 100644 net/mac802154/mlme_pib.c

diff --git a/net/mac802154/mlme_pib.c b/net/mac802154/mlme_pib.c
new file mode 100644
index 0000000..e52a4c7
--- /dev/null
+++ b/net/mac802154/mlme_pib.c
 <at>  <at>  -0,0 +1,152  <at>  <at> 
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
(Continue reading)

Prajosh Premdas | 24 Feb 2012 10:02
Picon

[PATCH 3/9] ieee802154: Header file changes for PIB get/set via NL

From: Felix Varghese <felixvarghes@...>

Added function prototypes, structure definitions and netlink attributes for supporting PIB get/set functionality

Signed-off-by: Felix Varghese <felixvarghes@...>
Signed-off-by: Prajosh Premdas <premdas.prajosh@...>
---
 include/linux/nl802154.h        |    3 +++
 include/net/ieee802154_netdev.h |   19 +++++++++++++++++++
 include/net/nl802154.h          |   23 +++++++++++++++++++++++
 3 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/include/linux/nl802154.h b/include/linux/nl802154.h
index 69fe03a..94ec8af 100644
--- a/include/linux/nl802154.h
+++ b/include/linux/nl802154.h
 <at>  <at>  -71,6 +71,9  <at>  <at>  enum {
 	IEEE802154_ATTR_DEV_TYPE,

 	IEEE802154_ATTR_SET_DEFAULT_PIB,
+	IEEE802154_ATTR_PIB_ATTRIBUTE,
+	IEEE802154_ATTR_PIB_VALUE,
+	IEEE802154_ATTR_PIB_SIZE,

 	__IEEE802154_ATTR_MAX,
 };
diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h
index 25cb045..183b384 100644
--- a/include/net/ieee802154_netdev.h
+++ b/include/net/ieee802154_netdev.h
(Continue reading)

Prajosh Premdas | 24 Feb 2012 10:02
Picon

[PATCH 5/9] mac802154: Header file changes for MAC PIB set/get implementation

From: Felix Varghese <felixvarghes@...>

Adds structure definitions and function prototypes for implementing PIB
get and set primitives

Signed-off-by: Felix Varghese <felixvarghes@...>
Signed-off-by: Prajosh Premdas <premdas.prajosh@...>
---
 include/net/mac802154.h   |   10 +++++++
 net/mac802154/mac802154.h |   58 ++++++++++++++++++++++++++++++++++-----------
 2 files changed, 54 insertions(+), 14 deletions(-)

diff --git a/include/net/mac802154.h b/include/net/mac802154.h
index 5eaba60..e274414 100644
--- a/include/net/mac802154.h
+++ b/include/net/mac802154.h
 <at>  <at>  -142,6 +142,16  <at>  <at>  struct ieee802154_ops {
 					    unsigned long changed);
 	int		(*ieee_addr)(struct ieee802154_dev *dev,
 				     u8 addr[IEEE802154_ADDR_LEN]);
+
+	/* PLME-SAP */
+	int		(*set_trx_state)(struct ieee802154_dev *dev,
+					int trx_state);
+	int		(*get)(struct ieee802154_dev *dev,
+					u8 attribute_id,
+					u8 *attribute_val);
+	int		(*set)(struct ieee802154_dev *dev,
+					u8 attribute_id,
+					u8 *attribute_val);
(Continue reading)

Prajosh Premdas | 24 Feb 2012 10:02
Picon

[PATCH 7/9] mac802154: MLME PIB Implementation - add MLME-GET

From: Felix Varghese <felixvarghes@...>

Adds the implementation for MLME-GET primitive in mac802154.
This is according to IEEE 802.15.4-2006 specification.

Signed-off-by: Felix Varghese <felixvarghes@...>
Signed-off-by: Prajosh Premdas <premdas.prajosh@...>
---
 net/mac802154/mlme_pib.c |  211 +++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 209 insertions(+), 2 deletions(-)

diff --git a/net/mac802154/mlme_pib.c b/net/mac802154/mlme_pib.c
index e52a4c7..74573b4 100644
--- a/net/mac802154/mlme_pib.c
+++ b/net/mac802154/mlme_pib.c
 <at>  <at>  -42,8 +42,6  <at>  <at>  struct mlme_set_req_notify_work {
 /* MLME_GET request worker functions */
 static void internal_mlme_get_req_worker(struct work_struct *work);

-/* MLME_SET request worker functions */
-static void internal_mlme_set_req_worker(struct work_struct *work);

 void mac_pib_reset_def(struct net_device *dev)
 {
 <at>  <at>  -137,9 +135,218  <at>  <at>  void mac_pib_reset_def(struct net_device *dev)

 int mlme_get_req(struct net_device *dev, u8 PIBattr)
 {
+	struct mac802154_sub_if_data *priv = netdev_priv(dev);
+	struct mlme_get_req_notify_work *work;
(Continue reading)

Prajosh Premdas | 24 Feb 2012 10:02
Picon

[PATCH 9/9] mac802154: MLME PIB Implementation - remove mib

From: Felix Varghese <felixvarghes@...>

Replaces the existing mib implementation where only some of the
attributes are supported with the new MLME-PIB implementation.

Signed-off-by: Felix Varghese <felixvarghes@...>
Signed-off-by: Prajosh Premdas <premdas.prajosh@...>
---
 net/mac802154/Makefile         |    3 ++-
 net/mac802154/ieee802154_dev.c |   10 ++--------
 net/mac802154/mac_cmd.c        |    8 ++++++++
 net/mac802154/monitor.c        |    7 +++----
 4 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/net/mac802154/Makefile b/net/mac802154/Makefile
index ec1bd3f..a3cd602 100644
--- a/net/mac802154/Makefile
+++ b/net/mac802154/Makefile
 <at>  <at>  -1,2 +1,3  <at>  <at> 
 obj-$(CONFIG_MAC802154)	+= mac802154.o
-mac802154-objs		:= ieee802154_dev.o rx.o tx.o mac_cmd.o mib.o monitor.o
+mac802154-objs		:= ieee802154_dev.o rx.o tx.o mac_cmd.o
+mac802154-objs		+= monitor.o mib.o mlme_pib.o
diff --git a/net/mac802154/ieee802154_dev.c b/net/mac802154/ieee802154_dev.c
index cc85410..83fecb3 100644
--- a/net/mac802154/ieee802154_dev.c
+++ b/net/mac802154/ieee802154_dev.c
 <at>  <at>  -24,6 +24,8  <at>  <at> 
 #include <net/mac802154.h>
 #include <net/wpan-phy.h>
(Continue reading)


Gmane