From 731234fa193fbcc7207469e30e696f0eb22747eb Mon Sep 17 00:00:00 2001 From: gnawali Date: Fri, 16 Nov 2007 23:14:49 +0000 Subject: [PATCH] fix the get link quality interfaces to return 16 bit eetx values --- tos/lib/net/4bitle/LinkEstimator.nc | 2 +- tos/lib/net/4bitle/LinkEstimatorP.nc | 2 +- tos/lib/net/le/LinkEstimator.nc | 6 +++--- tos/lib/net/le/LinkEstimatorP.nc | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tos/lib/net/4bitle/LinkEstimator.nc b/tos/lib/net/4bitle/LinkEstimator.nc index 7dea89e8..475fd9c6 100644 --- a/tos/lib/net/4bitle/LinkEstimator.nc +++ b/tos/lib/net/4bitle/LinkEstimator.nc @@ -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); diff --git a/tos/lib/net/4bitle/LinkEstimatorP.nc b/tos/lib/net/4bitle/LinkEstimatorP.nc index 616d4418..b35e1f4c 100644 --- a/tos/lib/net/4bitle/LinkEstimatorP.nc +++ b/tos/lib/net/4bitle/LinkEstimatorP.nc @@ -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) { diff --git a/tos/lib/net/le/LinkEstimator.nc b/tos/lib/net/le/LinkEstimator.nc index 8e7a5df4..ad9eaf6a 100644 --- a/tos/lib/net/le/LinkEstimator.nc +++ b/tos/lib/net/le/LinkEstimator.nc @@ -35,13 +35,13 @@ 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); diff --git a/tos/lib/net/le/LinkEstimatorP.nc b/tos/lib/net/le/LinkEstimatorP.nc index 57bd8e87..6e602347 100644 --- a/tos/lib/net/le/LinkEstimatorP.nc +++ b/tos/lib/net/le/LinkEstimatorP.nc @@ -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) { -- 2.39.2