Cannot get WPA_supplicant work for TPlink 725 wireless adapter for P2P
Arend van Spriel
Fri Mar 20 04:32:01 PDT 2015
On 03/20/15 04:37, Abhinav Sinha wrote:
> I have TP-link 725 adapter that has P2P support that cant be verified
> via iwpriv:
> $ iwpriv
> wlan1 Available private ioctls :
> write (8BE0) : set 2047 char & get 0
> read (8BE1) : set 2047 char & get 16 char
> driver_ext (8BE2) : set 0 & get 0
> mp_ioctl (8BE3) : set 0 & get 0
> apinfo (8BE4) : set 1 int & get 0
> setpid (8BE5) : set 2 int & get 0
> wps_start (8BE6) : set 1 int & get 0
> get_sensitivity (8BE7) : set 1 int & get 0
> wps_prob_req_ie (8BE8) : set 1 int & get 0
> wps_assoc_req_ie (8BE9) : set 1 int & get 0
> channel_plan (8BEA) : set 1 int & get 0
> dbg (8BEB) : set 2 int & get 0
> rfw (8BEC) : set 3 int & get 0
> rfr (8BED) : set 2 int & get 16 char
> p2p_set (8BF0) : set 64 char & get 0
> p2p_get (8BF1) : set 64 char & get 64 char
> p2p_get2 (8BF2) : set 64 char & get 16 char
> Rest removed for brevity.
> However, in attempt to make a generic application, I want to use
> But I am not apble to get it to work.
The list above are driver private wext ioctls.
> Here are few of my trials:
> wpa_supplicant-2.3/wpa_supplicant$ sudo ./wpa_supplicant -iwlan1
> -Dnl80211 -C/var/run/wpa_supplicant2.3
> Successfully initialized wpa_supplicant
> nl80211: Could not configure driver mode
> wlan1: Failed to initialize driver interface
> I am able to launch with -Dwext but it does not give positive response
> for any p2p commands.
I am not sure about WEXT and P2P. Never tried that, but those private
ioctls will probably not be used by either nl80211 nor wext driver.
> Please suggest on How to configure wpa_supplicant to launch with this
> dongle for P2P support.
If that TP-Link only does wext and P2P only through driver private
ioctls you will probably need to add your own driver layer to
wpa_supplicant. So not really a configuration issue, but adding code to
make it work. But you will have to know what to pass in those driver
More information about the Hostap