simple examples of how to

Thursday, October 15, 2009

stupid madwifi virtual device handling

Madwifi athX virtual devices always send TX_OK to networking kernel,

look into ieee80211_hardstart function at net80211/ieee80211_output.c

at the end of the function, it returns NETDEV_TX_OK.

We have to change it to check whether ieee80211_paranet_queue_xmit is succeeded or not and return the result.
Be sure not to free the skb before returning NETDEV_TX_BUSY.
Network kernel will try to free the skb AGAIN!!

No comments:

Post a Comment