RX signal level calculation

Ricardo Galli gallir at uib.es
Sun Feb 16 12:23:47 EST 2003


Hi Jouni (and Jean),
	I have a question about how to interpret the received signal level.

In hostap_ap.c (in prism2_ap_get_sta_qual() and 
prism2_ap_translate_scan()) you pass it to dBm by first doing:

	level = (level - 27) * 92/127;
	level = HFA384_LEVEL_TO_dBm(level);

But in hostap_ioctl.c (in prism2_translate_scan() and 
hostap_get_wireless_stats() ) you don't do the first normalization, but 
directly:

	level = HFA384_LEVEL_TO_dBm(level);

Why is there such a difference? Is it related to hardware register for 
different modes?

Thanks,

-- 
  ricardo galli       GPG id C8114D34




More information about the HostAP mailing list