diepquynh / android_device_samsung_grandprimeve3g

Device tree for Samsung Galaxy Grand Prime VE SPRD SM-G531H
18 stars 26 forks source link

cm-12.1: Wifi doesn't work #2

Closed diepquynh closed 7 years ago

diepquynh commented 7 years ago

It only work on first start, then when we disable it, then enable it, it's dead until we remove /data/misc/wifi folder. Logcat: I/wpa_supplicant( 901): rfkill: Cannot open RFKILL control device E/wpa_supplicant( 901): Could not read interface p2p-dev-wlan0 flags: No such device

diepquynh commented 7 years ago

@ngoquang2708 Any ideas bro?

ngoquang2708 commented 7 years ago

What is permission of /data/misc/wifi folder before and after reboot? Are they both the same?

diepquynh commented 7 years ago

Yes they're. Here I just disable then re-enable WiFi, it dies

ngoquang2708 commented 7 years ago

The rfkill part is not importance. The importance one is that why wpa_supplicant cannot detect p2p-dev-wlan0 device.

ngoquang2708 commented 7 years ago

What is the permission anyway?

diepquynh commented 7 years ago

It seems the problem comes from the source itself, because WiFi still working properly with my CM13 with the same configuration

diepquynh commented 7 years ago

And the same for you with WiFi direct before

diepquynh commented 7 years ago

screenshot_2016-10-01-17-46-25

ngoquang2708 commented 7 years ago

What about the permission of the /data/misc/wifi directory?

diepquynh commented 7 years ago

screenshot_2016-10-01-17-51-12

ngoquang2708 commented 7 years ago

Okay, it seems normal, so what...?

diepquynh commented 7 years ago

I have to delete /data/misc/folder to make WiFi work once I disable it or reboot the phone

ngoquang2708 commented 7 years ago

Have you tried this: reboot to recovery, remove all the contents of the wifi folder, then set permission for it, then reboot.

ngoquang2708 commented 7 years ago

I got this issue in CM14 too, but not on AOSP7. But instead of dead, the wifi crash the system. I don't know why.

diepquynh commented 7 years ago

OK, let me try

diepquynh commented 7 years ago

Set the permissions like the above screenshot right?

ngoquang2708 commented 7 years ago

Yes

2016-10-01 18:30 GMT+07:00 Nguyễn Tuấn Quyền notifications@github.com:

Set the permissions like the above screenshot right?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/koquantam/android_device_samsung_grandprimeve3g/issues/2#issuecomment-250907481, or mute the thread https://github.com/notifications/unsubscribe-auth/AJOl9i1r9DmqsszysMBTsm9nW9FRHLYjks5qvkRFgaJpZM4KLr6_ .

diepquynh commented 7 years ago

OK this method doesn't work for me

ngoquang2708 commented 7 years ago

OK. Can I get full logcat before and after wifi is enabled?

diepquynh commented 7 years ago

Here's the one after fully booted, and connected to a network wifi.txt

diepquynh commented 7 years ago

And the one after disabled, then re-enabled WiFi wifi2.txt

diepquynh commented 7 years ago

Fixed by this commit: https://github.com/koquantam/android_device_samsung_grandprimeve3g/commit/2f2dc0e5f5c2555a50938076a3f71d6b9ecb734e