4504 | | sig = it->GetNormalizedValue(0, 100); |
| 4504 | { |
| 4505 | /* Some drivers return signal strength as a percentage already * |
| 4506 | * while others return a value between zero and 65535, while * |
| 4507 | * some others dont return a value at all */ |
| 4508 | |
| 4509 | if (it->GetValue() > 0 && (it->GetNormalizedValue(0, 100) == 0)) |
| 4510 | /* There is a value, but its so small that when normalised |
| 4511 | it becomes zero. More than likely its a percentage already */ |
| 4512 | sig = it->GetValue(); |
| 4513 | else |
| 4514 | sig = it->GetNormalizedValue(0, 100); |
| 4515 | } |