Lines 162-175
static int rfcomm_dev_activate(struct tt
Link Here
|
162 |
return err; |
162 |
return err; |
163 |
} |
163 |
} |
164 |
|
164 |
|
165 |
/* we block the open until the dlc->state becomes BT_CONNECTED */ |
|
|
166 |
static int rfcomm_dev_carrier_raised(struct tty_port *port) |
167 |
{ |
168 |
struct rfcomm_dev *dev = container_of(port, struct rfcomm_dev, port); |
169 |
|
170 |
return (dev->dlc->state == BT_CONNECTED); |
171 |
} |
172 |
|
173 |
/* device-specific cleanup: close the dlc */ |
165 |
/* device-specific cleanup: close the dlc */ |
174 |
static void rfcomm_dev_shutdown(struct tty_port *port) |
166 |
static void rfcomm_dev_shutdown(struct tty_port *port) |
175 |
{ |
167 |
{ |