Skip to content

Commit

Permalink
wifi: eswifi: init net_pkt cursor after net_pkt_write
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
parthitce authored and jukkar committed Jun 14, 2019
1 parent d397799 commit d0d963a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/wifi/eswifi/eswifi_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d0d963a

Please sign in to comment.