projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Signed-off-by: Robert Marshall KI4MCW <ki4mcw@gmail.com>
[bertos.git]
/
bertos
/
net
/
ax25.c
diff --git
a/bertos/net/ax25.c
b/bertos/net/ax25.c
index 3d5ac3431f0d82059e0836416da318f69e036647..2ea17efb3a8d1d8a9d1d76d97b1637c2a2ff0f27 100644
(file)
--- 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);
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 */
/* 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);
}
ax25_putchar(ctx, ssid);
}