P2P_CLIENT or STATION - how to check this?

Janusz Dziedzic janusz.dziedzic at gmail.com
Thu Apr 7 03:13:36 EDT 2011


2011/4/7  <raghunathan.kailasanathan at wipro.com>:
>
>> How to check if we are P2P_CLIENT or STATION?
>> I see driver have such knowleadge eg. nl80211 ->
>> NL80211_IFTYPE_P2P_CLIENT/NL80211_IFTYPE_STATION - but this is driver
>> specyfic.
>>
>> How to check this from upper layers, from wpa_supplicant?
>
> I guess information given by "wpa_cli status" for the appropriate
> interface should have the details (for P2P , there is a mode
> field which shows whether it is a client or GO)
>

Status have only info this is a station:

<3>P2P-GROUP-STARTED wlan0 client ssid="DIRECT-WB" freq=0 psk=897c52bab7a7573e1f
922dc947a6d342e7fdf39d5f22e272d3756bee31f8513d go_dev_addr=00:aa:ab:02:9f:22

> > status
status
bssid=00:aa:ab:02:9f:22
ssid=DIRECT-WB
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
p2p_device_address=00:80:e1:9c:fc:03
address=00:80:e1:9c:fc:03
>

BR
Janusz


More information about the HostAP mailing list