This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
2009-05-06 16:55:44 +00:00
|
|
|
/*
|
|
|
|
* lib/dect/dect.c DECT
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation version 2.1
|
|
|
|
* of the License.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2009 Patrick McHardy <kaber@trash.net>
|
|
|
|
*/
|
|
|
|
|
2013-04-01 09:44:59 +00:00
|
|
|
#include <netlink-private/netlink.h>
|
2009-05-06 16:55:44 +00:00
|
|
|
#include <netlink/netlink.h>
|
|
|
|
#include <netlink/utils.h>
|
|
|
|
#include <netlink/dect/dect.h>
|
|
|
|
|
|
|
|
double nl_dect_rssi_to_dbm(uint8_t rssi)
|
|
|
|
{
|
|
|
|
if (rssi == 0)
|
|
|
|
return 0;
|
|
|
|
return -93 + (rssi * 60.0 / 255);
|
|
|
|
}
|