detect data rate of p2p connection
Arend van Spriel
arend at broadcom.com
Tue May 14 17:35:48 EDT 2013
On 05/14/2013 10:56 PM, Chao Xu wrote:
> 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
> RATE rate=60 flags=0x1
> RATE rate=90 flags=0x0
> RATE rate=120 flags=0x1
> RATE rate=180 flags=0x0
> RATE rate=240 flags=0x1
> RATE rate=360 flags=0x0
> RATE rate=480 flags=0x0
> RATE 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.
More information about the HostAP