+diff -purN iw-0.9.20.orig/Makefile iw-0.9.20/Makefile
+--- iw-0.9.20.orig/Makefile 2010-12-02 08:13:30.000000000 +0000
++++ iw-0.9.20/Makefile 2010-12-02 08:17:58.000000000 +0000
+@@ -19,27 +19,11 @@ OBJS = iw.o genl.o event.o info.o phy.o
+ mesh.o mpath.o scan.o reg.o version.o \
+ reason.o status.o connect.o link.o offch.o ps.o cqm.o
+ OBJS += sections.o
+-ALL = iw
+
+-NL1FOUND := $(shell $(PKG_CONFIG) --atleast-version=1 libnl-1 && echo Y)
+-NL2FOUND := $(shell $(PKG_CONFIG) --atleast-version=2 libnl-2.0 && echo Y)
+-
+-ifeq ($(NL1FOUND),Y)
+ NLLIBNAME = libnl-1
+-endif
+-
+-ifeq ($(NL2FOUND),Y)
+-CFLAGS += -DCONFIG_LIBNL20
+-LIBS += -lnl-genl
+-NLLIBNAME = libnl-2.0
+-endif
+-
+-ifeq ($(NLLIBNAME),)
+-$(error Cannot find development files for any supported version of libnl)
+-endif
+
+-LIBS += $(shell $(PKG_CONFIG) --libs $(NLLIBNAME))
+-CFLAGS += $(shell $(PKG_CONFIG) --cflags $(NLLIBNAME))
++LIBS += -lnl
++CFLAGS +=
+
+ ifeq ($(V),1)
+ Q=
+@@ -49,17 +33,7 @@ Q=@
+ NQ=echo
+ endif
+
+-all: version_check $(ALL)
+-
+-version_check:
+-ifeq ($(NL2FOUND),Y)
+-else
+-ifeq ($(NL1FOUND),Y)
+-else
+- $(error No libnl found)
+-endif
+-endif
+-
++all: iw
+
+ VERSION_OBJS := $(filter-out version.o, $(OBJS))
+