X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fax25.c;fp=bertos%2Fnet%2Fax25.c;h=2ea17efb3a8d1d8a9d1d76d97b1637c2a2ff0f27;hb=4d78a4baee3170affbb4e001bee4720f425f2e6b;hp=3d5ac3431f0d82059e0836416da318f69e036647;hpb=2a436e4d47aeb0a6bff063307846747d1abb2335;p=bertos.git diff --git a/bertos/net/ax25.c b/bertos/net/ax25.c index 3d5ac343..2ea17efb 100644 --- a/bertos/net/ax25.c +++ b/bertos/net/ax25.c @@ -210,8 +210,9 @@ static void ax25_sendCall(AX25Ctx *ctx, const AX25Call *addr, bool last) for (unsigned i = 0; i < sizeof(addr->call) - len; i++) ax25_putchar(ctx, ' ' << 1); + /* Bits6:5 should be set to 1 for all SSIDs (0x60) */ /* The bit0 of last call SSID should be set to 1 */ - uint8_t ssid = addr->ssid << 1 | (last ? 0x01 : 0); + uint8_t ssid = 0x60 | (addr->ssid << 1) | (last ? 0x01 : 0); ax25_putchar(ctx, ssid); }