ngoquang2708 / android_device_samsung_vivalto3gvn

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

IptablesRestoreController failed #117

Closed ngoquang2708 closed 6 years ago

ngoquang2708 commented 6 years ago

Log: https://gist.github.com/ngoquang2708/190e863a7a2700459028e92102bf1ef5.

ngoquang2708 commented 6 years ago

All tethering issues seem relate to this issue.

diepquynh commented 6 years ago

You need these: CONFIG_IP_NF_MATCH_RPFILTER=y CONFIG_IP6_NF_MATCH_RPFILTER=y

ngoquang2708 commented 6 years ago

Hope it works.

diepquynh commented 6 years ago

This is the solution that works since N. On O idk what about old bcm4343 kernel, but mine doing weird stuffs. WiFi Tethering just work as placebo (it can be turned on, but give no hotspot signals). Maybe some kernel-related commits needed again?

ngoquang2708 commented 6 years ago

Me too. It can turn on, but no ssid found by other device, and logcat shows error related to iptables. Then the UI show Error under the turn hotspot on switch.

diepquynh commented 6 years ago

If it shows error, then these 2 configs enabled will do their jobs, but if it doesn't show error (just keep turning on only, like my situation) then it's a different thing

ngoquang2708 commented 6 years ago

OK. Guess what, I am in the same situation as you now. But now bluetooth tethering works!

diepquynh commented 6 years ago

USB tethering will work also. Tested on my W10 PC

ngoquang2708 commented 6 years ago

My USB seems not to work like expected. No MTP, so no tethering.

ngoquang2708 commented 6 years ago

IptablesRestoreController failure is still appear after reboot. But not when enable or disable tethering. Edit: tethering is still work of-course.

ngoquang2708 commented 6 years ago

So I think the invisible SSID is related to hostapd.

ngoquang2708 commented 6 years ago

Fixed by commit https://github.com/ngoquang2708/android_kernel_samsung_vivalto3gvn/commit/39d9f1fdf48e145866aee0fbf7a950edb89a8aee.

diepquynh commented 6 years ago

LOL just about to comment on the issue you pinged me