]> granicus.if.org Git - esp-idf/commitdiff
add some missing cases caused by autogen bug
authorYinling <heyinling@espressif.com>
Thu, 29 Sep 2016 12:22:33 +0000 (20:22 +0800)
committerAngus Gratton <angus@espressif.com>
Tue, 11 Oct 2016 06:23:46 +0000 (17:23 +1100)
components/test/TestCaseAll.yml

index 40d189171570d92abb63ffaab23a71c4cfa2704a..7112c8793618cc1aa7e2da7082bd3f6070a98c64 100644 (file)
@@ -902,6 +902,72 @@ test cases:
   test point 1: abnormal/special use
   test point 2: TCP handling abnormal event
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: TCPIP_TCP_0405
+  SDK: '8266_NonOS
+
+    8266_RTOS
+
+    ESP32_IDF'
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SOC SOC1 LISTEN <test_tcp_port1>
+    - [R SOC_COM L OK]
+  - - SSC SSC1 soc -B -t TCP
+    - ['R SSC1 A <sock1>:BIND:(\d+),OK']
+  - - SSC SSC1 soc -C -s <sock1> -i <pc_ip> -p <test_tcp_port1>
+    - ['R SSC1 RE CONNECT:\d+,OK']
+  - - SOC SOC1 ACCEPT SOC2
+    - [R SOC_COM L OK]
+  - - NIC <pc_nic> DISABLED
+    - [R PC_COM C OK]
+  - - SSC SSC1 soc -S -s <sock1> -l 1
+    - ['']
+  - - DELAY 5400
+    - ['P SSC1 RE CLOSED:\d+,0']
+  comment: ''
+  execution time: 1.5
+  expected result: '1.OK
+
+    2.OK
+
+    3.OK; PC TCP server accept 成功
+
+    4.OK
+
+    5.OK
+
+    6.TCP连接断开'
+  initial condition: STAM2
+  initial condition description (auto): sta mode, join AP, DHCP on, will autogen a
+    TC with initial condition STAAP2
+  module: TCPIP
+  steps: '1.PC上建立TCP 监听 test_tcp_port1
+
+    2.target1上创建TCP socket1
+
+    3.target1上使用步骤2创建的socket1,去连接 PC的ip,test_tcp_port1
+
+    4.PC与target1创建好TCP 连接,有ACCEPT
+
+    5.PC 网卡 disable
+
+    6.target1上使用socket1发送数据,等待 90 分钟'
+  sub module: TCP
+  summary: do TCP send after PC NIC disabled
+  test environment: SSC_T1_1
+  test environment description (auto): 'PC has 2 wired NIC connected to AP.
+
+    PC has 1 WiFi NIC.
+
+    1 SSC target connect with PC by UART.'
+  test point 1: abnormal/special use
+  test point 2: TCP handling abnormal event
+  version: v1 (2016-8-15)
 - CI ready: 'Yes'
   ID: TCPIP_TCP_0404
   SDK: '8266_NonOS
@@ -958,6 +1024,38 @@ test cases:
   test point 1: abnormal/special use
   test point 2: TCP handling abnormal event
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: ^WIFI_CONN_0903
+  SDK: '8266_NonOS
+
+    8266_RTOS
+
+    ESP32_IDF'
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 sta -C -s <wep_ap_ssid> -p bacfd
+    - ['R SSC1 RE JAP:DISCONNECTED,\d+,2']
+  comment: ''
+  execution time: 0.0
+  expected result: 1. disconect event reason REASON_AUTH_EXPIRE
+  initial condition: STAAP1
+  initial condition description (auto): testing sta on sta + ap mode, quit AP (autogen
+    by STAM1)
+  module: WIFI MAC
+  steps: 1. connect WEP ap with error password (valid wep password)
+  sub module: WIFI Connect
+  summary: test wifi disconnect reason REASON_AUTH_EXPIRE
+  test environment: SSC_T1_WEP
+  test environment description (auto): '1 SSC target connect with PC by UART.
+
+    One WEP share key AP placed near SSC1.'
+  test point 1: basic function
+  test point 2: wifi disconnect reason test
+  version: v1 (2016-8-15)
 - CI ready: 'Yes'
   ID: TCPIP_TCP_0408
   SDK: '8266_NonOS
