Fix problem with invalid read from array
Fix problem with invalid read from array

This patch fix problem with reading data from out of the array range in
function used to create EIR response.

ComputeCycles/bluez,mapfau/bluez,ComputeCycles/bluez,ComputeCycles/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,pkarasev3/bluez,pkarasev3/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,pkarasev3/bluez,mapfau/bluez,silent-snowman/bluez,silent-snowman/bluez,silent-snowman/bluez,silent-snowman/bluez,pkarasev3/bluez,mapfau/bluez