Open GoogleCodeExporter opened 8 years ago
I'm facing the same problem . I hope someone can help me solve this problem。
the next problem is when I accessed AP I could not setchannel. There seems
some error message return from Netlink.
AP is in channel 7.
root@ubuntu~~~~# ./rtsTest -s mon0 -i wlan4 -c 6
Failed to set channel 6 on wlan4mon: nl80211_setchannel() could not set channel
6/2437 on interface 'wlan4mon' err -16
Original comment by ziyoo...@gmail.com
on 13 May 2013 at 9:08
I've found a way to fix that (although I still get strange errors from
getChannel()):
#!/bin/bash
killall wpa_supplicant
killall NetworkManager
killall wicd
killall ifplugd
killall dhclient
Try running that script -- those are all the processes that will keep your card
in managed mode. To test that it worked, run ifconfig wlan0 down. then run
ifconfig. If you see your wireless interface up in the list, then you probably
have other processes to shut off.
Make sure you run ifconfig wlan0 up again before you try running lorcon again.
Original comment by BryanH...@gmail.com
on 13 May 2013 at 12:04
thank you for your help. I just found something new yesterday.
I don't think setChanel function doesn't work. In unaccess state getchannel
function always return -1 , As I know there is no -1 channel.
I set channel as 6. setchannel function didn't return any error message.
So i think setchannel function works well. Than i chacked wireshark. All the
packets transfer through channel 6. So I think setchannel function defined
interface's channel but not the frame's. I noticed all the other packets
transfer from channel 6 marks channel information (like channel fraquency)in
radiotap header(wireshark).But the frame which I send didn't mark any
information about channel.
Even I can capture my frame in interface(channel 6) and other packets all
transfer through channel 6. Since only my frame has no information about
channel. so i can't sure if my frame transfer through channel 6.
I'm looking for some way to fix radiotap header now. Trying to find more
desireable solution.
Because
Original comment by ziyoo...@gmail.com
on 14 May 2013 at 3:54
Original issue reported on code.google.com by
BryanH...@gmail.com
on 10 Apr 2013 at 4:05