From fc5bc51ad51768867680bbf8cde50f21f4ddabbb Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 1 Apr 2012 05:32:32 +0000 Subject: [package] libnl-tiny: port upstream bugfix 8ee16e6688657886f591f0841cb8e892743ecf2a from libnl, fixes error on hostapd interface initialization git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31155 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/libnl-tiny/src/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/libnl-tiny/src') diff --git a/package/libnl-tiny/src/socket.c b/package/libnl-tiny/src/socket.c index 6fe56fdc5..1429825e6 100644 --- a/package/libnl-tiny/src/socket.c +++ b/package/libnl-tiny/src/socket.c @@ -59,7 +59,7 @@ static void release_local_port(uint32_t port) return; nr = port >> 22; - used_ports_map[nr / 32] &= ~((nr % 32) + 1); + used_ports_map[nr / 32] &= ~(1 << nr % 32); } /** -- cgit v1.2.3