Sample Header Ad - 728x90

How to run device into repeater mode with shell script?

1 vote
0 answers
209 views
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 }  *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.
Asked by Zievfik (11 rep)
Sep 27, 2022, 03:47 AM
Last activity: Sep 27, 2022, 11:57 PM