Inject


From: Yann Klis (yannski_at_www-aius.u-strasbg.fr)
Date: 2002-03-25 16:13:52 UTC



Hello,

As I wanted to test the packet injection, I recompile the prism2.o module, using a definition for PRISM2_MONITOR_PACKET_INJECT. I simply add this line in prism2.c :

#define PRISM2_MONITOR_PACKET_INJECT

(is that the right way to do ?)

Finally, after I created netlink usersocket (with mknod /dev/nl_usersock c 36 2), when I type iwpriv wlan0 monitor 1 or iwpriv wlan0 beacon_int 60000, I get the following error :

Mar 25 17:55:39 ap kernel: wlan0: INFO - fid=0x0417 - len=2 type=0xf200
Mar 25 17:55:39 ap kernel: wlan0: hfa384x_setup_bap - timeout3
Mar 25 17:55:39 ap kernel: wlan0: prism2_tx - to BAP0 failed
Mar 25 17:55:39 ap kernel: prism2: wlan0: resetting card
Mar 25 17:55:39 ap kernel: wlan0: Channel setting out of range (3)!
Mar 25 17:55:41 ap kernel: wlan0: INFO - fid=0x03e1 - len=2 type=0xf200
Mar 25 17:55:42 ap kernel: wlan0: hfa384x_setup_bap - timeout3
Mar 25 17:55:42 ap kernel: wlan0: prism2_tx - to BAP0 failed
Mar 25 17:55:42 ap kernel: prism2: wlan0: resetting card
Mar 25 17:55:42 ap kernel: wlan0: Channel setting out of range (3)!

And when I wanted to test the packet injection mechanism with the sample program provided with the driver, I get this error : fopen: No such device
But, I'm sure that the netlink usersocket is created...

What am I doing wrong ?

Can someone help me ?

Thanks,

yk



This archive was generated by hypermail 2.1.4.