Skip to content
Permalink
Browse files

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>
  • Loading branch information...
parthitce authored and jukkar committed Jun 13, 2019
1 parent d397799 commit d0d963a85d356952b75a2cfe188009e40209677b
Showing with 1 addition and 0 deletions.
  1. +1 −0 drivers/wifi/eswifi/eswifi_offload.c
@@ -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);

0 comments on commit d0d963a

Please sign in to comment.
You can’t perform that action at this time.