bluetooth: support GFRM201 and GFRM210.
It is supposed to be GFRM210, but the first units arrived
populated with GFRM201. Support both.
Change-Id: I859f0ea8c4921f9ae4b4615c63b61a1a218b7673
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 73c9082..a354499 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -4753,10 +4753,11 @@
* it expects to receive LE_ADV_IND from the peripheral device in
* order to establish the LE connection for pairing.
*/
- if (type == LE_ADV_IND &&
- eir_has_data(data, len, EIR_NAME_SHORT, "GFRM200", 7) &&
- bacmp(bdaddr, &hdev->le_adv_ind_filter)) {
- BT_INFO("%s: Drop LE_ADV_IND from GFRM200 [%pMR]", hdev->name, bdaddr);
+ if (type == LE_ADV_IND && bacmp(bdaddr, &hdev->le_adv_ind_filter) &&
+ (eir_has_data(data, len, EIR_NAME_SHORT, "GFRM200", 7) ||
+ eir_has_data(data, len, EIR_NAME_SHORT, "GFRM201", 7) ||
+ eir_has_data(data, len, EIR_NAME_SHORT, "GFRM210", 7))) {
+ BT_INFO("%s: Drop LE_ADV_IND from GFRM2xx [%pMR]", hdev->name, bdaddr);
return;
}