diff options
author | Xie He <[email protected]> | 2020-12-08 14:50:44 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-12-10 13:18:28 -0800 |
commit | 3b0c860f872da622a39707bda11064395199836f (patch) | |
tree | 7205a80fcdcb9902a8cdc1897f3d40bdc3141e4a /lib/net_utils.c | |
parent | bfa5e98c9de466bfe25a9b4bf6ef9122aee2d06a (diff) |
net: lapbether: Consider it successful if (dis)connecting when already (dis)connected
When the upper layer instruct us to connect (or disconnect), but we have
already connected (or disconnected), consider this operation successful
rather than failed.
This can help the upper layer to correct its record about whether we are
connected or not here in layer 2.
The upper layer may not have the correct information about whether we are
connected or not. This can happen if this driver has already been running
for some time when the "x25" module gets loaded.
Another X.25 driver (hdlc_x25) is already doing this, so we make this
driver do this, too.
Cc: Martin Schiller <[email protected]>
Signed-off-by: Xie He <[email protected]>
Acked-by: Martin Schiller <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions