13
0
Fork 1

dect_cli: propper statistics for ppscan (sync sniffing)

add a FIXME. machines which only have shared interrupts will silently use
them. TODO: really fix it.


git-svn-id: https://dedected.org/svn/trunk@9 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
This commit is contained in:
mazzoo 2008-12-30 22:31:19 +00:00
parent b4a1eba911
commit d2d19c2800
2 changed files with 11 additions and 2 deletions

View File

@ -496,6 +496,9 @@ static int com_on_air_probe (struct pcmcia_device *link)
link->irq.AssignedIRQ);
dev->irq = link->irq.AssignedIRQ;
}
/* FIXME: there are devces which arrive here but can only allocate a
* shared interrupt!
* */
ret = pcmcia_request_configuration(link, &link->conf);
if (ret != CS_SUCCESS)

View File

@ -460,7 +460,7 @@ void process_dect_data()
case MODE_CALLSCAN:
while (7 == (ret = read(cli.fd, buf, 7))){
memcpy(cli.station.RFPI, &buf[2], 5);
cli.station.channel = buf[0];
cli.station.channel = buf[0];
cli.station.RSSI = buf[1];
cli.station.type = TYPE_PP;
try_add_station(&cli.station);
@ -470,8 +470,14 @@ void process_dect_data()
while ( sizeof(cli.packet) ==
read(cli.fd, &cli.packet, sizeof(cli.packet)))
{
memcpy(cli.station.RFPI, cli.RFPI, 5);
cli.station.channel = cli.packet.channel;
cli.station.RSSI = cli.packet.rssi;
cli.station.type = TYPE_PP;
/* to ypdate statistics only we try_add_station() */
try_add_station(&cli.station);
/* stop hopping once we synchronized */
/* stop hopping once we're synchronized */
cli.hop = 0;
if (!cli.pcap)