【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

你可能感兴趣的:(sdx62,Qualcomm)