![]() |
|
|||||||
| Register | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Registered Member
Join Date: Feb 2005
Posts: 2
|
Hello,
For my university project i must do a wifi monitoring software under Linux. All is good,but i don't know how to convert the Values in /proc/net/wireless to dBm,like NetStumbler. If someone can tell me the algorithm,or the operations, Thank's a lot ! |
|
|
|
|
|
#2 (permalink) | |
|
Banned in DC
Join Date: Jul 2004
Posts: 102
|
Quote:
|
|
|
|
|
|
|
#3 (permalink) |
|
Psychic Amish Stumbler
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,839
|
If it's your project, shouldn't you be doing the work and research? Asking people on a forum to do it for you doesn't really cut it, does it?
__________________
"One of these days, I'm going to cut you to pieces." If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum. Thank you. |
|
|
|
|
|
#4 (permalink) |
|
Registered Member
Join Date: Feb 2005
Posts: 2
|
#define LOG10_MAGIC 1.25892541179
int convert(int in) { /* Version without libm : slower */ double fin = (double) in; int res = 0; /* Split integral and floating part to avoid accumulating rounding errors */ while(fin > 10.0) { res += 10; fin /= 10.0; } while(fin > 1.000001) /* Eliminate rounding errors, take ceil */ { res += 1; fin /= LOG10_MAGIC; } return(res); } this program don't run ! Ex: it can run , but i don't know what the values in /proc/net/wireless represent ? Are they W,mW,A,µW,dB,mV,W,MW,$,€.... ? I don't find on Internet what the values in /proc/net/wireless represent ! If someone can help me ,i have no docs and i can't work. Thanks |
|
|
|