|
how to use napi to recieve
I am writing a module for wlan0 (wireless LAN) where I send a ping packet through it and recieve a packet for the same. Now I have succeeded in transmitting it but am unsure how to recieve it. For that, I would like to use napi with napi_schedule(struct napi_struct *n);, but I don't know where to get napi_struct within my tasklet.
Can anyone explain how to get napi_struct, or is there any other way of receiving the packets? Any suggestions are welcomed.
|