}
public L2CAPLink getL2CAPLink(long remoteAddress, byte pageScanRepMode, byte pageScanMode,
short clockOffset) throws HCIException {
Long remoteAddressLong = new Long(remoteAddress);
L2CAPLink link = (L2CAPLink)remoteAddresses.get(remoteAddressLong);
if (link == null) {
byte connResult = send_HCI_LC_Create_Connection(remoteAddress, (short)0x8000, pageScanRepMode, pageScanMode,
clockOffset, (byte)0x01);
if (connResult != 0) throw new HCIException("Create Connection failed. (" + connResult + ")");
short timeout = 0;