summaryrefslogtreecommitdiff
path: root/hal/phy/maximus/test
diff options
context:
space:
mode:
authorburet2007-11-23 09:59:53 +0000
committerburet2007-11-23 09:59:53 +0000
commit3363b2a4d8a3d4fe1945e9e60800d10f94b2f071 (patch)
tree83da49cda7ec5e425c5776b6b27a21ed5b6d5d6b /hal/phy/maximus/test
parentce6ec0063dc14615ae1178a75ebc1ff3a428e169 (diff)
Maximus V2: modify noise data reception.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1039 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'hal/phy/maximus/test')
-rw-r--r--hal/phy/maximus/test/src/test_phy_ctrl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/hal/phy/maximus/test/src/test_phy_ctrl.c b/hal/phy/maximus/test/src/test_phy_ctrl.c
index 136f43a870..bcf734f6a8 100644
--- a/hal/phy/maximus/test/src/test_phy_ctrl.c
+++ b/hal/phy/maximus/test/src/test_phy_ctrl.c
@@ -604,14 +604,15 @@ void maximus_phy_recv_test_case(test_t t)
}
// fill sci data
- test_fail_unless ((PHY_CARRIER_NB*sizeof(u16) == sci_msg_push(&msg, PHY_CARRIER_NB*sizeof(u16)))
- && (EINVAL != errno)
- && (ENOSPC != errno));
- memcpy(msg.data_begin, freq_noise, PHY_CARRIER_NB*sizeof(u16));
test_fail_unless ((MAC_MAX_SYMB_PER_MPDU*sizeof(u16) == sci_msg_push(&msg, MAC_MAX_SYMB_PER_MPDU*sizeof(u16)))
&& (EINVAL != errno)
&& (ENOSPC != errno));
memcpy(msg.data_begin, time_noise, MAC_MAX_SYMB_PER_MPDU*sizeof(u16));
+ test_fail_unless ((PHY_CARRIER_NB*sizeof(u16) == sci_msg_push(&msg, PHY_CARRIER_NB*sizeof(u16)))
+ && (EINVAL != errno)
+ && (ENOSPC != errno));
+ memcpy(msg.data_begin, freq_noise, PHY_CARRIER_NB*sizeof(u16));
+
}
// RX
if (PHY_TYPE_RX == phy_hdr.type)