aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/l2cap.h
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-06-10 16:02:12 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-16 17:57:14 -0400
commitc1360a1cf35117d6f3898cb5183ce4349d06714c (patch)
tree0a68031ba6f6252054d7b6b5b5a40913a29c58e4 /include/net/bluetooth/l2cap.h
parent7fbec224cfb44074ab88720c878aa3bdb3158377 (diff)
Bluetooth: use bit operation on conf_state
Instead of making the bit operations manually, we now use set_bit, test_bit, etc. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/l2cap.h')
-rw-r--r--include/net/bluetooth/l2cap.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index bf1c7f681932..4ab1b27996bc 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -324,7 +324,7 @@ struct l2cap_chan {
324 __u16 monitor_timeout; 324 __u16 monitor_timeout;
325 __u16 mps; 325 __u16 mps;
326 326
327 __u8 conf_state; 327 unsigned long conf_state;
328 __u16 conn_state; 328 __u16 conn_state;
329 329
330 __u8 next_tx_seq; 330 __u8 next_tx_seq;
@@ -424,14 +424,16 @@ struct l2cap_pinfo {
424 struct l2cap_chan *chan; 424 struct l2cap_chan *chan;
425}; 425};
426 426
427#define L2CAP_CONF_REQ_SENT 0x01 427enum {
428#define L2CAP_CONF_INPUT_DONE 0x02 428 CONF_REQ_SENT,
429#define L2CAP_CONF_OUTPUT_DONE 0x04 429 CONF_INPUT_DONE,
430#define L2CAP_CONF_MTU_DONE 0x08 430 CONF_OUTPUT_DONE,
431#define L2CAP_CONF_MODE_DONE 0x10 431 CONF_MTU_DONE,
432#define L2CAP_CONF_CONNECT_PEND 0x20 432 CONF_MODE_DONE,
433#define L2CAP_CONF_NO_FCS_RECV 0x40 433 CONF_CONNECT_PEND,
434#define L2CAP_CONF_STATE2_DEVICE 0x80 434 CONF_NO_FCS_RECV,
435 CONF_STATE2_DEVICE,
436};
435 437
436#define L2CAP_CONF_MAX_CONF_REQ 2 438#define L2CAP_CONF_MAX_CONF_REQ 2
437#define L2CAP_CONF_MAX_CONF_RSP 2 439#define L2CAP_CONF_MAX_CONF_RSP 2