Commit 991d155 1 parent 53911eb commit 991d155 Copy full SHA for 991d155
File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -505,17 +505,21 @@ tsch_rx_process_pending()
505
505
&& frame .fcf .frame_type == FRAME802154_BEACONFRAME ;
506
506
507
507
if (is_data ) {
508
- /* Skip EBs and other control messages */
509
- /* Copy to packetbuf for processing */
508
+ /* Copy payload to packetbuf for processing */
510
509
packetbuf_copyfrom (current_input -> payload , current_input -> len );
511
510
packetbuf_set_attr (PACKETBUF_ATTR_RSSI , current_input -> rssi );
512
511
packetbuf_set_attr (PACKETBUF_ATTR_CHANNEL , current_input -> channel );
513
- }
514
512
515
- if (is_data ) {
516
513
/* Pass to upper layers */
517
514
packet_input ();
515
+
518
516
} else if (is_eb ) {
517
+ /* Don't pass to upper layers, but still count it in link stats */
518
+ packetbuf_set_attr (PACKETBUF_ATTR_RSSI , current_input -> rssi );
519
+ packetbuf_set_attr (PACKETBUF_ATTR_CHANNEL , current_input -> channel );
520
+ link_stats_input_callback ((const linkaddr_t * )frame .src_addr );
521
+
522
+ /* Process EB without copying the payload to packetbuf */
519
523
eb_input (current_input );
520
524
}
521
525
You can’t perform that action at this time.
0 commit comments