aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2011-10-11 06:37:50 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-13 15:45:39 -0400
commite37817353bf94a4e00faad78ffb8cc07f8556252 (patch)
tree7208edac29fabd8456c6dec8ef7ff605dd10536f /include
parent03f6715d463e6ee3e724ac64a9bedf1ad7d2b9b4 (diff)
Bluetooth: EWS: rewrite handling POLL (P) bit
Handle POLL (P) bit in L2CAP ERTM using information about control field type. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/l2cap.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 3110c4301e45..67a2fdba9d8c 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -627,6 +627,22 @@ static inline bool __is_ctrl_final(struct l2cap_chan *chan, __u32 ctrl)
627 else 627 else
628 return ctrl & L2CAP_CTRL_FINAL; 628 return ctrl & L2CAP_CTRL_FINAL;
629} 629}
630
631static inline __u32 __set_ctrl_poll(struct l2cap_chan *chan)
632{
633 if (test_bit(FLAG_EXT_CTRL, &chan->flags))
634 return L2CAP_EXT_CTRL_POLL;
635 else
636 return L2CAP_CTRL_POLL;
637}
638
639static inline bool __is_ctrl_poll(struct l2cap_chan *chan, __u32 ctrl)
640{
641 if (test_bit(FLAG_EXT_CTRL, &chan->flags))
642 return ctrl & L2CAP_EXT_CTRL_POLL;
643 else
644 return ctrl & L2CAP_CTRL_POLL;
645}
630extern int disable_ertm; 646extern int disable_ertm;
631 647
632int l2cap_init_sockets(void); 648int l2cap_init_sockets(void);