]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
fix the get link quality interfaces to return 16 bit eetx values
authorgnawali <gnawali>
Fri, 16 Nov 2007 23:14:49 +0000 (23:14 +0000)
committergnawali <gnawali>
Fri, 16 Nov 2007 23:14:49 +0000 (23:14 +0000)
tos/lib/net/4bitle/LinkEstimator.nc
tos/lib/net/4bitle/LinkEstimatorP.nc
tos/lib/net/le/LinkEstimator.nc
tos/lib/net/le/LinkEstimatorP.nc

index 7dea89e8e916d41327a463165a99beb938d32394..475fd9c6df0174f456bd409e144fc502524571ef 100644 (file)
@@ -35,7 +35,7 @@
 interface LinkEstimator {
   
   /* get link quality for link to the neighbor */
-  command uint8_t getLinkQuality(uint16_t neighbor);
+  command uint16_t getLinkQuality(uint16_t neighbor);
 
   /* insert this neighbor into the neighbor table */
   command error_t insertNeighbor(am_addr_t neighbor);
index 616d44184afd3dab59676c4bbeda1fb9e53092f3..b35e1f4c2e4f789b1ac6eee444e856ab97a56bca 100644 (file)
@@ -437,7 +437,7 @@ implementation {
   }
 
   // return bi-directional link quality to the neighbor
-  command uint8_t LinkEstimator.getLinkQuality(am_addr_t neighbor) {
+  command uint16_t LinkEstimator.getLinkQuality(am_addr_t neighbor) {
     uint8_t idx;
     idx = findIdx(neighbor);
     if (idx == INVALID_RVAL) {
index 8e7a5df4ee2bf04950d36f3af51ed5ecc92052b9..ad9eaf6a61542f27c6efbf6e6b1f66552803f9bf 100644 (file)
 interface LinkEstimator {
   
   /* get bi-directional link quality for link to the neighbor */
-  command uint8_t getLinkQuality(uint16_t neighbor);
+  command uint16_t getLinkQuality(uint16_t neighbor);
 
   /* get quality of the link from neighbor to this node */
-  command uint8_t getReverseQuality(uint16_t neighbor);
+  command uint16_t getReverseQuality(uint16_t neighbor);
 
   /* get quality of the link from this node to the neighbor */
-  command uint8_t getForwardQuality(uint16_t neighbor);
+  command uint16_t getForwardQuality(uint16_t neighbor);
 
   /* insert this neighbor into the neighbor table */
   command error_t insertNeighbor(am_addr_t neighbor);
index 57bd8e87e32f8a0ddc625c3b1ec01f2493c7be45..6e60234718041637b0b74db212d7e1dd1a8c175f 100644 (file)
@@ -430,7 +430,7 @@ implementation {
   }
 
   // return bi-directional link quality to the neighbor
-  command uint8_t LinkEstimator.getLinkQuality(am_addr_t neighbor) {
+  command uint16_t LinkEstimator.getLinkQuality(am_addr_t neighbor) {
     uint8_t idx;
     idx = findIdx(neighbor);
     if (idx == INVALID_RVAL) {
@@ -441,7 +441,7 @@ implementation {
   }
 
   // return the quality of the link: neighor->self
-  command uint8_t LinkEstimator.getReverseQuality(am_addr_t neighbor) {
+  command uint16_t LinkEstimator.getReverseQuality(am_addr_t neighbor) {
     uint8_t idx;
     idx = findIdx(neighbor);
     if (idx == INVALID_RVAL) {
@@ -452,7 +452,7 @@ implementation {
   }
 
   // return the quality of the link: self->neighbor
-  command uint8_t LinkEstimator.getForwardQuality(am_addr_t neighbor) {
+  command uint16_t LinkEstimator.getForwardQuality(am_addr_t neighbor) {
     uint8_t idx;
     idx = findIdx(neighbor);
     if (idx == INVALID_RVAL) {