Index: ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog	(revision 5869)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/patch.prog	(working copy)
@@ -76,7 +76,7 @@
 	beq patch29_0,p_le_context_nextevent
 	beq patch29_3,p_le_receive_slave
 	beq patch29_7,p_le_send_adv_ind
-	beq patch2a_1,p_le_connect_request
+//	beq patch2a_1,p_le_connect_request	// this patch can close.
 	beq patch2a_2,p_le_acknowledge
 	
 //	beq patch2a_4,p_le_scan_match
@@ -141,7 +141,9 @@
 p_le_dispatch:
 	 call le_enable 
 	 call p_le_scan
-	 branch le_dispatch+2
+	call le_adv
+	call shutdown_radio
+	branch le_disable
 
 p_le_scan:
 	fetch 1,mem_le_scan_enable
@@ -199,11 +201,6 @@
 	beq 6,p_le_scan_timeout_check
 	call p_hci_send_event_le_advertising_report
 
-p_le_scan_timeout_check:	
-	fetch 2,mem_le_scan_window_temp
-	nbranch  p_le_scan_loop,blank
-	rtn
-
 p_le_receive_packet:
 	call lerx_setfreq
 p_le_receive_rxon:
@@ -1610,19 +1607,23 @@
 	branch p_le_slave_more_data,user
 	branch le_slave_cont
 
+p_le_scan_timeout_check:
+	deposit stop_watch
+	rtn blank
+	branch p_le_scan_loop
 	
 p_le_create_conn:
 	fetch 1,mem_le_conn_peer_addr_type
 	fetcht 1,mem_le_hci_conn_peer_addr_type
 	isub temp,null
-	nrtn zero
+	nbranch p_le_scan_timeout_check,zero
 	fetch 6,mem_le_plap
 	fetcht 6,mem_le_conn_peer_addr
 	isub temp,null
-	nrtn zero
+	nbranch p_le_scan_timeout_check,zero
 	call context_new
 	nrtn zero
-	call le_connect_request
+	call p_le_connect_request
 	call le_init_master
 	jam 0,mem_hci_cmd
 	jam 0,mem_le_peer_sca
Index: ModuleDemo/25_OTA/bt_demo/BT/patch/z.prog
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/z.prog	(revision 5869)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/patch/z.prog	(working copy)
@@ -888,6 +888,8 @@
 	store 3,mem_glap
 	store 6,mem_mesh_le_random_address
 	setarg 0
+	store 1,mem_le_conn_status
+	store 1,mem_mesh_creat_connection_flag
 	store 1,mem_hci_read_remote_version_information_flag
 	store 1,mem_le_adv_enable
 	store 1,mem_le_scan_enable
@@ -1039,9 +1041,10 @@
 	call p_ipc_rx_hci_data_two_byte		//LE Scan Window
 	store 2,mem_le_scan_window
 	call p_ipc_rx_hci_data_one_byte		//initiator filter policy
-	store 1,mem_le_white_list_filter_policy
-	isub 0x01,null
-	call p_white_filter_connect_filter,zero
+	//do not support white_list_filter
+//	store 1,mem_le_white_list_filter_policy
+//	sub pdata,1,null
+//	call p_white_filter_connect_filter,zero
 	call p_ipc_rx_hci_data_one_byte		//peer address type
 	store 1,mem_le_hci_conn_peer_addr_type
 	call p_ipc_rx_hci_data_six_byte		//peer address
Index: ModuleDemo/25_OTA/bt_demo/BT/sched/patch.dat
===================================================================
--- /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/patch.dat	(revision 5869)
+++ /YC1121E/SoftCode/1121EB/branch/HciDongle/ModuleDemo/25_OTA/bt_demo/BT/sched/patch.dat	(working copy)
@@ -42,7 +42,7 @@
 c8   #mem_patch27
 06   #mem_patch28
 89   #mem_patch29
-06   #mem_patch2A
+04   #mem_patch2A
 29   #mem_patch2B
 11   #mem_patch2C
 40   #mem_patch2D
