Cache of advertisements from a device was not cleared if a bad
extended advertisement was received which caused that new
advertisements from same device address was rejected as invalid.
Tag: #stability
Test: receive malformed advertisement
Signed-off-by: Henrik Davidsen <h.davidsen@samsung.com>
Change-Id: If07010954fef235b696c8a120026934a7aeadcb5
if (!AdvertiseDataParser::IsValid(adv_data)) {
DVLOG(1) << __func__ << "Dropping bad advertisement packet: "
<< base::HexEncode(adv_data.data(), adv_data.size());
+ cache.Clear(addr_type, bda);
return;
}