Bluetooth: EWS: rewrite handling SAR bits
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Tue, 11 Oct 2011 10:37:45 +0000 (13:37 +0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 13 Oct 2011 19:44:53 +0000 (16:44 -0300)
commit7e0ef6ee13ecdf38c2c8b0b0c8ef729710b994eb
tree1c56a49a58982481ad89cb0daedd2c6e7e1259a7
parentab784b7383735681660ccbdda4569fff196c2672
Bluetooth: EWS: rewrite handling SAR bits

Segmentation and Reassembly (SAR) occupies different windows in standard and
extended control fields. Convert hardcoded masks to relative ones and use shift
to access SAR bits.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c