【sdx12】使用QCMAP_CLI启动WiFi操作说明

adb登录

adb root
adb shell

执行 QCMAP_CLI


/ # QCMAP_CLI
diag:successfully connected to socket 3

Please select an option to test from the items listed below.

1.  MobileAP Configuration
2.  LAN Configuration
3.  NAT/ALG/VPN Configuration
4.  WLAN Configuration
5.  Firewall Configuration
6.  Backhaul Configuration
7.  Tethering Configuration
8.  Media Service Configuration
9.  Generic Software Bridge Configuration
10. V2X Service Configuration
11. Modem Throughput Estimation Configuration
Option >
qcmap_cli_main.cpp 803:qcmap_msgr_qmi_qcmap_ind: user_handle 2 msg_id 65535 ind_buf_len 8.
QCMAP_Server status update on MDM: UP

输入数字1->2->1建立连接 

diag:successfully connected to socket 3

Please select an option to test from the items listed below.

1.  MobileAP Configuration
2.  LAN Configuration
3.  NAT/ALG/VPN Configuration
4.  WLAN Configuration
5.  Firewall Configuration
6.  Backhaul Configuration
7.  Tethering Configuration
8.  Media Service Configuration
9.  Generic Software Bridge Configuration
10. V2X Service Configuration
11. Modem Throughput Estimation Configuration
Option >
qcmap_cli_main.cpp 803:qcmap_msgr_qmi_qcmap_ind: user_handle 2 msg_id 65535 ind_buf_len 8.
QCMAP_Server status update on MDM: UP
1

1.  Display Current Config
2.  Enable/Disable mobileap
3.  Get MobileAP status
4.  Get Connected Device info
5.  Enable/Disable/Reset Packet Stats
6.  Get Packet Stats Status
7.  Restore Factory Default Settings(** Will Reboot Device )
8.  Teardown/Disable and Exit
9.  Set Data Path Optimization Flag
10. Get Data Path Optimization Flag
11. Set Device Mode
12. Get Device Mode
13. Set Client Configuration
14. Set N79 config
15. Get N79 config
16. Register for indications with indication mask
17. Set Feature Mode
18. Get Feature Mode
19. Reset Feature Mode
20. Set Client Preference (Profile handle, Subs_Id, etc)
21. Get Client Preference (Profile handle, Subs_Id, etc)
22. Unregister for indications with indication mask
2
   Please input MobileAP State(1-Enable/0-Disable) : 1

MobileAP Enable succeeds.

 配置wifi

输入4-->3-->2--->1-->1--->1--->1--->1--->1---->0

2表示启动两个AP,如果启动4个AP需要在2的位置输入7

Please select an option to test from the items listed below.

1.  MobileAP Configuration
2.  LAN Configuration
3.  NAT/ALG/VPN Configuration
4.  WLAN Configuration
5.  Firewall Configuration
6.  Backhaul Configuration
7.  Tethering Configuration
8.  Media Service Configuration
9.  Generic Software Bridge Configuration
10. V2X Service Configuration
11. Modem Throughput Estimation Configuration
Option >
qcmap_cli_main.cpp 803:qcmap_msgr_qmi_qcmap_ind: user_handle 2 msg_id 241 ind_buf_len 7.
Received MODEM_STATUS_IND: UP
4
1.  Enable/Disable WLAN
2.  Activate WLAN
3.  Set WLAN Config
4.  Get WLAN Config
5.  Get WLAN Status
6.  Set MobileAP/WLAN Bootup Config
7.  Get MobileAP/WLAN Bootup Config
8.  Get Station Mode Status
9.  Activate Hostapd Config
10. Activate Supplicant Config
11. Get WLAN IF information
12. Set Always on WLAN
13. Get Always on WLAN
14. Set Peer to Peer Role
15. Get Peer to Peer Role
16. Set WLAN Ex Config
17. Get WLAN Ex Config
18. Enable/Disable CoEX
3
Select the Type of WLAN Mode :
1: AP        2: AP-AP
3: AP-STA    4: AP-AP-AP
5: AP-AP-STA 6: STA-Only
7: AP-AP-AP-AP:::
11: AP-P2P    12: STA-P2P
2
 Do you want to change Guest AP 1 Access Profile 1-Yes/0-No
1
 Select guest AP 1 access profile 1-Full Access / 0- Internet Only
1
 Do you want to change Guest AP 2 Access Profile 1-Yes/0-No
1
 Select guest AP 2 access profile 1-Full Access / 0- Internet Only
1
 Do you want to change Guest AP 3 Access Profile 1-Yes/0-No
1
 Select guest AP 3 access profile 1-Full Access / 0- Internet Only
1
   Do you want to set Station Configuration(1-Yes/0-No) : 0

 LAN Config Set Successfully

启动wifi

输入4--->2 

Please select an option to test from the items listed below.

1.  MobileAP Configuration
2.  LAN Configuration
3.  NAT/ALG/VPN Configuration
4.  WLAN Configuration
5.  Firewall Configuration
6.  Backhaul Configuration
7.  Tethering Configuration
8.  Media Service Configuration
9.  Generic Software Bridge Configuration
10. V2X Service Configuration
11. Modem Throughput Estimation Configuration
Option > 4
1.  Enable/Disable WLAN
2.  Activate WLAN
3.  Set WLAN Config
4.  Get WLAN Config
5.  Get WLAN Status
6.  Set MobileAP/WLAN Bootup Config
7.  Get MobileAP/WLAN Bootup Config
8.  Get Station Mode Status
9.  Activate Hostapd Config
10. Activate Supplicant Config
11. Get WLAN IF information
12. Set Always on WLAN
13. Get Always on WLAN
14. Set Peer to Peer Role
15. Get Peer to Peer Role
16. Set WLAN Ex Config
17. Get WLAN Ex Config
18. Enable/Disable CoEX
2

注意

     启动wifi之前,需要先启动dnsmasq,

  263 nobody    0:07 dnsmasq --conf-file=/systemrw/data/dnsmasq.conf --dhcp-leasefile=/var/run/data/dnsmasq.leases --addn-hosts=/systemrw/data/hosts --pid-file=/var/run/data/dnsmasq.pid -i bridge0 --dhcp-range=bridge0,192.168.1.2,192.168.1.250,255.255.255.0,86400 --dhcp-option-force=6,192.168.1.1 --dhcp-option-force=120,abcd.com
  264 root      0:00 dnsmasq --conf-file=/systemrw/data/dnsmasq.conf --dhcp-leasefile=/var/run/data/dnsmasq.leases --addn-hosts=/systemrw/data/hosts --pid-file=/var/run/data/dnsmasq.pid -i bridge0 --dhcp-range=bridge0,192.168.1.2,192.168.1.250,255.255.255.0,86400 --dhcp-option-force=6,192.168.1.1 --dhcp-option-force=120,abcd.com

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

wellnw

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值