capi.c (0a2d31b62dba9b5b92a38c67c9cc42630513662a) capi.c (7176522cdca1f0b78a1434b41761f0334511822a)
1/*
2 CMTP implementation for Linux Bluetooth stack (BlueZ).
3 Copyright (C) 2002-2003 Marcel Holtmann <marcel@holtmann.org>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License version 2 as
7 published by the Free Software Foundation;
8

--- 372 unchanged lines hidden (view full) ---

381static void cmtp_reset_ctr(struct capi_ctr *ctrl)
382{
383 struct cmtp_session *session = ctrl->driverdata;
384
385 BT_DBG("ctrl %p", ctrl);
386
387 capi_ctr_down(ctrl);
388
1/*
2 CMTP implementation for Linux Bluetooth stack (BlueZ).
3 Copyright (C) 2002-2003 Marcel Holtmann <marcel@holtmann.org>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License version 2 as
7 published by the Free Software Foundation;
8

--- 372 unchanged lines hidden (view full) ---

381static void cmtp_reset_ctr(struct capi_ctr *ctrl)
382{
383 struct cmtp_session *session = ctrl->driverdata;
384
385 BT_DBG("ctrl %p", ctrl);
386
387 capi_ctr_down(ctrl);
388
389 kthread_stop(session->task);
389 atomic_inc(&session->terminate);
390 wake_up_process(session->task);
390}
391
392static void cmtp_register_appl(struct capi_ctr *ctrl, __u16 appl, capi_register_params *rp)
393{
394 DECLARE_WAITQUEUE(wait, current);
395 struct cmtp_session *session = ctrl->driverdata;
396 struct cmtp_application *application;
397 unsigned long timeo = CMTP_INTEROP_TIMEOUT;

--- 226 unchanged lines hidden ---
391}
392
393static void cmtp_register_appl(struct capi_ctr *ctrl, __u16 appl, capi_register_params *rp)
394{
395 DECLARE_WAITQUEUE(wait, current);
396 struct cmtp_session *session = ctrl->driverdata;
397 struct cmtp_application *application;
398 unsigned long timeo = CMTP_INTEROP_TIMEOUT;

--- 226 unchanged lines hidden ---