From 6f512cfaf391bf8f12b44c5df10abb98b13c5838 Mon Sep 17 00:00:00 2001 From: Nonoo Date: Wed, 21 Oct 2020 15:44:16 +0200 Subject: [PATCH] Readd mistakenly removed func --- controlstream.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/controlstream.go b/controlstream.go index 3e1a8ad..a8ca9f6 100644 --- a/controlstream.go +++ b/controlstream.go @@ -108,6 +108,16 @@ func (s *controlStream) sendPktReauth(firstReauthSend bool) { // s.common.sendDisconnect() // } +func (s *controlStream) sendPkt0() { + p := []byte{0x10, 0x00, 0x00, 0x00, 0x00, 0x00, byte(s.authSendSeq), byte(s.authSendSeq >> 8), + byte(s.common.localSID >> 24), byte(s.common.localSID >> 16), byte(s.common.localSID >> 8), byte(s.common.localSID), + byte(s.common.remoteSID >> 24), byte(s.common.remoteSID >> 16), byte(s.common.remoteSID >> 8), byte(s.common.remoteSID)} + s.common.send(p) + s.common.send(p) + + s.authSendSeq++ +} + func (s *controlStream) sendRequestSerialAndAudio() { log.Print("requesting serial and audio stream") p := []byte{0x90, 0x00, 0x00, 0x00, 0x00, 0x00, byte(s.authSendSeq), byte(s.authSendSeq >> 8),