RLC DL AMD PDU changes [Issue-ID: ODUHIGH-290]
[o-du/l2.git] / src / phy_stub / phy_stub_thread_hdl.c
index e76c067..5b09351 100644 (file)
@@ -23,6 +23,7 @@
 #include "du_log.h"
 
 uint8_t l1SendUlUserData();
+uint8_t l1SendStatusPdu();
 uint16_t l1BuildAndSendSlotIndication();
 pthread_t thread = 0;
 
@@ -123,6 +124,12 @@ void *l1ConsoleHandler(void *args)
          DU_LOG("\nDEBUG  --> PHY STUB: Sending UL User Data");
          l1SendUlUserData();
       }
+      else if((ch = getchar()) == 'c')
+      {
+         /* Send Control PDU from PHY stub to DU */
+        DU_LOG("\nDEBUG  --> PHY STUB: Sending Status PDU");
+        l1SendStatusPdu();
+      }
    }
 }