libnetdriver: only block datalink messages
Previously, all incoming messages would be blocked before a DL_CONF message arrives from the TCP/IP stack. This however makes it impossible for a driver to process interrupts before the DL_CONF initialization. This patch blocks only datalink messages before the initial DL_CONF, and lets through all other messages to the driver. Change-Id: I89988958c0bff9bb38e0379b66f6142491a67b61
This commit is contained in:
@@ -255,6 +255,9 @@
|
||||
#define DL_RQ_BASE 0x200
|
||||
#define DL_RS_BASE 0x280
|
||||
|
||||
#define IS_DL_RQ(type) (((type) & ~0x7f) == DL_RQ_BASE)
|
||||
#define IS_DL_RS(type) (((type) & ~0x7f) == DL_RS_BASE)
|
||||
|
||||
/* Message types for data link layer requests. */
|
||||
#define DL_CONF (DL_RQ_BASE + 0)
|
||||
#define DL_GETSTAT_S (DL_RQ_BASE + 1)
|
||||
|
||||
Reference in New Issue
Block a user