detect data rate of p2p connection

Chao Xu caesarxuchao at
Tue May 14 17:43:47 EDT 2013

Thanks for the comment. 'iw dev wlan0 link' didn't work. I replied
'not connected'. This command worked correctly if I'm connected to a
regular AP. So I guess the problem is the wifi p2p connection I'm

On Tue, May 14, 2013 at 4:35 PM, Arend van Spriel <arend at> wrote:
> On 05/14/2013 10:56 PM, Chao Xu wrote:
>> Hi,
>> I connect my two computers via wifi p2p. The driver I use is carl9170.
>> Is it possible to check the tx data rate? Regular commands such as
>> "iwconfig" or "iwlist wlan0" doesn't work. So I checked the debug
>> messages printed out by wpa_supplicant. It only showed the supported
>> rates:
>>   RATE[0] rate=60 flags=0x1
>>   RATE[1] rate=90 flags=0x0
>>   RATE[2] rate=120 flags=0x1
>>   RATE[3] rate=180 flags=0x0
>>   RATE[4] rate=240 flags=0x1
>>   RATE[5] rate=360 flags=0x0
>>   RATE[6] rate=480 flags=0x0
>>   RATE[7] rate=540 flags=0x0
>> I guess it means the data rate is in the range of 6-54Mbps, am I
>> right? Anyway, is it possible to get the actual data rate my adapter
>> is working at?
> If iwconfig do not work you probably do not have WEXT in your kernel. You do
> not need it. Instead use the 'iw' utility. The command 'iw dev wlan0 link'
> should provide the current data rate.
> Regards,
> Arend
> _______________________________________________
> HostAP mailing list
> HostAP at

Chao Xu

More information about the HostAP mailing list