From: Drasko D. <dra...@gm...> - 2013-05-30 17:05:49
|
On Thu, May 30, 2013 at 6:59 PM, Drasko DRASKOVIC <dra...@gm...> wrote: > On Thu, May 30, 2013 at 5:59 PM, Richard Cochran > <ric...@gm...> wrote: >> On Thu, May 30, 2013 at 05:03:21PM +0200, Drasko DRASKOVIC wrote: >>> >>> I will grep for some examples, to see how it is currently done in the kernel. >> >> If tell me your MAC driver, I can suggest a likely place to call the >> tx time stamp function. > > Hello Richard, > Pandaboard uses this WiFi driver : > https://github.com/garwedgess/ti-wlan/tree/master/compat-wireless-wl12xx/drivers/net/wireless/wl12xx > > I put skb_tx_timestamp(skb); inside of wl1271_prepare_tx_frame() here > : https://github.com/garwedgess/ti-wlan/blob/master/compat-wireless-wl12xx/drivers/net/wireless/wl12xx/tx.c#L443. > > It compiled, but I was unable to insert the module afterwards : > > root@panda:~# modprobe wl12xx > FATAL: Error inserting wl12xx > (/lib/modules/3.2.40-dirty/kernel/drivers/net/wireless/wl12xx/wl12xx.ko): > Unknown symbol in module, or unknown parameter (see dmesg) > root@panda:~# dmesg > ... > [ 77.510345] wl12xx: Unknown symbol skb_clone_tx_timestamp (err 0) > ... Sorry, seems like I did not take correct uImage that corresponds new module. I did now, and module was loaded fine. Anyway, do you thing that the place (file and function) I inserted skb_tx_timestamp(skb); is a good candidate ? Best regards, Drasko |