zacwbond opened a new pull request #783: Make ble_gap_rx_l2cap_update_req() 
behave like ble_gap_rx_param_req()
URL: https://github.com/apache/mynewt-nimble/pull/783
 
 
   `BLE_GAP_EVENT_L2CAP_UPDATE_REQ` and `BLE_GAP_EVENT_CONN_UPDATE_REQ` share 
the same `conn_update_req` event structure when they are sent to the 
application callback, but they do not behave the same way.  
   
   `ble_gap_rx_param_req()` creates a self_params, allowing the application to 
adjust the parameters to something acceptable.  `ble_gap_rx_l2cap_update_req()` 
just leaves the `self_params` structure NULL and otherwise ignores it.  Now 
they both behave in the same way.
   
   In my specific case, the ESP32 platform I am using crashes if I don't 
enforce a specific set of parameters when multiple peripherals connect.  Since 
the peripherals use the L2CAP method to make the request, this change 
eliminates the crash.
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to