|
1 | 1 | /* |
2 | | - * Copyright (c) 2020 ARM Limited. All rights reserved. |
| 2 | + * Copyright (c) 2020-2021, Pelion and affiliates. |
3 | 3 | * SPDX-License-Identifier: Apache-2.0 |
4 | | - * Licensed under the Apache License, Version 2.0 (the License); you may |
5 | | - * not use this file except in compliance with the License. |
| 4 | + * |
| 5 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + * you may not use this file except in compliance with the License. |
6 | 7 | * You may obtain a copy of the License at |
7 | 8 | * |
8 | | - * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
9 | 10 | * |
10 | 11 | * Unless required by applicable law or agreed to in writing, software |
11 | | - * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
12 | | - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | 14 | * See the License for the specific language governing permissions and |
14 | 15 | * limitations under the License. |
15 | 16 | */ |
@@ -619,7 +620,7 @@ static void rf_handle_cca_ed_done(void) |
619 | 620 | backup_time = 0; |
620 | 621 | } |
621 | 622 | rf_backup_timer_start(0, backup_time + PACKET_PROCESSING_TIME); |
622 | | - device_driver.phy_tx_done_cb(rf_radio_driver_id, mac_tx_handle, PHY_LINK_CCA_FAIL, 0, 0); |
| 623 | + device_driver.phy_tx_done_cb(rf_radio_driver_id, mac_tx_handle, PHY_LINK_CCA_FAIL_RX, 0, 0); |
623 | 624 | return; |
624 | 625 | } |
625 | 626 | if ((cca_enabled == true) && (((int8_t) rf_read_rf_register(RF_EDV, rf_module) > cca_threshold))) { |
@@ -997,7 +998,7 @@ static void rf_backup_timer_interrupt(void) |
997 | 998 | } |
998 | 999 | if ((rf_state == RF_CSMA_STARTED) || (rf_state == RF_CSMA_WHILE_RX)) { |
999 | 1000 | TEST_CSMA_DONE |
1000 | | - device_driver.phy_tx_done_cb(rf_radio_driver_id, mac_tx_handle, PHY_LINK_CCA_FAIL, 0, 0); |
| 1001 | + device_driver.phy_tx_done_cb(rf_radio_driver_id, mac_tx_handle, PHY_LINK_CCA_FAIL_RX, 0, 0); |
1001 | 1002 | } |
1002 | 1003 | TEST_TX_DONE |
1003 | 1004 | TEST_RX_DONE |
|
0 commit comments