diff --git a/d_rats/agw.py b/d_rats/agw.py index 3adeda0..102d199 100755 --- a/d_rats/agw.py +++ b/d_rats/agw.py @@ -683,20 +683,20 @@ def transmit_data(conn, dcall, spath, data): # left one bit dst_str = "".join([chr(ord(x) << 1) for x in call]) dst_str += encode_ssid(sid) - dst = dst_str.encode('utf-8', 'replace') + dst = bytes(dst_str, 'latin1') src_str = "" for scall in spath: call, sid = ssid(scall) src_str += "".join([chr(ord(x) << 1) for x in call]) src_str += encode_ssid(sid, spath[-1] == scall) - src = src_str.encode('utf-8', 'replace') + src = bytes(src_str, 'latin1') data_frame = struct.pack("!B7s%isBB" % len(src), 0x00, # Space for flag (?) dst, # Dest Call src, # Source Path - 0x3E, # Info + 0x03, # Unnumbered Info 0xF0) # PID: No layer 3 data_frame += data