|
|
|
|
216
|
if (evt & PDB_EVT_PE_MSG_RX) {
|
216
|
if (evt & PDB_EVT_PE_MSG_RX) {
|
217
|
if (chMBFetch(&pdb_pe_mailbox, (msg_t *) &policy_engine_message, TIME_IMMEDIATE) == MSG_OK) {
|
217
|
if (chMBFetch(&pdb_pe_mailbox, (msg_t *) &policy_engine_message, TIME_IMMEDIATE) == MSG_OK) {
|
218
|
/* Ignore vendor-defined messages */
|
218
|
/* Ignore vendor-defined messages */
|
219
|
- /* TODO: we're supposed to send NAKs in response to all
|
|
|
220
|
- * unsupported structured VDMs except Attention. */
|
|
|
221
|
if (PD_MSGTYPE_GET(policy_engine_message) == PD_MSGTYPE_VENDOR_DEFINED
|
219
|
if (PD_MSGTYPE_GET(policy_engine_message) == PD_MSGTYPE_VENDOR_DEFINED
|
222
|
&& PD_NUMOBJ_GET(policy_engine_message) > 0) {
|
220
|
&& PD_NUMOBJ_GET(policy_engine_message) > 0) {
|
223
|
chPoolFree(&pdb_msg_pool, policy_engine_message);
|
221
|
chPoolFree(&pdb_msg_pool, policy_engine_message);
|