getting permission denied erro on wlan0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

getting permission denied erro on wlan0

1,098 Views
kshitijbatra
Contributor I

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

0 Kudos
1 Reply

641 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I have never tried that, I wonder if you can share the steps to reproduce the problem in one of our boards.

Best Regards,

Alejandro

0 Kudos