wifi: eswifi: init net_pkt cursor after net_pkt_write
Initialize the net_pkt cursor to begining after net_pkt_write. Without which recv_cb can't peek/get net_pkt Signed-off-by: Parthiban Nallathambi <parthitce@gmail.com>
This commit is contained in:
parent
d397799608
commit
d0d963a85d
1 changed files with 1 additions and 0 deletions
|
@ -97,6 +97,7 @@ static void eswifi_off_read_work(struct k_work *work)
|
|||
LOG_WRN("Incomplete buffer copy");
|
||||
}
|
||||
|
||||
net_pkt_cursor_init(pkt);
|
||||
socket->recv_cb(socket->context, pkt,
|
||||
NULL, NULL, 0, socket->user_data);
|
||||
k_sem_give(&socket->read_sem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue