ngoquang2708 / android_device_samsung_vivalto3gvn

Device tree for Samsung Galaxy V SM-G313HZ
7 stars 8 forks source link

WiFi hotspot does not work #109

Open ngoquang2708 opened 5 years ago

ngoquang2708 commented 5 years ago

Logcat: https://gist.github.com/ngoquang2708/0ffbbbd0bff08565313981893c2972a5.

ngoquang2708 commented 5 years ago

@remilia15 I have noticed something. I previous version of Android. When we turn on WiFi hotspot, hostapd change the firmware path.

ngoquang2708 commented 5 years ago

@remilia15 Here it goes!

diepquynh commented 5 years ago

Nice. My kernel had the config you mentioned enabled already

ngoquang2708 commented 5 years ago

OK. About the firmware path change, have you checked?

diepquynh commented 5 years ago

No, I haven't. What do you have in logcat?

diepquynh commented 5 years ago

I'm think about where does this commit goes https://github.com/LineageOS/android_hardware_libhardware_legacy/commit/1650ddc3f6c0e8e29f8a5639f226358998f49738

diepquynh commented 5 years ago

Oh it's here https://github.com/LineageOS/android_frameworks_opt_net_wifi/tree/lineage-15.1/libwifi_hal

ngoquang2708 commented 5 years ago

Nothing interesting in logcat. But kmsg shows that hostapd start with the same firmware as wpa_supplicant, not the one that for AP mode.

  271.766941] init: starting service 'hostapd'...
[  271.950538] \x0aDongle Host Driver, version 1.141.64 (r)\x0aCompiled in drivers/net/wireless/bcmdhd on Jul 20 2018 at 19:11:12
[  271.950657] wl_android_wifi_on in
[  271.950671] wifi_platform_set_power = 1
[  271.950680] wlan_device_power:1 
[  272.193183] sdio_reset_comm():
[  272.208106] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x3
[  272.208829] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[  272.209674] REVISION SPECIFIC feature is not required
[  272.209694] dhdsdio_download_firmware: firmware path=/vendor/firmware/fw_bcmdhd.bin, nvram path=/vendor/etc/wifi/nvram_net.txt
[  272.262660] sdioh_request_buffer: [1] doing memory copy buf=c1966000, len=1527
[  272.264976] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
ngoquang2708 commented 5 years ago

I see that netd's SoftApController is removed.

ngoquang2708 commented 5 years ago

It is used to switch the firmware between AP and STA mode.