packages/net/kismet/patches/100-fix-atan.patch
nbd ced97d6ec2 PATCH: upgrades kismet to 2007-10-R1
This patch updates kismet to 2007-10-R1.  I have been using
kismet_server compiled from this on r9512 for about a month on a
wgt634u with no problems.

Signed-off-by: Russell Senior <seniorr@aracnet.com>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@9653 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-04 01:34:51 +00:00

13 lines
347 B
Diff

diff -ru kismet-2007-10-R1/gpsd.cc kismet-2007-10-R1-fixed/gpsd.cc
--- kismet-2007-10-R1/gpsd.cc 2007-09-15 09:14:00.000000000 -0700
+++ kismet-2007-10-R1-fixed/gpsd.cc 2007-11-06 01:46:12.000000000 -0800
@@ -323,7 +323,7 @@
if (ty == 0) {
dir = 0.0;
} else {
- dir = atan(tx / ty);
+ dir = atan2(tx,ty);
}
if (!finite(dir))