AnsweredAssumed Answered

getting permission denied erro on wlan0

Question asked by Kshitij Batra on Feb 11, 2015
Latest reply on Mar 2, 2015 by alejandrolozano

Hi all,

We are getting permission denied error after starting Wifi

D/CommandListener( 2394): Setting iface cfg

D/CommandListener( 2394): Trying to bring down wlan0

I/wpa_supplicant( 4769): Successfully initialized wpa_supplicant

E/WifiHW  ( 4288): Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0": Permission denied

E/WifiHW  ( 4288): Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0": Permission denied

 

This was working fine if we are not creating p2p interface through wpa_supplicant.

 

if we used below command in init.rc then we faced permission denied error in wifihw.

service p2p_supplicant /system/bin/wpa_supplicant \

    -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -N \

    -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf

    user root

    group system wifi inet dhcps

    class late_start

    disabled

    oneshot

And we have also created p2p interface through command:

iw phy `ls /sys/class/ieee80211/` interface add p2p0 type managed

 

We have also checked the permission of socket "wlan0" file and it has all necesary permissions.

 

We are using android jelly bean 4.2 on i.MX6.

 

 

Thanks&Regards,

Kshitij Batra

Outcomes