@@ -1982,6 +2080,52 @@ test cases:
   test point 1: basic function
   test point 2: DNS function test
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0403
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 phy -S -o 1 -m n -b 20
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC1 sta -C -s <ap_ssid_c1_ht40> -p <ap_password_phy>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - ['']
+  - - DELAY 10
+    - ['P SSC1 NC +JAP:DISCONNECTED', 'P SSC2 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 3. SoftAP and STA in channel2, SoftAP 20M, STA 40M, STA not disconnected
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. SoftAP 11n ht20, in channel1, ext AP 11n ht40, in channel2
+
+    2. STA connect to ext AP
+
+    3. AP get connected'
+  sub module: Phy Mode
+  summary: SoftAP ext AP in defferent channel, SoftAP 20M, ext AP 40M, STA connect
+    to AP then Softap get connected
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP initial channel test
+  version: v1 (2015-8-15)
 - CI ready: 'Yes'
   ID: WIFI_CONN_0904
   SDK: '8266_NonOS
@@ -3927,6 +4071,72 @@ test cases:
   test point 1: abnormal/special use
   test point 2: TCP handling abnormal event
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: ^TCPIP_TCP_0405
+  SDK: '8266_NonOS
+
+    8266_RTOS
+
+    ESP32_IDF'
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SOC SOC1 LISTEN <test_tcp_port1>
+    - [R SOC_COM L OK]
+  - - SSC SSC1 soc -B -t TCP
+    - ['R SSC1 A <sock1>:BIND:(\d+),OK']
+  - - SSC SSC1 soc -C -s <sock1> -i <pc_ip> -p <test_tcp_port1>
+    - ['R SSC1 RE CONNECT:\d+,OK']
+  - - SOC SOC1 ACCEPT SOC2
+    - [R SOC_COM L OK]
+  - - NIC <pc_nic> DISABLED
+    - [R PC_COM C OK]
+  - - SSC SSC1 soc -S -s <sock1> -l 1
+    - ['']
+  - - DELAY 5400
+    - ['P SSC1 RE CLOSED:\d+,0']
+  comment: ''
+  execution time: 1.5
+  expected result: '1.OK
+
+    2.OK
+
+    3.OK; PC TCP server accept 成功
+
+    4.OK
+
+    5.OK
+
+    6.TCP连接断开'
+  initial condition: STAAP2
+  initial condition description (auto): testing sta on sta + ap mode,  join AP, DHCP
+    on (autogen by STAM2)
+  module: TCPIP
+  steps: '1.PC上建立TCP 监听 test_tcp_port1
+
+    2.target1上创建TCP socket1
+
+    3.target1上使用步骤2创建的socket1,去连接 PC的ip,test_tcp_port1
+
+    4.PC与target1创建好TCP 连接,有ACCEPT
+
+    5.PC 网卡 disable
+
+    6.target1上使用socket1发送数据,等待 90 分钟'
+  sub module: TCP
+  summary: do TCP send after PC NIC disabled
+  test environment: SSC_T1_1
+  test environment description (auto): 'PC has 2 wired NIC connected to AP.
+
+    PC has 1 WiFi NIC.
+
+    1 SSC target connect with PC by UART.'
+  test point 1: abnormal/special use
+  test point 2: TCP handling abnormal event
+  version: v1 (2016-8-15)
 - CI ready: 'Yes'
   ID: ^TCPIP_TCP_0406
   SDK: '8266_NonOS
@@ -6013,130 +6223,405 @@ test cases:
   test point 2: TCP handling abnormal event
   version: v1 (2016-8-15)
 - CI ready: 'Yes'
-  ID: WIFI_CONN_0301
-  SDK: '8266_NonOS
-
-    8266_RTOS
-
-    ESP32_IDF'
+  ID: WIFI_PHY_0502
+  SDK: ESP32_IDF
   Test App: SSC
   allow fail: ''
   auto test: 'Yes'
   category: Function
   cmd set:
   - ''
-  - - SSC SSC1 ap -S -s <target_ssid> -p <target_password> -t <target_auth_enum> -h
-      0 -m 8
-    - ['R SSC1 C +SAP:OK']
-  - - SSC SSC1 ap -Q
-    - ['R SSC1 RE "\+APCONFIG:%%s,%%s,\d+,3,0,8,\d+"%%(<target_ssid>,<target_password>)']
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <ap_ssid_c1_ht20> -p <ap_password_phy>
+    - ['R SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <target2_ssid> -p <target2_password>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC3 sta -C -s <target_ssid> -p <target_password>
+    - ['R SSC3 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <ap_ssid_c2_ht40> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 C +JAP:CONNECTED', 'P SSC[1,3] NC +JAP:DISCONNECTED']
   comment: ''
   execution time: 0.0
-  expected result: '1. target1 set AP
+  expected result: 4. all STA not get disconnected; target 1 SoftAP and STA both in
+    channel2; SoftAP in 20M, STA in 40M
+  initial condition: T3_PHY1
+  initial condition description (auto): '1. target 1 and target 2 set to AP+STA mode,
+    target 3 set to STA mode
 
-    2.target 1上查询到跟设置AP时一致
+    2. all interface of target 2,3 set to 11n ht40
 
-    '
-  initial condition: APM1
-  initial condition description (auto): AP mode, DHCP on, will autogen a TC with initial
-    condition APSTA1
+    3. config softAP of target 1 and target 2'
   module: WIFI MAC
-  steps: '1. target1 set AP
+  steps: '1. target 1 STA set to 40M, SoftAP set to 20M
 
-    2.target 1上查询到跟设置AP时一致
+    2. target 2 STA connect to ap_channel1_20
 
-    '
-  sub module: WIFI Connect
-  summary: AP config query test
-  test environment: SSC_T1_1
-  test environment description (auto): 'PC has 2 wired NIC connected to AP.
+    3. target 1/3 STA connect to target 2/1 SoftAP
 
-    PC has 1 WiFi NIC.
+    4. target 2 STA connect to ap_channel2_40'
+  sub module: Phy Mode
+  summary: SoftAP STA in channel1 20M, STA changed to channel2 40M
+  test environment: SSC_T3_PhyMode
+  test environment description (auto): '3 SSC target connect with PC by UART.
 
-    1 SSC target connect with PC by UART.'
-  test point 1: basic function
-  test point 2: query AP config
-  version: v1 (2016-8-15)
-- CI ready: 'Yes'
-  ID: ^TCPIP_IP_0102
-  SDK: '8266_NonOS
+    PC has one WiFi NIC support capture wlan packet using libpcap.
 
-    8266_RTOS
+    Set 4 AP with (HT20, channel1), (HT20, channel2), (HT40, channel1), (HT40, channel2).
 
-    ESP32_IDF'
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP dynamic channel switch test
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0503
+  SDK: ESP32_IDF
   Test App: SSC
   allow fail: ''
   auto test: 'Yes'
   category: Function
   cmd set:
   - ''
-  - - SSC SSC1 dhcp -S -o 2
-    - ['R SSC1 C +DHCP:AP,OK']
-  - - SSC SSC1 ip -S -o 2 -i 192.168.123.123
-    - ['R SSC1 C +IP:ERROR']
-  - - SSC SSC1 dhcp -E -o 2
-    - ['R SSC1 C +DHCP:AP,OK']
-  - - SSC SSC1 ip -S -o 2 -i 192.168.123.123
-    - ['R SSC1 C +IP:OK']
-  - - SSC SSC1 ip -Q -o 2
-    - ['R SSC1 C +APIP:192.168.123.123']
-  - - SSC SSC1 ip -S -o 2 -i <target_ap_ip>
-    - ['R SSC1 C +IP:OK']
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <ap_ssid_c1_ht40> -p <ap_password_phy>
+    - ['R SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <target2_ssid> -p <target2_password>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC3 sta -C -s <target_ssid> -p <target_password>
+    - ['R SSC3 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <ap_ssid_c2_ht20> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 C +JAP:CONNECTED', 'P SSC[1,3] NC +JAP:DISCONNECTED']
   comment: ''
   execution time: 0.0
-  expected result: '1.OK
+  expected result: 4. all STA not get disconnected; target 1 SoftAP and STA both in
+    channel2 20M
+  initial condition: T3_PHY1
+  initial condition description (auto): '1. target 1 and target 2 set to AP+STA mode,
+    target 3 set to STA mode
 
-    2.ERROR
+    2. all interface of target 2,3 set to 11n ht40
 
-    3.OK
+    3. config softAP of target 1 and target 2'
+  module: WIFI MAC
+  steps: '1. target 1 STA set to 40M, SoftAP set to 20M
 
-    4.OK
+    2. target 2 STA connect to ap_channel1_40
 
-    5.APIP:192.168.123.123
+    3. target 1/3 STA connect to target 2/1 SoftAP
 
-    6.OK'
-  initial condition: APSTA1
-  initial condition description (auto): testing ap on sta + ap mode (autogen by APM1)
-  module: TCPIP
-  steps: "1.target1 打开DHCP 2\n2.target1 设置softAP ip 192.168.123.123\n4.target1 关闭DHCP\
-    \ 2\n5.target1 设置softAP ip 192.168.123.123\n6.target1 查询 当前sta ip \n7.target1\
-    \ 设置softAP ip 为target_ap_ip"
-  sub module: IP
-  summary: ap set and query static ip test
-  test environment: SSC_T1_1
-  test environment description (auto): 'PC has 2 wired NIC connected to AP.
+    4. target 2 STA connect to ap_channel2_20'
+  sub module: Phy Mode
+  summary: SoftAP STA in channel1, SoftAP 20M, STA 40M, STA changed to channel2 20M
+  test environment: SSC_T3_PhyMode
+  test environment description (auto): '3 SSC target connect with PC by UART.
 
-    PC has 1 WiFi NIC.
+    PC has one WiFi NIC support capture wlan packet using libpcap.
 
-    1 SSC target connect with PC by UART.'
+    Set 4 AP with (HT20, channel1), (HT20, channel2), (HT40, channel1), (HT40, channel2).
+
+    Put 4 APs near SSC targets.'
   test point 1: basic function
-  test point 2: set and query static IP
-  version: v1 (2016-8-15)
+  test point 2: STA+SoftAP dynamic channel switch test
+  version: v1 (2015-8-15)
 - CI ready: 'Yes'
-  ID: ^TCPIP_UDP_0105
-  SDK: '8266_NonOS
-
-    8266_RTOS
-
-    ESP32_IDF'
+  ID: WIFI_PHY_0501
+  SDK: ESP32_IDF
   Test App: SSC
   allow fail: ''
   auto test: 'Yes'
   category: Function
   cmd set:
   - ''
-  - - SSC SSC1 soc -B -t UDP -p <test_udp_port1>
-    - ['R SSC1 A <sock1>:BIND:(\d+),OK']
-  - - SSC SSC1 soc -T -s <sock1>
-    - ['R SSC1 RE CLOSE:\d+']
+  - - SSC SSC1 phy -S -o 1 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <ap_ssid_c1_ht20> -p <ap_password_phy>
+    - ['R SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <target2_ssid> -p <target2_password>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC3 sta -C -s <target_ssid> -p <target_password>
+    - ['R SSC3 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <ap_ssid_c2_ht20> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 C +JAP:CONNECTED', 'P SSC[1,3] NC +JAP:DISCONNECTED']
   comment: ''
   execution time: 0.0
-  expected result: '1.OK
+  expected result: 4. all STA not get disconnected; target 1 SoftAP and STA both in
+    channel2 20M
+  initial condition: T3_PHY1
+  initial condition description (auto): '1. target 1 and target 2 set to AP+STA mode,
+    target 3 set to STA mode
 
-    2.OK'
-  initial condition: STAAP2
-  initial condition description (auto): testing sta on sta + ap mode,  join AP, DHCP
-    on (autogen by STAM2)
+    2. all interface of target 2,3 set to 11n ht40
+
+    3. config softAP of target 1 and target 2'
+  module: WIFI MAC
+  steps: '1. target 1 STA and SoftAP set to 20M
+
+    2. target 2 STA connect to ap_channel1_20
+
+    3. target 1/3 STA connect to target 2/1 SoftAP
+
+    4. target 2 STA connect to ap_channel2_20'
+  sub module: Phy Mode
+  summary: SoftAP STA in channel1 20M, STA changed to channel2 20M
+  test environment: SSC_T3_PhyMode
+  test environment description (auto): '3 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with (HT20, channel1), (HT20, channel2), (HT40, channel1), (HT40, channel2).
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP dynamic channel switch test
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0506
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <ap_ssid_c1_ht40> -p <ap_password_phy>
+    - ['R SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <target2_ssid> -p <target2_password>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC3 sta -C -s <target_ssid> -p <target_password>
+    - ['R SSC3 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <ap_ssid_c2_ht40> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 C +JAP:CONNECTED', 'P SSC[1,3] NC +JAP:DISCONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 4. all STA not get disconnected; target 1 SoftAP and STA both in
+    channel2 40M
+  initial condition: T3_PHY1
+  initial condition description (auto): '1. target 1 and target 2 set to AP+STA mode,
+    target 3 set to STA mode
+
+    2. all interface of target 2,3 set to 11n ht40
+
+    3. config softAP of target 1 and target 2'
+  module: WIFI MAC
+  steps: '1. target 1 STA and SoftAP set to 40M
+
+    2. target 2 STA connect to ap_channel1_40
+
+    3. target 1/3 STA connect to target 2/1 SoftAP
+
+    4. target 2 STA connect to ap_channel2_40'
+  sub module: Phy Mode
+  summary: SoftAP STA in channel1, SoftAP 40M, STA 40M, STA changed to channel2 40M
+  test environment: SSC_T3_PhyMode
+  test environment description (auto): '3 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with (HT20, channel1), (HT20, channel2), (HT40, channel1), (HT40, channel2).
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP dynamic channel switch test
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0505
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <ap_ssid_c1_ht40> -p <ap_password_phy>
+    - ['R SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <target2_ssid> -p <target2_password>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC3 sta -C -s <target_ssid> -p <target_password>
+    - ['R SSC3 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <ap_ssid_c2_ht20> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 C +JAP:CONNECTED', 'P SSC[1,3] NC +JAP:DISCONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 4. all STA not get disconnected; target 1 SoftAP and STA both in
+    channel2; SoftAP in 20M, STA in 40M
+  initial condition: T3_PHY1
+  initial condition description (auto): '1. target 1 and target 2 set to AP+STA mode,
+    target 3 set to STA mode
+
+    2. all interface of target 2,3 set to 11n ht40
+
+    3. config softAP of target 1 and target 2'
+  module: WIFI MAC
+  steps: '1. target 1 STA set to 40M ,SoftAP set to 20M
+
+    2. target 2 STA connect to ap_channel1_40
+
+    3. target 1/3 STA connect to target 2/1 SoftAP
+
+    4. target 2 STA connect to ap_channel2_20'
+  sub module: Phy Mode
+  summary: SoftAP STA in channel1, SoftAP 40M, STA 40M, STA changed to channel2 20M
+  test environment: SSC_T3_PhyMode
+  test environment description (auto): '3 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with (HT20, channel1), (HT20, channel2), (HT40, channel1), (HT40, channel2).
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP dynamic channel switch test
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_CONN_0301
+  SDK: '8266_NonOS
+
+    8266_RTOS
+
+    ESP32_IDF'
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 ap -S -s <target_ssid> -p <target_password> -t <target_auth_enum> -h
+      0 -m 8
+    - ['R SSC1 C +SAP:OK']
+  - - SSC SSC1 ap -Q
+    - ['R SSC1 RE "\+APCONFIG:%%s,%%s,\d+,3,0,8,\d+"%%(<target_ssid>,<target_password>)']
+  comment: ''
+  execution time: 0.0
+  expected result: '1. target1 set AP
+
+    2.target 1上查询到跟设置AP时一致
+
+    '
+  initial condition: APM1
+  initial condition description (auto): AP mode, DHCP on, will autogen a TC with initial
+    condition APSTA1
+  module: WIFI MAC
+  steps: '1. target1 set AP
+
+    2.target 1上查询到跟设置AP时一致
+
+    '
+  sub module: WIFI Connect
+  summary: AP config query test
+  test environment: SSC_T1_1
+  test environment description (auto): 'PC has 2 wired NIC connected to AP.
+
+    PC has 1 WiFi NIC.
+
+    1 SSC target connect with PC by UART.'
+  test point 1: basic function
+  test point 2: query AP config
+  version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: ^TCPIP_IP_0102
+  SDK: '8266_NonOS
+
+    8266_RTOS
+
+    ESP32_IDF'
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 dhcp -S -o 2
+    - ['R SSC1 C +DHCP:AP,OK']
+  - - SSC SSC1 ip -S -o 2 -i 192.168.123.123
+    - ['R SSC1 C +IP:ERROR']
+  - - SSC SSC1 dhcp -E -o 2
+    - ['R SSC1 C +DHCP:AP,OK']
+  - - SSC SSC1 ip -S -o 2 -i 192.168.123.123
+    - ['R SSC1 C +IP:OK']
+  - - SSC SSC1 ip -Q -o 2
+    - ['R SSC1 C +APIP:192.168.123.123']
+  - - SSC SSC1 ip -S -o 2 -i <target_ap_ip>
+    - ['R SSC1 C +IP:OK']
+  comment: ''
+  execution time: 0.0
+  expected result: '1.OK
+
+    2.ERROR
+
+    3.OK
+
+    4.OK
+
+    5.APIP:192.168.123.123
+
+    6.OK'
+  initial condition: APSTA1
+  initial condition description (auto): testing ap on sta + ap mode (autogen by APM1)
+  module: TCPIP
+  steps: "1.target1 打开DHCP 2\n2.target1 设置softAP ip 192.168.123.123\n4.target1 关闭DHCP\
+    \ 2\n5.target1 设置softAP ip 192.168.123.123\n6.target1 查询 当前sta ip \n7.target1\
+    \ 设置softAP ip 为target_ap_ip"
+  sub module: IP
+  summary: ap set and query static ip test
+  test environment: SSC_T1_1
+  test environment description (auto): 'PC has 2 wired NIC connected to AP.
+
+    PC has 1 WiFi NIC.
+
+    1 SSC target connect with PC by UART.'
+  test point 1: basic function
+  test point 2: set and query static IP
+  version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: ^TCPIP_UDP_0105
+  SDK: '8266_NonOS
+
+    8266_RTOS
+
+    ESP32_IDF'
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 soc -B -t UDP -p <test_udp_port1>
+    - ['R SSC1 A <sock1>:BIND:(\d+),OK']
+  - - SSC SSC1 soc -T -s <sock1>
+    - ['R SSC1 RE CLOSE:\d+']
+  comment: ''
+  execution time: 0.0
+  expected result: '1.OK
+
+    2.OK'
+  initial condition: STAAP2
+  initial condition description (auto): testing sta on sta + ap mode,  join AP, DHCP
+    on (autogen by STAM2)
   module: TCPIP
   steps: '1.target1上UDP传输,Bind socket1,本地ip target_udp_port1
 
@@ -6609,6 +7094,93 @@ test cases:
   test point 1: basic function
   test point 2: DHCP client function test
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_SCAN_0301
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 sta -S
+    - ['']
+  - - SSC SSC1 sta -S
+    - [P SSC1 C +SCANFAIL, 'P SSC1 P +SCAN:', R SSC1 C +SCANDONE]
+  comment: ''
+  execution time: 0.0
+  expected result: '1. second scan failed
+
+    2. first scan succeed'
+  initial condition: STAM1
+  initial condition description (auto): sta mode, quit AP, DHCP on, will autogen a
+    TC with initial condition STAAP1
+  module: WIFI MAC
+  steps: '1. do all channel scan
+
+    2. do scan before scan finished'
+  sub module: WIFI Scan
+  summary: reject scan request before scan finished
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: interaction
+  test point 2: Scan interact with other WiFi operation
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_SCAN_0303
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
+    - ['R SSC1 C +JAP:OK']
+  - - SSC SSC1 sta -S
+    - [P SSC1 C +SCANDONE, 'P SSC1 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -D
+    - ['R SSC1 C +QAP:OK']
+  - - SSC SSC1 sta -S
+    - ['']
+  - - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
+    - [P SSC1 C +SCANDONE, 'P SSC1 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: '2. scan succeed, JAP succeed
+
+    5. JAP succeed, scan succeed'
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. target 1 STA join AP
+
+    2. target 1 STA scan before JAP succeed
+
+    3. target 1 quite AP
+
+    4. target 1 scan
+
+    5. target 1 JAP before scan succeed'
+  sub module: WIFI Scan
+  summary: scan during JAP
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: interaction
+  test point 2: Scan interact with other WiFi operation
+  version: v1 (2015-8-15)
 - CI ready: 'Yes'
   ID: ^WIFI_CONN_0801
   SDK: '8266_NonOS
@@ -6672,6 +7244,55 @@ test cases:
   test point 1: basic function
   test point 2: wifi auth changed event test
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_SCAN_0304
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - ['R SSC2 C +JAP:OK']
+  - - SSC SSC1 sta -S
+    - [P SSC1 C +SCANDONE, 'P SSC2 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -D
+    - ['R SSC2 C +QAP:OK']
+  - - SSC SSC1 sta -S
+    - ['']
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - [P SSC1 C +SCANDONE, 'P SSC2 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: '2. scan succeed, JAP succeed
+
+    5. JAP succeed, scan succeed'
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. target 2 STA join target 1 SoftAP
+
+    2. target 1 STA scan before target 2 JAP succeed
+
+    3. target 2 STA QAP
+
+    4. target 1 STA scan
+
+    5. target 2 STA JAP before target 1 STA scan succeed'
+  sub module: WIFI Scan
+  summary: scan during ext STA join SoftAP
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: interaction
+  test point 2: Scan interact with other WiFi operation
+  version: v1 (2015-8-15)
 - CI ready: 'Yes'
   ID: ^TCPIP_UDP_0108
   SDK: '8266_NonOS
@@ -7773,6 +8394,47 @@ test cases:
   test point 1: basic function
   test point 2: wifi disconnect reason test
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: ^WIFI_CONN_0902
+  SDK: '8266_NonOS
+
+    8266_RTOS
+
+    ESP32_IDF'
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - APC <APC1> OFF <ap_apc>
+    - [P PC_COM L OK, 'R SSC1 RE JAP:DISCONNECTED,\d+,200']
+  - - APC <APC1> ON <ap_apc>
+    - [P PC_COM L OK]
+  comment: ''
+  execution time: 0.0
+  expected result: '1. succeed
+
+    2. disconnect event REASON_BEACON_TIMEOUT'
+  initial condition: STAAP1
+  initial condition description (auto): testing sta on sta + ap mode, quit AP (autogen
+    by STAM1)
+  module: WIFI MAC
+  steps: '1. connect to AP
+
+    2. AP power off'
+  sub module: WIFI Connect
+  summary: test wifi disconnect reason REASON_BEACON_TIMEOUT
+  test environment: SSC_T1_APC
+  test environment description (auto): "PC has 1 wired NIC connected to AP.\nPC has\
+    \ 1 wired NIC connected to APC (static IP within the same subnet with APC). \n\
+    APC control AP power supply. \nPC has 1 WiFi NIC. \n1 SSC target connect with\
+    \ PC by UART."
+  test point 1: basic function
+  test point 2: wifi disconnect reason test
+  version: v1 (2016-8-15)
 - CI ready: 'Yes'
   ID: ^WIFI_CONN_0901
   SDK: '8266_NonOS
@@ -9291,6 +9953,61 @@ test cases:
   test point 1: basic function
   test point 2: use TCP SAP (socket/espconn API) with different parameter
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_SCAN_0302
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC1 soc -B -t UDP -p <test_udp_port1>
+    - ['R SSC1 A <sock1>:BIND:(\d+),OK']
+  - - SSC SSC1 soc -S -s <sock1> -i <pc_ip> -p <test_udp_port1> -n 1000000 -j 5
+    - ['']
+  - - SSC SSC2 phy -S -o 1 -m b
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC2 sta -S -n <ap_channel>
+    - [R SSC2 P <ap_ssid>]
+  - - SSC SSC2 phy -S -o 1 -m g
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC2 sta -S -n <ap_channel>
+    - [R SSC2 P <ap_ssid>]
+  - - SSC SSC2 phy -S -o 1 -m n -b 20
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC2 sta -S -n <ap_channel>
+    - [R SSC2 P <ap_ssid>]
+  - - SSC SSC2 phy -S -o 1 -m n -b 40
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC2 sta -S -n <ap_channel>
+    - [R SSC2 P <ap_ssid>]
+  comment: ''
+  execution time: 0.0
+  expected result: 3. target 2 able to scan AP
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. target 1 connect to AP
+
+    2. target 1 start sending UDP packets
+
+    3. target 2 scan in AP channel in 11b.g,n,ht40 mode'
+  sub module: WIFI Scan
+  summary: scan in congest channel
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: interaction
+  test point 2: Scan interact with other WiFi operation
+  version: v1 (2015-8-15)
 - CI ready: 'Yes'
   ID: TCPIP_UDP_0304
   SDK: '8266_NonOS
@@ -11944,6 +12661,147 @@ test cases:
   test point 1: basic function
   test point 2: wifi disconnect reason test
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_CONN_0902
+  SDK: '8266_NonOS
+
+    8266_RTOS
+
+    ESP32_IDF'
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 sta -C -s <ap_ssid> -p <ap_password>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - APC <APC1> OFF <ap_apc>
+    - [P PC_COM L OK, 'R SSC1 RE JAP:DISCONNECTED,\d+,200']
+  - - APC <APC1> ON <ap_apc>
+    - [P PC_COM L OK]
+  comment: ''
+  execution time: 0.0
+  expected result: '1. succeed
+
+    2. disconnect event REASON_BEACON_TIMEOUT'
+  initial condition: STAM1
+  initial condition description (auto): sta mode, quit AP, DHCP on, will autogen a
+    TC with initial condition STAAP1
+  module: WIFI MAC
+  steps: '1. connect to AP
+
+    2. AP power off'
+  sub module: WIFI Connect
+  summary: test wifi disconnect reason REASON_BEACON_TIMEOUT
+  test environment: SSC_T1_APC
+  test environment description (auto): "PC has 1 wired NIC connected to AP.\nPC has\
+    \ 1 wired NIC connected to APC (static IP within the same subnet with APC). \n\
+    APC control AP power supply. \nPC has 1 WiFi NIC. \n1 SSC target connect with\
+    \ PC by UART."
+  test point 1: basic function
+  test point 2: wifi disconnect reason test
+  version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_CONN_0903
+  SDK: '8266_NonOS
+
+    8266_RTOS
+
+    ESP32_IDF'
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 sta -C -s <wep_ap_ssid> -p bacfd
+    - ['R SSC1 RE JAP:DISCONNECTED,\d+,2']
+  comment: ''
+  execution time: 0.0
+  expected result: 1. disconect event reason REASON_AUTH_EXPIRE
+  initial condition: STAM1
+  initial condition description (auto): sta mode, quit AP, DHCP on, will autogen a
+    TC with initial condition STAAP1
+  module: WIFI MAC
+  steps: 1. connect WEP ap with error password (valid wep password)
+  sub module: WIFI Connect
+  summary: test wifi disconnect reason REASON_AUTH_EXPIRE
+  test environment: SSC_T1_WEP
+  test environment description (auto): '1 SSC target connect with PC by UART.
+
+    One WEP share key AP placed near SSC1.'
+  test point 1: basic function
+  test point 2: wifi disconnect reason test
+  version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_SCAN_0201
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m b
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 sta -S
+    - [R SSC1 P <ap_ssid_11b> P <ap_ssid_11g> P <ap_ssid_11n_ht20> P <ap_ssid_11n_ht40>]
+  - - SSC SSC1 phy -S -o 1 -m g
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 sta -S
+    - [R SSC1 P <ap_ssid_11b> P <ap_ssid_11g> P <ap_ssid_11n_ht20> P <ap_ssid_11n_ht40>]
+  - - SSC SSC1 phy -S -o 1 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 sta -S
+    - [R SSC1 P <ap_ssid_11b> P <ap_ssid_11g> P <ap_ssid_11n_ht20> P <ap_ssid_11n_ht40>]
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 sta -S
+    - [R SSC1 P <ap_ssid_11b> P <ap_ssid_11g> P <ap_ssid_11n_ht20> P <ap_ssid_11n_ht40>]
+  comment: ''
+  execution time: 0.0
+  expected result: '3. find all 3 ext APs
+
+    5. find all 3 ext APs
+
+    7. find all 3 ext APs
+
+    9. find all 3 ext APs'
+  initial condition: STAM1
+  initial condition description (auto): sta mode, quit AP, DHCP on, will autogen a
+    TC with initial condition STAAP1
+  module: WIFI MAC
+  steps: '1. 3 ext APs in 11b, 11g, 11n mode
+
+    2. STA in 11b mode
+
+    3. do all channel scan
+
+    4. STA in 11g mode
+
+    5. do all channel scan
+
+    6. STA in 11n ht20 mode
+
+    7. do all channel scan
+
+    8. STA in 11n ht40 mode
+
+    9. do all channel scan'
+  sub module: WIFI Scan
+  summary: STA in differnt PHY mode to scan AP in different PHY mode
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: Scan in different mode and channel
+  version: v1 (2015-8-15)
 - CI ready: 'Yes'
   ID: WIFI_CONN_0503
   SDK: '8266_NonOS
@@ -12002,6 +12860,285 @@ test cases:
   test point 1: basic function
   test point 2: reconnect policy test
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0402
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 phy -S -o 1 -m n -b 20
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - ['P SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <ap_ssid_c1_ht20> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 NC +JAP:DISCONNECTED', 'P SSC1 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 3. SoftAP and STA in channel2, both bandwidth 20M, SoftAP not get
+    disconnected
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. SoftAP 11n ht20, in channel1, ext AP 11n ht20, in channel2
+
+    2. AP get connected
+
+    3. STA connect to ext AP'
+  sub module: Phy Mode
+  summary: SoftAP ext AP in defferent channel, both bandwidth 20M, Softap get connected
+    than STA connect to AP
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP initial channel test
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0401
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 phy -S -o 1 -m n -b 20
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC1 sta -C -s <ap_ssid_c1_ht20> -p <ap_password_phy>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - ['']
+  - - DELAY 10
+    - ['P SSC1 NC +JAP:DISCONNECTED', 'P SSC2 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 3. SoftAP and STA in channel2, both bandwidth 20M, STA not disconnected
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. SoftAP 11n ht20, in channel1, ext AP 11n ht20, in channel2
+
+    2. STA connect to ext AP
+
+    3. AP get connected'
+  sub module: Phy Mode
+  summary: SoftAP ext AP in defferent channel, both bandwidth 20M, STA connect to
+    AP then Softap get connected
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP initial channel test
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0407
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 phy -S -o 1 -m n -b 40
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC1 sta -C -s <ap_ssid_c1_ht40> -p <ap_password_phy>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - ['']
+  - - DELAY 10
+    - ['P SSC1 NC +JAP:DISCONNECTED', 'P SSC2 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 3. SoftAP and STA in channel2, SoftAP 40M, STA 20M, STA not disconnected
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. SoftAP 11n ht40, in channel1, ext AP 11n ht20, in channel2
+
+    2. STA connect to ext AP
+
+    3. AP get connected'
+  sub module: Phy Mode
+  summary: SoftAP ext AP in defferent channel, SoftAP 40M, ext AP 20M, STA connect
+    to AP then Softap get connected
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP initial channel test
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0406
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 phy -S -o 1 -m n -b 40
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - ['P SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <ap_ssid_c1_ht20> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 NC +JAP:DISCONNECTED', 'P SSC1 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 3. SoftAP and STA in channel2, both bandwidth 40M, SoftAP not get
+    disconnected
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. SoftAP 11n ht40, in channel1, ext AP 11n ht40, in channel2
+
+    2. AP get connected
+
+    3. STA connect to ext AP'
+  sub module: Phy Mode
+  summary: SoftAP ext AP in defferent channel, both bandwidth 40M, Softap get connected
+    than STA connect to AP
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP initial channel test
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0405
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 phy -S -o 1 -m n -b 40
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC1 sta -C -s <ap_ssid_c1_ht20> -p <ap_password_phy>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - ['']
+  - - DELAY 10
+    - ['P SSC1 NC +JAP:DISCONNECTED', 'P SSC2 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 3. SoftAP and STA in channel2, both bandwidth 40M, STA not disconnected
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. SoftAP 11n ht40, in channel1, ext AP 11n ht40, in channel2
+
+    2. STA connect to ext AP
+
+    3. AP get connected'
+  sub module: Phy Mode
+  summary: SoftAP ext AP in defferent channel, both bandwidth 40M, STA connect to
+    AP then Softap get connected
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP initial channel test
+  version: v1 (2015-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0404
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 20
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 phy -S -o 1 -m n -b 20
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - ['P SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <ap_ssid_c1_ht40> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 NC +JAP:DISCONNECTED', 'P SSC1 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 3. SoftAP and STA in channel2, SoftAP 20M, STA 40M, SoftAP not
+    get disconnected
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. SoftAP 11n ht20, in channel1, ext AP 11n ht40, in channel2
+
+    2. AP get connected
+
+    3. STA connect to ext AP'
+  sub module: Phy Mode
+  summary: SoftAP ext AP in defferent channel, SoftAP 20M, ext AP 40M, Softap get
+    connected than STA connect to AP
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP initial channel test
+  version: v1 (2015-8-15)
 - CI ready: 'Yes'
   ID: ^TCPIP_UDP_0112
   SDK: '8266_NonOS
@@ -12042,6 +13179,53 @@ test cases:
   test point 1: basic function
   test point 2: use UDP SAP (socket/espconn API) with different parameter
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0408
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 phy -S -o 1 -m n -b 40
+    - ['R SSC2 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <target_ssid> -p <target_password>
+    - ['P SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <ap_ssid_c1_ht40> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 NC +JAP:DISCONNECTED', 'P SSC1 C +JAP:CONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 3. SoftAP and STA in channel2, SoftAP 40M, STA 20M, SoftAP not
+    get disconnected
+  initial condition: T2_2
+  initial condition description (auto): target 1 as AP+STA, target 2 as AP+STA (autogen)
+  module: WIFI MAC
+  steps: '1. SoftAP 11n ht40, in channel1, ext AP 11n ht20, in channel2
+
+    2. AP get connected
+
+    3. STA connect to ext AP'
+  sub module: Phy Mode
+  summary: SoftAP ext AP in defferent channel, SoftAP 40M, ext AP 20M, Softap get
+    connected than STA connect to AP
+  test environment: SSC_T2_PhyMode
+  test environment description (auto): '2 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with phy mode 11b, 11g, 11n HT20, 11n HT40.
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP initial channel test
+  version: v1 (2015-8-15)
 - CI ready: 'Yes'
   ID: ^TCPIP_UDP_0114
   SDK: '8266_NonOS
@@ -12455,6 +13639,61 @@ test cases:
   test point 1: basic function
   test point 2: SAP/JAP with different config
   version: v1 (2016-8-15)
+- CI ready: 'Yes'
+  ID: WIFI_PHY_0504
+  SDK: ESP32_IDF
+  Test App: SSC
+  allow fail: ''
+  auto test: 'Yes'
+  category: Function
+  cmd set:
+  - ''
+  - - SSC SSC1 phy -S -o 1 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC1 phy -S -o 2 -m n -b 40
+    - ['R SSC1 C +PHY:OK']
+  - - SSC SSC2 sta -C -s <ap_ssid_c1_ht40> -p <ap_password_phy>
+    - ['R SSC2 C +JAP:CONNECTED']
+  - - SSC SSC1 sta -C -s <target2_ssid> -p <target2_password>
+    - ['R SSC1 C +JAP:CONNECTED']
+  - - SSC SSC3 sta -C -s <target_ssid> -p <target_password>
+    - ['R SSC3 C +JAP:CONNECTED']
+  - - SSC SSC2 sta -C -s <ap_ssid_c2_ht20> -p <ap_password_phy>
+    - ['']
+  - - DELAY 10
+    - ['P SSC2 C +JAP:CONNECTED', 'P SSC[1,3] NC +JAP:DISCONNECTED']
+  comment: ''
+  execution time: 0.0
+  expected result: 4. all STA not get disconnected; target 1 SoftAP and STA both in
+    channel2 20M
+  initial condition: T3_PHY1
+  initial condition description (auto): '1. target 1 and target 2 set to AP+STA mode,
+    target 3 set to STA mode
+
+    2. all interface of target 2,3 set to 11n ht40
+
+    3. config softAP of target 1 and target 2'
+  module: WIFI MAC
+  steps: '1. target 1 STA and SoftAP set to 40M
+
+    2. target 2 STA connect to ap_channel1_40
+
+    3. target 1/3 STA connect to target 2/1 SoftAP
+
+    4. target 2 STA connect to ap_channel2_20'
+  sub module: Phy Mode
+  summary: SoftAP STA in channel1, SoftAP 20M, STA 40M, STA changed to channel2 40M
+  test environment: SSC_T3_PhyMode
+  test environment description (auto): '3 SSC target connect with PC by UART.
+
+    PC has one WiFi NIC support capture wlan packet using libpcap.
+
+    Set 4 AP with (HT20, channel1), (HT20, channel2), (HT40, channel1), (HT40, channel2).
+
+    Put 4 APs near SSC targets.'
+  test point 1: basic function
+  test point 2: STA+SoftAP dynamic channel switch test
+  version: v1 (2015-8-15)
 - CI ready: 'Yes'
   ID: ^TCPIP_IP_0101
   SDK: '8266_NonOS