MiCode / Xiaomi_Kernel_OpenSource

Xiaomi Mobile Phone Kernel OpenSource
8.71k stars 3.21k forks source link

k20 Wifi does not work #1163

Open rogan528 opened 4 years ago

rogan528 commented 4 years ago

12-02 19:03:05.462 721 721 E android.hardware.wifi@1.0-service: Wifi driver didn't get ready in time, giving up!: No such file or directory 12-02 19:03:05.462 721 721 E android.hardware.wifi@1.0-service: Failed to load WiFi driver 12-02 19:03:05.462 721 721 E android.hardware.wifi@1.0-service: Failed to initialize firmware mode controller 12-02 19:03:05.463 721 721 E android.hardware.wifi@1.0-service: Wifi HAL start failed

12-02 19:57:43.042 721 721 E android.hardware.wifi@1.0-service: Failed to write driver state control param: Invalid argument 12-02 19:57:43.042 721 721 E android.hardware.wifi@1.0-service: Failed to load WiFi driver 12-02 19:57:43.042 721 721 E android.hardware.wifi@1.0-service: Failed to initialize firmware mode controller 12-02 19:57:43.042 721 721 E android.hardware.wifi@1.0-service: Wifi HAL start failed 12-02 19:57:43.042 1229 1729 E HalDevMgr: Cannot start IWifi: 9 () 12-02 19:57:43.042 1229 1706 E HalDevMgr: IWifiEventCallback.onFailure: 9 () 12-02 19:57:43.042 1229 1729 E WifiVendorHal: Failed to start vendor HAL 12-02 19:57:43.042 1229 1729 E WifiNative: Failed to start vendor HAL 12-02 19:57:43.042 1229 1729 E WifiNative: Failed to start Hal

StorySea commented 4 years ago

force to load modules or you could merge qcacld-3.0

mrslezak commented 4 years ago

https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10/commit/521e8e9d393240ef76ae77c805305b40112e72c4 just follow what I did there it works for WiFi on Xiaomi devices.

yesimxev commented 4 years ago

mrslezak/Cepheus-Raphael-Q-GCC10@521e8e9 just follow what I did there it works for WiFi on Xiaomi devices.

Worked on a Nokia 3.1 too. Thank you very much!

mrslezak commented 4 years ago

Anytime we have to help each other out or there's no progress :)

On Fri, Mar 6, 2020, 7:08 PM yesimxev notifications@github.com wrote:

mrslezak/Cepheus-Raphael-Q-GCC10@521e8e9 https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10/commit/521e8e9d393240ef76ae77c805305b40112e72c4 just follow what I did there it works for WiFi on Xiaomi devices.

Worked on a Nokia 3.1 too. Thank you very much!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/1163?email_source=notifications&email_token=AECPVRTROVIG4ILK3ZPAA2LRGGNA7A5CNFSM4JVTOQHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEODKD6A#issuecomment-596025848, or unsubscribe https://github.com/notifications/unsubscribe-auth/AECPVRQFQL56G44RHC4ZZ5DRGGNA7ANCNFSM4JVTOQHA .

yesimxev commented 4 years ago

Exactly! Looks like causes panic sometimes when I want to turn on wifi and reboots, needs some attention though but big progress in my project! Thanks again

yesimxev commented 4 years ago

@mrslezak Looks like I need help to debug. When the phone turns on with wifi on, it's perfect, can turn on and off, connect etc. When the phone starts with wifi off, it reboots when I press the wifi icon to turn on. After 3 reboots, it's working. But as soon as I want to turn off the wifi, it goes into a 10x reboot. Do you have any idea what can cause this?

mrslezak commented 4 years ago

Wish I could help but on your Nokia phone, it's best to go to a Nokia support forum. Just force WiFi settings to "enabled" on boot and use that as a workaround in the meantime, or list it as a known bug in your kernel. Every kernel has bugs somewhere lurking no one has found yet... Like a week ago someone found my 20W wireless charging was missing on Cepheus. Managed to fix it but still, every user has a different setup / accessories someone is eventually try something you don't have and note the bug.

yesimxev commented 4 years ago

Agree. My original moduke is fine though. I had to enable WEXT for wireless adapters, that's why module has to be force loaded. That's a module in vendor. So can't rebuild with WEXT enabled. I was thinking about the workaround, will try soon

LeCmnGend commented 2 years ago

mrslezak/Cepheus-Raphael-Q-GCC10@521e8e9 just follow what I did there it works for WiFi on Xiaomi devices.

I do it in a11 kernel and it doesnt work anymore, any solution for a11 sir ?

yesimxev commented 2 years ago

Although the above forced the module to load, but still wasn't good enough for WEXT. I had to patch a line https://github.com/yesimxev/android_kernel_nokia_es2/commit/b6e78b3a8e4f41a1502a959691234a728901bef5 so external adapter's support wireless injection while not interfering with internal wireless driver (so I don't need to force load and crash)

LeCmnGend commented 2 years ago

Although the above forced the module to load, but still wasn't good enough for WEXT. I had to patch a line yesimxev/android_kernel_nokia_es2@b6e78b3 so external adapter's support wireless injection while not interfering with internal wireless driver (so I don't need to force load and crash)

thank for your hint, let me try it <3