A real driver would handle an interrupt when tx finished and rx. I think we could simulate an interrupt by writing an interrupt handler, which will be called at the end of owl_ndo_start_xmit.
I have two ideas about how to write the interrupt handler:
implement single interrupt handler, which will handle the tx finished and rx. The handler can identify whether it is called on tx finished or rx by passing a flag to this handler as an parameter.
implement two interrupt handler. One for tx finished, one for rx.
I'm not sure which one is a better way to implement an interrupt handler.
A real driver would handle an interrupt when tx finished and rx. I think we could simulate an interrupt by writing an interrupt handler, which will be called at the end of owl_ndo_start_xmit.
I have two ideas about how to write the interrupt handler:
I'm not sure which one is a better way to implement an interrupt handler.