Bluetooth: EWS: rewrite handling Supervisory (S) bits
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Tue, 11 Oct 2011 10:37:44 +0000 (13:37 +0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 13 Oct 2011 19:44:47 +0000 (16:44 -0300)
commitab784b7383735681660ccbdda4569fff196c2672
tree4a66e85b5e65695d0cdfd190a3aadefa035edcba
parent57253fd8c91e76780e9628451f680efcbcc52c85
Bluetooth: EWS: rewrite handling Supervisory (S) bits

Supervisory bits occupy different windows in standard / extended control
fields. Convert hardcoded masks to relative ones and use shift to access
S-bit window.

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