fixed send_pkt_phy and send_pkt_app function