detect data rate of p2p connection
Arend van Spriel
arend
Tue May 14 14:35:48 PDT 2013
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
More information about the Hostap
mailing list