summaryrefslogtreecommitdiff
path: root/hal/phy/maximus/src/maximus_phy_access.c
diff options
context:
space:
mode:
authorburet2007-10-04 14:44:42 +0000
committerburet2007-10-04 14:44:42 +0000
commit2c0489b89ce364de0441f25d66aa682dadb3742a (patch)
tree35cd9de3fc34cfeeb059de7f2c2bb4607d4c4dd8 /hal/phy/maximus/src/maximus_phy_access.c
parent9d0a91001b7da12aed5dc2723130ca3e555d6fe1 (diff)
Maximus HAL PHY: set the PRP result if CW is lost.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@773 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'hal/phy/maximus/src/maximus_phy_access.c')
-rw-r--r--hal/phy/maximus/src/maximus_phy_access.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/hal/phy/maximus/src/maximus_phy_access.c b/hal/phy/maximus/src/maximus_phy_access.c
index 4f4511a145..636577e487 100644
--- a/hal/phy/maximus/src/maximus_phy_access.c
+++ b/hal/phy/maximus/src/maximus_phy_access.c
@@ -390,14 +390,17 @@ maximus_phy_access_prp_result_cb (void *data)
{
ctx->access.prp_result = true;
}
+ else
+ {
+ ctx->access.prp_result = false;
- /* If PRP is lost (i.e. the detected CAP is greater than the programmed one), PHY stops Tx. */
+ /* If PRP is lost (i.e. the detected CAP is greater than the programmed one), PHY stops Tx. */
- if (!ctx->access.prp_result
- && ctx->control.stop_tx_on_prp_lost)
- {
- maximus_phy_next_tx_frame_cancel(ctx);
- maximus_phy_current_tx_frame_cancel(ctx);
+ if (ctx->control.stop_tx_on_prp_lost)
+ {
+ maximus_phy_next_tx_frame_cancel(ctx);
+ maximus_phy_current_tx_frame_cancel(ctx);
+ }
}
ctx->access.backoff_start_netclock_id = 0;