Pass signal strength through, fix units
The signal strength is currently never used as the only driver reporting it is nl80211 which uses IEEE80211_RADIOTAP_DB_ANTSIGNAL which is never populated by the kernel. The kernel will (soon) populate IEEE80211_RADIOTAP_DBM_ANTSIGNAL instead though, so use that. Also, since it was never really populated, we can redefine the signal field to be in dBm units only. My next patch will also require knowing the signal strength of probe requests throughout the code (where available), so add it to the necessary APIs. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
370b076197
commit
baf513d695
13 changed files with 47 additions and 25 deletions
|
@ -5879,8 +5879,8 @@ static void handle_monitor_read(int sock, void *eloop_ctx, void *sock_ctx)
|
|||
case IEEE80211_RADIOTAP_RATE:
|
||||
datarate = *iter.this_arg * 5;
|
||||
break;
|
||||
case IEEE80211_RADIOTAP_DB_ANTSIGNAL:
|
||||
ssi_signal = *iter.this_arg;
|
||||
case IEEE80211_RADIOTAP_DBM_ANTSIGNAL:
|
||||
ssi_signal = (s8) *iter.this_arg;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue