mkiiskila closed pull request #1008: lora; include mic failures with join in 
statistics.
URL: https://github.com/apache/mynewt-core/pull/1008
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/net/lora/node/src/mac/LoRaMac.c b/net/lora/node/src/mac/LoRaMac.c
index 70d58d4b0e..e52cc349b3 100644
--- a/net/lora/node/src/mac/LoRaMac.c
+++ b/net/lora/node/src/mac/LoRaMac.c
@@ -1404,6 +1404,8 @@ lora_mac_process_radio_rx(struct os_event *ev)
                 LoRaMacParams.ChannelsDatarate = 
LoRaMacParamsDefaults.ChannelsDatarate;
                 lora_mac_send_join_confirm(LORAMAC_EVENT_INFO_STATUS_OK,
                                            JoinRequestTrials);
+            } else {
+                STATS_INC(lora_mac_stats, rx_mic_failures);
             }
             break;
         case FRAME_TYPE_DATA_CONFIRMED_DOWN:


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to