=== modified file 'Makefile'
@@ -47,6 +47,7 @@ INSTALL ?= install
NL1FOUND := $(shell pkg-config --atleast-version=1 libnl-1 && echo Y)
NL2FOUND := $(shell pkg-config --atleast-version=2 libnl-2.0 && echo Y)
+NL3FOUND := $(shell pkg-config --atleast-version=3 libnl-3.0 && echo Y)
ifeq ($(NL1FOUND),Y)
NLLIBNAME = libnl-1
@@ -58,6 +59,12 @@ NLLIBS += -lnl-genl
NLLIBNAME = libnl-2.0
endif
+ifeq ($(NL3FOUND),Y)
+CFLAGS += -DCONFIG_LIBNL20
+NLLIBS += -lnl-genl
+NLLIBNAME = libnl-3.0
+endif
+
ifeq ($(NLLIBNAME),)
$(error Cannot find development files for any supported version of libnl)
endif
=== modified file 'debian/changelog'
@@ -1,3 +1,9 @@
+wireless-crda (1.14) UNRELEASED; urgency=low
+
+ * Port to libnl3.
+
+ -- Colin Watson <cjwatson@ubuntu.com> Mon, 08 Aug 2011 17:11:42 +0100
+
wireless-crda (1.13) natty; urgency=low
* Updated wireless-regdb to master-2010-11-24
=== modified file 'debian/control'
@@ -3,7 +3,7 @@ Section: admin
Priority: optional
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
Standards-Version: 3.6.2.1
-Build-Depends: debhelper (>= 5.0.0), pkg-config, libgcrypt11-dev, libnl-dev
+Build-Depends: debhelper (>= 5.0.0), pkg-config, libgcrypt11-dev, libnl3-dev
Vcs-Git: http://kernel.ubuntu.com/git-repos/rtg/wireless-crda.git
Package: wireless-crda