Changeset 13716


Ignore:
Timestamp:
01/25/10 17:19:06 (3 years ago)
Author:
BrainSlayer
Message:

work around for negativ rssi effect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/wiviz2/wiviz.c

    r13714 r13716  
    669669  fprintf(outf, "h.mac = '"); 
    670670  fprint_mac(outf, host->mac, "';\n"); 
    671   fprintf(outf, "h.rssi = -%i;\nh.type = '", host->RSSI / 100); 
     671  if (host->RSSI<0) 
     672     fprintf(outf, "h.rssi = %i;\nh.type = '", host->RSSI / 100); 
     673  else      
     674     fprintf(outf, "h.rssi = -%i;\nh.type = '", host->RSSI / 100); 
    672675  switch (host->type) { 
    673676    case typeAP:  fprintf(outf, "ap"); break; 
Note: See TracChangeset for help on using the changeset viewer.