Currently my device on LineageOS 18.1 (Android 11) with root access and supported managed mode and AP mode at the same time.
root@localhost:~# uname -a
Linux localhost 4.9.326-Mi8937 #1 SMP PREEMPT Mon Sep 12 02:37:27 UTC 2022 aarch64 GNU/Linux
root@localhost:~# zcat /proc/config.gz | grep CONFIG_CFG80211
CONFIG_CFG80211=y
CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
CONFIG_CFG80211_CERTIFICATION_ONUS is not set
CONFIG_CFG80211_DEFAULT_PS=y
CONFIG_CFG80211_DEBUGFS is not set
CONFIG_CFG80211_INTERNAL_REGDB=y
CONFIG_CFG80211_CRDA_SUPPORT is not set
CONFIG_CFG80211_WEXT is not set
root@localhost:~# lshw | grep wireless=
configuration: broadcast=yes driver=wcnss_wlan multicast=yes wireless=Qcom:802.11n
root@localhost:~# iw phy | grep -iA2 'valid interface combinations'
valid interface combinations:
* #{ managed } <= 3, #{ IBSS, AP } <= 1, #{ P2P-client, P2P-GO } <= 1,
total <= 3, #channels <= 2
I did search over internet and found this WI-FI REPEATER MODE ON ANDROID by Irfan Latif and this android_wifi_repeater by mrbox24 but seems those script doesn't support android 11 because when I check /system/bin
and /system/xbin
, no hostapd
there.
My goal is to be able to run my device into repeater mode using wifi-direct that can be run with shell script command and no need to set Client Wifi proxy port.
Thanks.
Edit (Sept 28, 2022)
Referring to this,
I found that hostapd
exist under /vendor/bin/hw
path. Thanks Irfan.
And now I got another problem, I can run the mnet script, Client able to connect to the Host but without Internet Connection.
Tried ping 192.168.49.1
from Client to Host device got 100% loss
, but works when ping
from Host device to Client device.
/system/bin
and/system/xbin
, nohostapd
there". See this comment. – Irfan Latif Sep 27 '22 at 10:06/vendor/bin/hw
path. – Zievfik Sep 27 '22 at 22:34ping 192.168.49.1
(host IP) it doesn't work / ping 100% loss. But whenping
from host to client device, it works. How to fix that problem? Thanks. – Zievfik Sep 27 '22 at 22:59