Subject: [manet] Please..is this code in Glomosim wrong....

From: sam karazon <[email-masked]>
Date: Sun, 22 Apr 2007 04:31:27 -0700 (PDT)

I think the propagation background noise functions defined in file include/propagation.h  is wrong...I want to be confirm....
   
  the code is written as 
   
  #define GLOMO_PropBackgroundNoise_mW(node, channelBandwidth) \
            ((node)->propData->backgroundNoise_mW * channelBandwidth)
   
  #define GLOMO_PropBackgroundNoise_dBm(node, channelBandwidth) \
            ((node)->propData->backgroundNoise_dBm * channelBandwidth)
   
  the code for the function  GLOMO_PropBackgroundNoise_dBm is too wrong 
   
  it should be 
   
  #define GLOMO_PropBackgroundNoise_dBm(node, channelBandwidth) \
            ((node)->propData->backgroundNoise_dBm + 10*log10(channelBandwidth))

---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

_______________________________________________
manet mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/manet