device: Fix not setting initiator flag when auto-connecting
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 29 Mar 2023 20:27:05 +0000 (13:27 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:41:34 +0000 (16:11 +0530)
commit3e9107c7e763a0c507bf0342257c2ad20493518e
tree631acff2d7f7866bfa2969af74150afdc9d69223
parent7089f0cae9b852c53ac90b52b7ce79329eae5afb
device: Fix not setting initiator flag when auto-connecting

If the device is marked as auto-connect the kernel may initiate the
connection spontaneously causing new connections to not have set the
state->initiator flag properly.
src/device.c