Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ee149af authored by Satya Calloji's avatar Satya Calloji Committed by Prerepa Viswanadham
Browse files

Incorrect data type in local LE features

bt_local_le_features_t of wrong size

b/16653133

Change-Id: I81da7f8c6b9151b8def8d4e3c655cf746d0e3db9
parent 19d567fe
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1042,7 +1042,10 @@ static void execute_storage_request(UINT16 event, char *p_param)
                local_le_features.max_adv_instance = cmn_vsc_cb.adv_inst_max;
                local_le_features.max_irk_list_size = cmn_vsc_cb.max_irk_list_sz;
                local_le_features.rpa_offload_supported = cmn_vsc_cb.rpa_offloading;
                local_le_features.scan_result_storage_size = cmn_vsc_cb.tot_scan_results_strg;
                local_le_features.scan_result_storage_size_hibyte =
                    (cmn_vsc_cb.tot_scan_results_strg >> 8) & (0xFF);
                local_le_features.scan_result_storage_size_lobyte =
                    (cmn_vsc_cb.tot_scan_results_strg) & (0xFF);
                local_le_features.activity_energy_info_supported = cmn_vsc_cb.energy_support;
                memcpy(prop.val, &local_le_features, prop.len);
                #endif
+4 −1
Original line number Diff line number Diff line
@@ -1688,7 +1688,10 @@ static void btif_dm_upstreams_evt(UINT16 event, char* p_param)
            local_le_features.max_adv_instance = cmn_vsc_cb.adv_inst_max;
            local_le_features.max_irk_list_size = cmn_vsc_cb.max_irk_list_sz;
            local_le_features.rpa_offload_supported = cmn_vsc_cb.rpa_offloading;
            local_le_features.scan_result_storage_size = cmn_vsc_cb.tot_scan_results_strg;
            local_le_features.scan_result_storage_size_hibyte =
                (cmn_vsc_cb.tot_scan_results_strg >> 8) & (0xFF);
            local_le_features.scan_result_storage_size_lobyte =
                (cmn_vsc_cb.tot_scan_results_strg) & (0xFF);
            local_le_features.activity_energy_info_supported = cmn_vsc_cb.energy_support;
            memcpy(prop.val, &local_le_features, prop.len);
            HAL_CBACK(bt_hal_cbacks, adapter_properties_cb, BT_STATUS_SUCCESS, 1, &prop);