aboutsummaryrefslogtreecommitdiffstats
path: root/package/libnl-tiny/src
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-04-01 05:32:32 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-04-01 05:32:32 +0000
commit26577e330ce795ed5f9eeecd9622da7e14dc63c7 (patch)
tree077a24078f8e286581cd689ae1051d44049585b8 /package/libnl-tiny/src
parent569e56f1d2677e8183a6ceb0ff5ac0a88edce393 (diff)
downloadupstream-26577e330ce795ed5f9eeecd9622da7e14dc63c7.tar.gz
upstream-26577e330ce795ed5f9eeecd9622da7e14dc63c7.tar.bz2
upstream-26577e330ce795ed5f9eeecd9622da7e14dc63c7.zip
libnl-tiny: port upstream bugfix 8ee16e6688657886f591f0841cb8e892743ecf2a from libnl, fixes error on hostapd interface initialization
SVN-Revision: 31155
Diffstat (limited to 'package/libnl-tiny/src')
-rw-r--r--package/libnl-tiny/src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/libnl-tiny/src/socket.c b/package/libnl-tiny/src/socket.c
index 6fe56fdc53..1429825e63 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);
}
/**