Skip to contentSkip to conversation

Monitor mode question

ath9k-devel Lenin Ravindranath S 4 participants 6 messages Jan 17, 2010 – Jan 19, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I am new to ath9k. I have a DWA-642 card and I am trying to set it in monitor mode to inject and receive packets.

I did

iw dev wlan0 interface add fish0 type monitor
ifconfig fish0 up

I have two problems
1. The interface is able to get only packets which has destination address as a broadcast address (FF:FF:FF:FF:FF:FF) and not every packet in the air.

2. Whatever rate I set in radiotap header to inject packet, the packet goes out at only 1Mbps. I tried to use both packetspammer and "click router" to try to inject packets.

Am I missing some flags/settings?

Thanks
Lenin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100116/f1ba1ef0/attachment.htm

#1 lore raw

Lenin Ravindranath S a ?crit :

Quoted 7 lines

Hi,

I am new to ath9k. I have a DWA-642 card and I am trying to set it in monitor mode to inject and receive packets.

I did

Quoted 8 lines

iw dev wlan0 interface add fish0 type monitor
ifconfig fish0 up

I have two problems
1. The interface is able to get only packets which has destination address as a broadcast address (FF:FF:FF:FF:FF:FF) and not every packet in the air.

That's not expected. Maybe you should set the channel as well :
iw dev fish0 set channel 1

Quoted 4 lines

2. Whatever rate I set in radiotap header to inject packet, the packet goes out at only 1Mbps. I tried to use both packetspammer and "click router" to try to inject packets.

Indeed, that's not implemented. There are patches to do it however.

Quoted 2 lines

Am I missing some flags/settings?

Yes. What kernel are you using?

Quoted 3 lines

Thanks
Lenin

Regards,
Benoit

#2 lore raw

I am running 2.6.27.37-170.2.104.fc10.i686.

Can you point me to the patch that will enable me to set rates? Even the b/g rates doesn't seem to work. The packets are sent out at 1Mbps always.

Quoted 30 lines · Benoit PAPILLAULT

Lenin Ravindranath S a ?crit :

Quoted 7 lines

Hi,

I am new to ath9k. I have a DWA-642 card and I am trying to set it in monitor mode to inject and receive packets.

I did

Quoted 8 lines

iw dev wlan0 interface add fish0 type monitor
ifconfig fish0 up

I have two problems
1. The interface is able to get only packets which has destination address as a broadcast address (FF:FF:FF:FF:FF:FF) and not every packet in the air.

That's not expected. Maybe you should set the channel as well :
iw dev fish0 set channel 1

Quoted 4 lines

2. Whatever rate I set in radiotap header to inject packet, the packet goes out at only 1Mbps. I tried to use both packetspammer and "click router" to try to inject packets.

Indeed, that's not implemented. There are patches to do it however.

Quoted 2 lines

Am I missing some flags/settings?

Quoted 10 lines

Yes. What kernel are you using?

Quoted 3 lines

Thanks
Lenin

Regards,
Benoit

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100117/b96fdc2c/attachment.htm

#3 lore raw
Quoted 50 lines · Lenin Ravindranath S

I am running 2.6.27.37-170.2.104.fc10.i686.

Can you point me to the patch that will enable me to set rates? Even the b/g rates doesn't seem to work. The packets are sent out at 1Mbps always.

Quoted 31 lines · Benoit PAPILLAULT

Lenin Ravindranath S a ?crit :

Quoted 7 lines

Hi,

I am new to ath9k. I have a DWA-642 card and I am trying to set it in monitor mode to inject and receive packets.

I did

Quoted 8 lines

iw dev wlan0 interface add fish0 type monitor
ifconfig fish0 up

I have two problems
1. The interface is able to get only packets which has destination address as a broadcast address (FF:FF:FF:FF:FF:FF) and not every packet in the air.

That's not expected. Maybe you should set the channel as well :
iw dev fish0 set channel 1

Quoted 4 lines

2. Whatever rate I set in radiotap header to inject packet, the packet goes out at only 1Mbps. I tried to use both packetspammer and "click router" to try to inject packets.

Indeed, that's not implemented. There are patches to do it however.

Quoted 2 lines

Am I missing some flags/settings?

Quoted 9 lines

Yes. What kernel are you using?

Quoted 3 lines

Thanks
Lenin

Regards,
Benoit

Quoted 6 lines

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Here is it
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 703-radiotap_mcs.patch
Type: text/x-patch
Size: 6865 bytes
Desc: not available
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20100118/47f79f57/attachment-0001.bin

#4 lore raw
In reply to Lenin Ravindranath S

Lenin Ravindranath S a ?crit :

Quoted 1 line

I am running 2.6.27.37-170.2.104.fc10.i686.

That much! :-) There has been lots of changes since then. I would advice you to try 2.6.32 or compat-wireless.

Quoted 4 lines

Can you point me to the patch that will enable me to set rates? Even the b/g rates doesn't seem to work. The packets are sent out at 1Mbps always.

Yup. These are patches from Matteo :
http://teknoraver.net/software/radiotap_mcs/

Regards,
Benoit

Quoted 47 lines

On Sun, Jan 17, 2010 at 3:18 AM, Benoit PAPILLAULT <benoit.papillault at free.fr <mailto:[email protected]>> wrote:

Lenin Ravindranath S a ?crit :
> Hi,
>
> I am new to ath9k. I have a DWA-642 card and I am trying to set it in
> monitor mode to inject and receive packets.
>
> I did
>
> iw dev wlan0 interface add fish0 type monitor
> ifconfig fish0 up
>
>
> I have two problems
> 1. The interface is able to get only packets which has destination > address as a broadcast address (FF:FF:FF:FF:FF:FF) and not every packet
> in the air.

That's not expected. Maybe you should set the channel as well :
iw dev fish0 set channel 1

>
> 2. Whatever rate I set in radiotap header to inject packet, the packet
> goes out at only 1Mbps. I tried to use both packetspammer and "click > router" to try to inject packets.

Indeed, that's not implemented. There are patches to do it however.

>
> Am I missing some flags/settings?

Yes. What kernel are you using?

>
> Thanks
> Lenin

Regards,
Benoit