Hi Mat, On Thu, Sep 13, 2012 at 08:28:06AM -0700, Mat Martineau wrote: > >When receiving A2MP Get AMP Assoc Request execute Read Local AMP Assoc > >HCI command to AMP controller. If the AMP Assoc data is larger then it > >can fit to HCI event only fragment is read. When all fragments are read > >send A2MP Get AMP Assoc Response. > > > >Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> ... > >+void a2mp_send_getampassoc_rsp(struct hci_dev *hdev, u8 status) > >+{ > >+ struct amp_mgr *mgr; > >+ struct amp_assoc *loc_assoc = &hdev->loc_assoc; > >+ struct a2mp_amp_assoc_rsp *rsp; > >+ size_t len; > >+ > >+ mgr = amp_mgr_lookup_by_state(READ_LOC_AMP_ASSOC); > > What if multiple amp managers are in the READ_LOC_AMP_ASSOC state? > Is that possible if multiple remote devices send GETAMPASSOC at the > same time? In this very unrealistic case I still do not see a problem. All those HCI requests would be serialized and response would be sent for all AMP managers. Best regards Andrei Emeltchenko -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html