We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a036c2 commit b87e148Copy full SHA for b87e148
connectivity/FEATURE_BLE/source/cordio/stack_adaptation/hci_tr.c
@@ -170,8 +170,18 @@ void hciTrSerialRxIncoming(uint8_t *pBuf, uint8_t len)
170
hdrLen = HCI_EVT_HDR_LEN;
171
break;
172
default:
173
- /* invalid packet type */
+ /**
174
+ * invalid packet type
175
+ *
176
+ * fix: Simply employing WSF_ASSERT in the event of
177
+ * an "invalid packet type" is not reasonable.
178
+ * Instead, it is advisable to discard this data packet,
179
+ * exit the packet processing function,
180
+ * and adjust the stateRx back to HCI_RX_STATE_IDLE.
181
+ */
182
+ stateRx = HCI_RX_STATE_IDLE;
183
WSF_ASSERT(0);
184
+ return;
185
186
}
187
0 commit comments