Skip to content

Commit

Permalink
Use gensio_set_addr_from_child() in ax25
Browse files Browse the repository at this point in the history
Do it the right way.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Dec 21, 2023
1 parent 7555249 commit f5d435d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/gensio_ax25.c
Original file line number Diff line number Diff line change
Expand Up @@ -4836,13 +4836,10 @@ ax25_chan_alloc(struct ax25_base *base, const char *const args[],
goto out_nomem;
gensio_set_is_client(chan->io, true); /* FIXME */

gensio_set_attr_from_child(chan->io, base->child);
gensio_set_is_packet(chan->io, true);
gensio_set_is_reliable(chan->io, true);
gensio_set_is_mux(chan->io, true);
if (gensio_is_authenticated(base->child))
gensio_set_is_authenticated(chan->io, true);
if (gensio_is_encrypted(base->child))
gensio_set_is_encrypted(chan->io, true);

ax25_base_lock(base);
chan->base = base;
Expand Down

0 comments on commit f5d435d

Please sign in to comment.