OSDN Git Service

core: Do not attempt to connect if adapter is not powered
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 12 Nov 2013 14:32:29 +0000 (16:32 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 12 Nov 2013 14:51:39 +0000 (16:51 +0200)
commitea03e79796ee9ede716c8134d0bdd920e73497e1
tree6f49a25ab48d81b5764b32fdba9241e6862873fb
parentfa0ce2cbb4bc797aeab5b8c70618f0c55c1b8251
core: Do not attempt to connect if adapter is not powered

If the adapter is not yet powered do not attempt to connect, also
abort any connection attempt in case of error -EHOSTUNREACH is returned
by the kernel which also means the adapter is not up or in case of
-ECONNABORTED which means the adapter was powered down during the
connection attempt.
src/device.c