Package: kismet
Version: 2.6.2-6jlb
Severity: normal
Tags: patch

Desc:
The gpsd seems unable to aquire altitude information with certain GPS devices 
and
returns a ? instead of a float value, which results in kismet returning a "Loss
of GPS signal" error and disabling its GPS support.
This patch sets the altitude value to zero whenever it cannot be aquired by 
gpsd.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (700, 'unstable'), (600, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-kanotix-11
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages kismet depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libglib1.2                  1.2.10-10    The GLib library of C routines
ii  libncurses5                 5.4-9        Shared libraries for terminal hand
ii  libstdc++2.10-glibc2.2      1:2.95.4-22  The GNU stdc++ library
ii  zlib1g                      1:1.2.3-1    compression library - runtime

kismet recommends no packages.
170c170,175
<     if ((scanret = sscanf(live, "GPSD,P=%f %f,A=%f,V=%f,M=%d,H=%f",
---
>     if ((scanret = sscanf(live, "GPSD,P=%f %f,A=?,V=%f,M=%d,H=%f",
>               &lat, &lon, &spd, &mode, &hed)) > 3) {
>       alt=0;
>       ++scanret;
>     }
>     else if ((scanret = sscanf(live, "GPSD,P=%f %f,A=%f,V=%f,M=%d,H=%f",

Reply via email to