[Positioning] RP generation: fix SS weighting

The weighted mean of the SSs for the selected APs was wrong (an extra
division by 2)
This commit is contained in:
Matteo Cypriani 2011-07-23 17:18:48 +02:00
parent a975731ae4
commit 26e3c33366
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ void Stock::regenerate_reference_points()
/* Compute the SS */
ref1_ss = ref1_ss * ref1_percent / 100 ;
ref2_ss = ref2_ss * ref2_percent / 100 ;
double rx_ss = (ref1_ss + ref2_ss) / 2 ;
double rx_ss = ref1_ss + ref2_ss ;
/* Create the measurement, add it to the list */
Measurement m(&rx->second) ;