Factorized and fixed code for automatic LLCP socket binding.

Fixed the SAP automatic allocation algorithm which could previously
allocate the same SAP twice in some situations (e.g.: if first socket
in socket table was bound to SAP 0x21 and second socket to 0x20, then
autobind was allocating SAP 0x21 again).

Change-Id: Ic94bbc7eaca260c69cb0ce22931e9241f459bbf5
1 file changed
tree: a6adaad76b780d484996b1106d0acd7401e5e58b
  1. inc/
  2. Linux_x86/
  3. src/
  4. Android.mk
  5. CleanSpec.mk