Index: output/eeprom.dat
===================================================================
--- /branch/mouse_project/YJX_Project/HX_24G&BLE/output/eeprom.dat	(revision 1427)
+++ /branch/mouse_project/YJX_Project/HX_24G&BLE/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-e6
+d6
 1c
 c2
 84
@@ -23,11 +23,11 @@
 c0
 42
 87
-37
+33
 c0
 44
 87
-0a
+06
 c0
 50
 80
@@ -71,7 +71,7 @@
 c0
 76
 05
-e5
+e1
 20
 20
 2a
@@ -79,51 +79,51 @@
 c0
 1c
 85
-eb
+e7
 c0
 21
 85
-f3
+ef
 c0
 25
 05
-f9
+f5
 c0
 2b
 85
-fc
+f8
 c0
 2c
 86
-0c
+08
 c0
 31
 86
-19
+15
 c0
 33
 06
-43
+3f
 c0
 33
 86
-62
+5e
 c0
 35
 06
-9e
+9a
 c0
 3b
 86
-a9
+a5
 c0
 7d
 06
-ba
+b6
 c0
 46
 06
-c3
+bf
 20
 20
 2a
@@ -371,7 +371,7 @@
 20
 40
 06
-e0
+dc
 20
 40
 00
@@ -899,7 +899,7 @@
 20
 20
 06
-e0
+dc
 70
 4d
 22
@@ -1131,7 +1131,7 @@
 20
 40
 06
-d6
+d2
 20
 20
 02
@@ -1175,7 +1175,7 @@
 20
 40
 06
-d6
+d2
 70
 4d
 10
@@ -1515,7 +1515,7 @@
 20
 40
 06
-d2
+ce
 68
 00
 cb
@@ -1706,12 +1706,12 @@
 86
 20
 40
-07
-01
+06
+fd
 20
 40
 06
-d6
+d2
 20
 20
 02
@@ -1963,7 +1963,7 @@
 20
 40
 06
-cf
+cb
 68
 00
 cb
@@ -3111,7 +3111,7 @@
 20
 40
 06
-cf
+cb
 68
 00
 c6
@@ -3227,7 +3227,7 @@
 c0
 7f
 85
-d8
+da
 28
 0f
 fe
@@ -3239,7 +3239,7 @@
 20
 40
 05
-d6
+d8
 20
 40
 34
@@ -3251,7 +3251,7 @@
 20
 40
 05
-d2
+d4
 70
 43
 8f
@@ -3811,7 +3811,7 @@
 58
 00
 06
-b3
+af
 60
 01
 41
@@ -4471,7 +4471,7 @@
 20
 20
 05
-ca
+cc
 70
 0a
 99
@@ -4567,7 +4567,7 @@
 20
 20
 06
-59
+55
 20
 40
 03
@@ -4931,11 +4931,11 @@
 c0
 00
 05
-ca
+cc
 c0
 00
 85
-da
+dc
 20
 60
 00
@@ -5199,7 +5199,7 @@
 20
 40
 05
-ce
+d0
 20
 20
 43
@@ -5864,6 +5864,22 @@
 47
 9c
 00
+df
+20
+00
+03
+d8
+c0
+47
+22
+20
+40
+03
+ac
+24
+54
+03
+66
 68
 03
 4b
@@ -5872,14 +5888,6 @@
 03
 44
 a0
-70
-4b
-40
-5a
-20
-40
-03
-67
 20
 40
 34
@@ -5911,7 +5919,7 @@
 20
 40
 05
-d6
+d8
 20
 40
 43
@@ -5923,7 +5931,7 @@
 24
 5a
 05
-ca
+cc
 20
 40
 42
@@ -5943,7 +5951,7 @@
 20
 40
 05
-ce
+d0
 20
 20
 7d
@@ -5959,7 +5967,7 @@
 20
 40
 05
-d6
+d8
 d8
 c0
 4b
@@ -5996,18 +6004,6 @@
 40
 85
 3c
-d8
-e0
-00
-07
-20
-40
-43
-d2
-20
-40
-03
-6d
 70
 43
 6f
@@ -6015,31 +6011,19 @@
 70
 43
 8f
-1f
-20
-20
-7d
-f4
-20
-40
-03
-6d
+00
 d8
-a0
-43
-70
-df
-20
+e0
 00
-0b
+07
 20
 40
-7f
-01
+43
+d2
 20
 20
-57
-b8
+03
+6d
 20
 40
 05
@@ -6091,7 +6075,7 @@
 20
 40
 06
-e0
+dc
 20
 20
 53
@@ -6134,8 +6118,8 @@
 a3
 20
 40
-06
-02
+05
+fe
 20
 20
 55
@@ -6183,7 +6167,7 @@
 20
 21
 05
-fe
+fa
 68
 00
 c3
@@ -6194,8 +6178,8 @@
 72
 20
 20
-06
-00
+05
+fc
 68
 00
 84
@@ -6207,7 +6191,7 @@
 20
 40
 06
-11
+0d
 24
 74
 00
@@ -6255,11 +6239,11 @@
 c2
 82
 86
-2d
+29
 20
 40
 06
-d2
+ce
 68
 00
 c7
@@ -6267,7 +6251,7 @@
 24
 3a
 06
-23
+1f
 68
 00
 84
@@ -6275,7 +6259,7 @@
 c3
 02
 06
-27
+23
 68
 00
 82
@@ -6283,7 +6267,7 @@
 20
 3a
 06
-27
+23
 20
 20
 56
@@ -6311,7 +6295,7 @@
 c0
 82
 86
-2a
+26
 70
 47
 8e
@@ -6331,11 +6315,11 @@
 20
 40
 06
-2f
+2b
 20
 20
 06
-3b
+37
 68
 00
 c6
@@ -6387,7 +6371,7 @@
 20
 20
 06
-d6
+d2
 68
 00
 c7
@@ -6471,7 +6455,7 @@
 c0
 01
 86
-52
+4e
 20
 20
 56
@@ -6483,11 +6467,11 @@
 c0
 00
 06
-56
+52
 c0
 00
 86
-5d
+59
 20
 20
 5c
@@ -6547,11 +6531,11 @@
 c0
 02
 06
-66
+62
 c0
 03
 06
-93
+8f
 20
 20
 56
@@ -6563,7 +6547,7 @@
 20
 40
 06
-3c
+38
 20
 40
 7e
@@ -6579,7 +6563,7 @@
 c0
 08
 06
-75
+71
 1f
 ec
 84
@@ -6591,7 +6575,7 @@
 20
 21
 06
-83
+7f
 d8
 40
 47
@@ -6675,7 +6659,7 @@
 c0
 05
 06
-85
+81
 20
 20
 58
@@ -6691,7 +6675,7 @@
 c2
 81
 86
-8c
+88
 68
 01
 04
@@ -6719,7 +6703,7 @@
 24
 22
 86
-88
+84
 20
 40
 5a
@@ -6727,7 +6711,7 @@
 24
 34
 06
-88
+84
 70
 04
 7a
@@ -6743,11 +6727,11 @@
 c0
 00
 86
-97
+93
 c0
 02
 86
-99
+95
 20
 20
 5a
@@ -6791,7 +6775,7 @@
 20
 40
 06
-a4
+a0
 d8
 e0
 00
@@ -6831,7 +6815,7 @@
 20
 37
 06
-ac
+a8
 24
 36
 d8
@@ -6911,7 +6895,7 @@
 c0
 09
 06
-c0
+bc
 20
 20
 7d
@@ -7015,7 +6999,7 @@
 24
 41
 06
-de
+da
 68
 00
 cd
@@ -7071,7 +7055,7 @@
 c5
 13
 06
-e8
+e4
 58
 00
 00
@@ -7082,8 +7066,8 @@
 00
 24
 21
-07
-00
+06
+fc
 68
 00
 cd
@@ -7095,15 +7079,15 @@
 24
 21
 06
-f0
+ec
 68
 00
 cd
 16
 c0
 00
-07
-01
+06
+fd
 20
 60
 00
@@ -7131,7 +7115,7 @@
 c5
 13
 06
-f7
+f3
 58
 00
 00
@@ -7151,7 +7135,7 @@
 c0
 00
 07
-08
+04
 1f
 e0
 ff
@@ -7163,7 +7147,7 @@
 c0
 00
 07
-08
+04
 70
 41
 de
@@ -7183,7 +7167,7 @@
 c0
 01
 07
-06
+02
 1f
 e0
 fe
@@ -7195,7 +7179,7 @@
 c0
 00
 86
-fe
+fa
 70
 41
 de
@@ -7279,19 +7263,19 @@
 c0
 01
 07
-22
+1e
 c0
 02
 07
-2a
+26
 c0
 10
 07
-34
+30
 20
 40
 07
-2f
+2b
 70
 89
 55
@@ -7343,7 +7327,7 @@
 20
 40
 07
-2f
+2b
 70
 89
 55
@@ -7400,8 +7384,8 @@
 20
 28
 fa
-fb
-68
+1a
+ec
 aa
 55
 08
@@ -8027,8 +8011,8 @@
 4c
 04
 01
-79
-e4
+5f
+62
 ff
 ff
 ff
@@ -8188,5 +8172,21 @@
 ff
 ff
 ff
-a7
-31
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+5b
+d9
Index: output/program.lis
===================================================================
--- /branch/mouse_project/YJX_Project/HX_24G&BLE/output/program.lis	(revision 1427)
+++ /branch/mouse_project/YJX_Project/HX_24G&BLE/output/program.lis	(working copy)
@@ -4,8 +4,8 @@
 0001 c0000029 beq patch00_0 ,p_soft_reset 
 0002 c000802c beq patch00_1 ,p_soft_reset_1 
 0003 c0010035 beq patch00_2 ,p_soft_reset_2 
-0004 c0428737 beq patch10_5 ,p_shutdown_radio 
-0005 c044870a beq patch11_1 ,p_set_freq_tx 
+0004 c0428733 beq patch10_5 ,p_shutdown_radio 
+0005 c0448706 beq patch11_1 ,p_set_freq_tx 
 0006 c050803e beq patch14_1 ,p_init_param 
 0007 c0588043 beq patch16_1 ,p_lpm_check_wake_lock 
 0008 c059004f beq patch16_2 ,p_g24_dispatch 
@@ -16,22 +16,22 @@
 000d c0730572 beq patch1c_6 ,p_mouse_motion 
 000e c07505ac beq patch1d_2 ,p_mouse_bb_event_discovery_btn 
 000f c07585b4 beq patch1d_3 ,p_mouse_start_discovery 
-0010 c07605e5 beq patch1d_4 ,p_mouse_stop_discovery 
+0010 c07605e1 beq patch1d_4 ,p_mouse_stop_discovery 
 0011 20202a8e branch loop 
 
 pf_patch_ext:
-0012 c01c85eb beq patch27_1 ,p_le_slave_match 
-0013 c02185f3 beq patch28_3 ,p_le_next_adv_channel 
-0014 c02505f9 beq patch29_2 ,p_le_receive_skip 
-0015 c02b85fc beq patch2a_7 ,p_le_update_param 
-0016 c02c860c beq patch2b_1 ,p_le_update_channel_map 
-0017 c0318619 beq patch2c_3 ,p_le_prepare_tx 
-0018 c0330643 beq patch2c_6 ,p_le_parse 
-0019 c0338662 beq patch2c_7 ,p_le_parse_l2cap 
-001a c035069e beq patch2d_2 ,p_le_adv_not_match 
-001b c03b86a9 beq patch2e_7 ,p_le_lpm_setmult 
-001c c07d06ba beq patch3f_2 ,p_check_51cmd_once_continue 
-001d c04606c3 beq patch31_4 ,p_twspi_reset 
+0012 c01c85e7 beq patch27_1 ,p_le_slave_match 
+0013 c02185ef beq patch28_3 ,p_le_next_adv_channel 
+0014 c02505f5 beq patch29_2 ,p_le_receive_skip 
+0015 c02b85f8 beq patch2a_7 ,p_le_update_param 
+0016 c02c8608 beq patch2b_1 ,p_le_update_channel_map 
+0017 c0318615 beq patch2c_3 ,p_le_prepare_tx 
+0018 c033063f beq patch2c_6 ,p_le_parse 
+0019 c033865e beq patch2c_7 ,p_le_parse_l2cap 
+001a c035069a beq patch2d_2 ,p_le_adv_not_match 
+001b c03b86a5 beq patch2e_7 ,p_le_lpm_setmult 
+001c c07d06b6 beq patch3f_2 ,p_check_51cmd_once_continue 
+001d c04606bf beq patch31_4 ,p_twspi_reset 
 001e 20202a8e branch loop 
 
 p_rssi_signal:
@@ -113,7 +113,7 @@
 0058 20400170 call p_g24_transmit_packet 
 0059 6800cbed fetch 1 ,mem_24g_pairing_sm 
 005a c1ff8000 rtnne state_24g_pairing_success 
-005b 204006e0 call power_ctrl_start 
+005b 204006dc call power_ctrl_start 
 005c 2040008e call g24_long_sleep_shorter_param_update 
 005d 6800cb01 fetch 1 ,mem_mouse_multi_led_state 
 005e c000808a beq on ,p_g24_transmit_by_interrupt_enable 
@@ -285,7 +285,7 @@
 00dc 20400249 call p_g24_transmit_prep 
 00dd 20400150 call p_g24_txdata_enable_tx 
 00de 20400170 call p_g24_transmit_packet 
-00df 202006e0 branch power_ctrl_start 
+00df 202006dc branch power_ctrl_start 
 
 p_g24_search_dongle_init:
 00e0 704d2200 jam 0 ,mem_24g_search_dongle_action 
@@ -365,7 +365,7 @@
 0116 793ffe04 set0 bit_hop ,pdata 
 0117 6000cbde store 1 ,mem_24g_data_type 
 0118 6000cb99 store 1 ,mem_24g_txpayload 
-0119 204006d6 call power_ctrl_pac_succ_decrs 
+0119 204006d2 call power_ctrl_pac_succ_decrs 
 011a 2020025b branch p_g24_ch 
 
 p_g24_rf_hop_attemp_again:
@@ -382,7 +382,7 @@
 0123 20200170 branch p_g24_transmit_packet 
 
 p_g24_rf_hop_fastly_exit:
-0124 204006d6 call power_ctrl_pac_succ_decrs 
+0124 204006d2 call power_ctrl_pac_succ_decrs 
 0125 704d1000 jam 0 ,mem_24g_hop_fastly_cnt 
 0126 2020010c branch p_g24_transmit_rf_ctrl_clear 
 
@@ -497,7 +497,7 @@
 0176 204000ff call p_g24_search_dongle_success 
 0177 20400185 call p_g24_txbuf_clear 
 0178 204001b6 call p_g24_ackpayload_parse 
-0179 204006d2 call power_ctrl_pac_succ_incrs 
+0179 204006ce call power_ctrl_pac_succ_incrs 
 
 p_g24_transmit_next_packet:
 017a 6800cbdc fetch 1 ,mem_24g_pid 
@@ -567,8 +567,8 @@
 01a8 20207d86 branch ui_ipc_send_event 
 
 p_g24_tx_fast_hop:
-01a9 20400701 call power_ctrl_txpower_incrs 
-01aa 204006d6 call power_ctrl_pac_succ_decrs 
+01a9 204006fd call power_ctrl_txpower_incrs 
+01aa 204006d2 call power_ctrl_pac_succ_decrs 
 01ab 2020025b branch p_g24_ch 
 
 p_g24_tx_hop_ch_process:
@@ -657,7 +657,7 @@
 01e8 20207fe7 branch enable_user 
 
 p_g24_paring_mode_start:
-01e9 204006cf call power_ctrl_pac_succ_cnt_init 
+01e9 204006cb call power_ctrl_pac_succ_cnt_init 
 
 p_g24_paring_mode:
 01ea 6800cbed fetch 1 ,mem_24g_pairing_sm 
@@ -1026,7 +1026,7 @@
 0305 204003f8 call p_mouse_data_init 
 0306 6800c1de fetch 1 ,mem_tx_power 
 0307 6000cc94 store 1 ,mem_tx_power_temp 
-0308 204006cf call power_ctrl_pac_succ_cnt_init 
+0308 204006cb call power_ctrl_pac_succ_cnt_init 
 0309 6800c685 fetch 1 ,mem_ui_button_timeout 
 030a 6000c6da store 1 ,mem_combination_ui_button_count 
 030b 204043ca call mouse_bt_discovery_button_down_disable 
@@ -1067,13 +1067,13 @@
 p_mouse4_0_check_reconn_target_next:
 0323 600146ae store 2 ,mem_mouse_direct_timer 
 0324 6800cb40 fetch 1 ,mem_mouse_fast_conn_flag 
-0325 c07f85d8 beq 0xff ,p_mouse_check_fast_conn_adv_start 
+0325 c07f85da beq 0xff ,p_mouse_check_fast_conn_adv_start 
 0326 280ffe26 isolate1 mark_24g ,mark 
 0327 24408544 ncall p_mouse_bt_reconn_multi_led_blink ,true 
-0328 204005d6 call p_mouse_store_eeprom_enable 
+0328 204005d8 call p_mouse_store_eeprom_enable 
 0329 20403418 call app_lpm_mult_disable 
 032a d8c04390 arg mem_le_scan_data ,contr 
-032b 204005d2 call p_le_adv_data_update 
+032b 204005d4 call p_le_adv_data_update 
 032c 70438f1f jam 0x1f ,mem_le_scan_data_len 
 032d 20207df4 branch check_51cmd_adv 
 
@@ -1158,6 +1158,8 @@
 0363 58000050 setarg 0x50 
 0364 600146ae store 2 ,mem_mouse_direct_timer 
 0365 20403410 call app_ble_store_reconn_info 
+
+p_mouse_fast_conn_store:
 0366 704b405a jam 0x5a ,mem_mouse_fast_conn_flag 
 
 p_mouse_store_fast_conn_flag:
@@ -1275,7 +1277,7 @@
 03b4 60014d0e store 2 ,mem_cb_24g_data 
 03b5 580003db setarg p_mouse_le 
 03b6 600141ef store 2 ,mem_cb_le_process 
-03b7 580006b3 setarg p_le_mouse_bb_event_connect_complete 
+03b7 580006af setarg p_le_mouse_bb_event_connect_complete 
 03b8 600141f9 store 2 ,mem_cb_att_write 
 03b9 580002f6 setarg p_mouse_before_lpm 
 03ba 600141ed store 2 ,mem_cb_before_lpm 
@@ -1494,7 +1496,7 @@
 0459 204041d9 call mouse_bb_disconnected 
 045a 6800cb4a fetch 1 ,mem_mouse_start_discovery_enable 
 045b 207a0000 rtn blank 
-045c 202005ca branch p_check_51cmd_adv 
+045c 202005cc branch p_check_51cmd_adv 
 
 p_mouse_le_enc_info:
 
@@ -1534,7 +1536,7 @@
 
 p_mouse_le_conn_param_update_rsp_not_accepted:
 0473 704b5301 jam 1 ,mem_mouse_le_updata_not_accepted_flag 
-0474 20200659 branch p_mouse_le_conn_param_update_rsp_not_accepted_mult_reset 
+0474 20200655 branch p_mouse_le_conn_param_update_rsp_not_accepted_mult_reset 
 
 p_mouse_24g_pairing_complete:
 0475 20400319 call p_mouse_tx_power_init 
@@ -1653,8 +1655,8 @@
 04cc 1fe0fe01 increase 1 ,pdata 
 04cd 1fe17e01 and_into 1 ,pdata 
 04ce 6000cb49 store 1 ,mem_le_switch_adv_count 
-04cf c00005ca beq 0 ,p_check_51cmd_adv 
-04d0 c00085da beq 1 ,p_mouse_check_fast_conn_adv_start1 
+04cf c00005cc beq 0 ,p_check_51cmd_adv 
+04d0 c00085dc beq 1 ,p_mouse_check_fast_conn_adv_start1 
 04d1 20600000 rtn 
 
 p_mouse_g24_long_sleep_param_update_timer:
@@ -1760,7 +1762,7 @@
 050f 6800cb54 fetch 1 ,mem_mouse_latest_mode 
 0510 1fe67cff sub pdata ,latest_mode_null ,null 
 0511 20428514 call p_mouse_le_adv_start ,zero 
-0512 204005ce call p_mouse_le_adv_data_update 
+0512 204005d0 call p_mouse_le_adv_data_update 
 0513 202043b8 branch mouse_long_button_bt_discovry 
 
 p_mouse_le_adv_start:
@@ -2015,534 +2017,528 @@
 05b8 70479c00 jam 0 ,mem_mouse_clear_sensor_data_flag 
 
 p_mouse_start_discovery_norandom:
-05b9 68034b41 fetch 6 ,mem_le_normal_lap 
-05ba 600344a0 store 6 ,mem_le_lap 
-05bb 704b405a jam 0x5a ,mem_mouse_fast_conn_flag 
-05bc 20400367 call p_mouse_store_fast_conn_flag 
-05bd 20403418 call app_lpm_mult_disable 
-05be 68014687 fetch 2 ,mem_discovery_timeout 
-05bf 600146ac store 2 ,mem_mouse_discovery_timer 
-05c0 70016d06 jam 6 ,mem_connection_options 
-05c1 58000000 setarg 0 
-05c2 600146b0 store 2 ,mem_mouse_no_data_timer 
-05c3 600146ae store 2 ,mem_mouse_direct_timer 
-05c4 204005d6 call p_mouse_store_eeprom_enable 
-05c5 204043ca call mouse_bt_discovery_button_down_disable 
-05c6 6800cb4b fetch 1 ,mem_mouse_le_adv_start 
-05c7 245a05ca ncall p_check_51cmd_adv ,blank 
-05c8 204042c4 call mouse_start_discovery_norandom + 13 
-05c9 2020053c branch p_mouse_discovery_multi_led_blink 
+05b9 df200003 arg 3 ,loopcnt 
+05ba d8c04722 arg mem_device1_addr ,contr 
+05bb 204003ac call p_pdata_0xff_check 
+05bc 24540366 ncall p_mouse_fast_conn_store ,user 
+05bd 68034b41 fetch 6 ,mem_le_normal_lap 
+05be 600344a0 store 6 ,mem_le_lap 
+05bf 20403418 call app_lpm_mult_disable 
+05c0 68014687 fetch 2 ,mem_discovery_timeout 
+05c1 600146ac store 2 ,mem_mouse_discovery_timer 
+05c2 70016d06 jam 6 ,mem_connection_options 
+05c3 58000000 setarg 0 
+05c4 600146b0 store 2 ,mem_mouse_no_data_timer 
+05c5 600146ae store 2 ,mem_mouse_direct_timer 
+05c6 204005d8 call p_mouse_store_eeprom_enable 
+05c7 204043ca call mouse_bt_discovery_button_down_disable 
+05c8 6800cb4b fetch 1 ,mem_mouse_le_adv_start 
+05c9 245a05cc ncall p_check_51cmd_adv ,blank 
+05ca 204042c4 call mouse_start_discovery_norandom + 13 
+05cb 2020053c branch p_mouse_discovery_multi_led_blink 
 
 p_check_51cmd_adv:
-05ca 68034b41 fetch 6 ,mem_le_normal_lap 
-05cb 600344a0 store 6 ,mem_le_lap 
-05cc 204005ce call p_mouse_le_adv_data_update 
-05cd 20207df4 branch check_51cmd_adv 
+05cc 68034b41 fetch 6 ,mem_le_normal_lap 
+05cd 600344a0 store 6 ,mem_le_lap 
+05ce 204005d0 call p_mouse_le_adv_data_update 
+05cf 20207df4 branch check_51cmd_adv 
 
 p_mouse_le_adv_data_update:
-05ce 70436f1f jam 0x1f ,mem_le_adv_data_len 
-05cf 70438f1f jam 0x1f ,mem_le_scan_data_len 
-05d0 204005d6 call p_mouse_store_eeprom_enable 
-05d1 d8c04b1e arg mem_le_adv_swift_pair ,contr 
+05d0 70436f1f jam 0x1f ,mem_le_adv_data_len 
+05d1 70438f1f jam 0x1f ,mem_le_scan_data_len 
+05d2 204005d8 call p_mouse_store_eeprom_enable 
+05d3 d8c04b1e arg mem_le_adv_swift_pair ,contr 
 
 p_le_adv_data_update:
-05d2 d8a0437b arg mem_le_adv_data + 11 ,contw 
-05d3 df200013 arg 19 ,loopcnt 
-05d4 20407f01 call memcpy 
-05d5 202057b8 branch le_modified_name_adv 
+05d4 d8a0437b arg mem_le_adv_data + 11 ,contw 
+05d5 df200013 arg 19 ,loopcnt 
+05d6 20407f01 call memcpy 
+05d7 202057b8 branch le_modified_name_adv 
 
 p_mouse_store_eeprom_enable:
-05d6 d8e00007 arg mouse_store_eeprom_flag ,queue 
-05d7 202043ce branch mouse_enable_function_flag 
+05d8 d8e00007 arg mouse_store_eeprom_flag ,queue 
+05d9 202043ce branch mouse_enable_function_flag 
 
 p_mouse_check_fast_conn_adv_start:
-05d8 280ffe26 isolate1 mark_24g ,mark 
-05d9 2440853c ncall p_mouse_discovery_multi_led_blink ,true 
+05da 280ffe26 isolate1 mark_24g ,mark 
+05db 2440853c ncall p_mouse_discovery_multi_led_blink ,true 
 
 p_mouse_check_fast_conn_adv_start1:
-05da d8e00007 arg mouse_store_eeprom_flag ,queue 
-05db 204043d2 call mouse_disable_function_flag 
-05dc 2040036d call p_mouse_fast_conn_init 
-05dd 70436f00 jam 0 ,mem_le_adv_data_len 
-05de 70438f1f jam 0x1f ,mem_le_scan_data_len 
-05df 20207df4 branch check_51cmd_adv 
-
-p_le_fast_conn_adv_data_update:
-05e0 2040036d call p_mouse_fast_conn_init 
-05e1 d8a04370 arg mem_le_adv_data ,contw 
-05e2 df20000b arg 11 ,loopcnt 
-05e3 20407f01 call memcpy 
-05e4 202057b8 branch le_modified_name_adv 
+05dc 70436f00 jam 0 ,mem_le_adv_data_len 
+05dd 70438f00 jam 0 ,mem_le_scan_data_len 
+05de d8e00007 arg mouse_store_eeprom_flag ,queue 
+05df 204043d2 call mouse_disable_function_flag 
+05e0 2020036d branch p_mouse_fast_conn_init 
 
 p_mouse_stop_discovery:
-05e5 20400546 call p_mouse_discovey_led_blink_off 
-05e6 58000000 setarg 0 
-05e7 600146ac store 2 ,mem_mouse_discovery_timer 
-05e8 704b0c01 jam 1 ,mem_mouse_init_sensor_reset_flag 
-05e9 204003f4 call p_mouse_sensor_poweron 
-05ea 202042cb branch mouse_stop_discovery + 1 
+05e1 20400546 call p_mouse_discovey_led_blink_off 
+05e2 58000000 setarg 0 
+05e3 600146ac store 2 ,mem_mouse_discovery_timer 
+05e4 704b0c01 jam 1 ,mem_mouse_init_sensor_reset_flag 
+05e5 204003f4 call p_mouse_sensor_poweron 
+05e6 202042cb branch mouse_stop_discovery + 1 
 
 p_le_slave_match:
-05eb 6800c50f fetch 1 ,mem_le_md_count 
-05ec 1fe0fe01 pincrease 1 
-05ed 6000c50f store 1 ,mem_le_md_count 
-05ee c0065395 beq le_md_max_count ,le_slave_cont 
-05ef 204055aa call le_acknowledge 
-05f0 2040561e call le_prepare_tx 
-05f1 204006e0 call power_ctrl_start 
-05f2 2020538f branch le_slave_match + 7 
+05e7 6800c50f fetch 1 ,mem_le_md_count 
+05e8 1fe0fe01 pincrease 1 
+05e9 6000c50f store 1 ,mem_le_md_count 
+05ea c0065395 beq le_md_max_count ,le_slave_cont 
+05eb 204055aa call le_acknowledge 
+05ec 2040561e call le_prepare_tx 
+05ed 204006dc call power_ctrl_start 
+05ee 2020538f branch le_slave_match + 7 
 
 p_le_next_adv_channel:
-05f3 68008016 fetch 1 ,mem_le_ch_mapped 
-05f4 1fe0fe01 increase 1 ,pdata 
-05f5 60008016 store 1 ,mem_le_ch_mapped 
-05f6 c1940000 rtnne 40 
-05f7 70001625 jam 37 ,mem_le_ch_mapped 
-05f8 20600000 rtn 
+05ef 68008016 fetch 1 ,mem_le_ch_mapped 
+05f0 1fe0fe01 increase 1 ,pdata 
+05f1 60008016 store 1 ,mem_le_ch_mapped 
+05f2 c1940000 rtnne 40 
+05f3 70001625 jam 37 ,mem_le_ch_mapped 
+05f4 20600000 rtn 
 
 p_le_receive_skip:
-05f9 204029bb call save_rssi 
-05fa 2040001f call p_rssi_signal 
-05fb 202054a3 branch le_receive_skip + 2 
+05f5 204029bb call save_rssi 
+05f6 2040001f call p_rssi_signal 
+05f7 202054a3 branch le_receive_skip + 2 
 
 p_le_update_param:
-05fc 20400602 call p_mouse_le_conn_param_check 
-05fd 2020557d branch le_update_param + 8 
+05f8 204005fe call p_mouse_le_conn_param_check 
+05f9 2020557d branch le_update_param + 8 
 
 p_mouse_le_lpm_mult_reinit:
-05fe 6800c7c5 fetch 1 ,mem_lpm_mult_init 
-05ff 6000c172 store 1 ,mem_lpm_mult 
+05fa 6800c7c5 fetch 1 ,mem_lpm_mult_init 
+05fb 6000c172 store 1 ,mem_lpm_mult 
 
 p_mouse_le_conn_param_lpm_enable:
-0600 7047c400 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
-0601 20600000 rtn 
+05fc 7047c400 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+05fd 20600000 rtn 
 
 p_mouse_le_conn_param_check:
-0602 6800c3d6 fetch 1 ,mem_le_new_conninterval 
-0603 1fe67c0c sub pdata ,le_interval_15ms ,null 
-0604 24210471 nbranch p_mouse_le_conn_param_lpm_disable ,positive 
+05fe 6800c3d6 fetch 1 ,mem_le_new_conninterval 
+05ff 1fe67c0c sub pdata ,le_interval_15ms ,null 
+0600 24210471 nbranch p_mouse_le_conn_param_lpm_disable ,positive 
+0601 6800c3d8 fetch 1 ,mem_le_new_connslavelatency 
+0602 6808c7c5 fetcht 1 ,mem_lpm_mult_init 
+0603 98467c00 isub temp ,null 
+0604 202105fa branch p_mouse_le_lpm_mult_reinit ,positive 
 0605 6800c3d8 fetch 1 ,mem_le_new_connslavelatency 
-0606 6808c7c5 fetcht 1 ,mem_lpm_mult_init 
-0607 98467c00 isub temp ,null 
-0608 202105fe branch p_mouse_le_lpm_mult_reinit ,positive 
-0609 6800c3d8 fetch 1 ,mem_le_new_connslavelatency 
-060a 6000c172 store 1 ,mem_lpm_mult 
-060b 20200600 branch p_mouse_le_conn_param_lpm_enable 
+0606 6000c172 store 1 ,mem_lpm_mult 
+0607 202005fc branch p_mouse_le_conn_param_lpm_enable 
 
 p_le_update_channel_map:
-060c 6800843f fetch 1 ,mem_le_state 
-060d c4030000 rtnbit0 lestate_update_map 
-060e 20400611 call p_le_channel_map_overflow_check 
-060f 24740000 nrtn user 
-0610 202055a0 branch le_update_channel_map + 3 
+0608 6800843f fetch 1 ,mem_le_state 
+0609 c4030000 rtnbit0 lestate_update_map 
+060a 2040060d call p_le_channel_map_overflow_check 
+060b 24740000 nrtn user 
+060c 202055a0 branch le_update_channel_map + 3 
 
 p_le_channel_map_overflow_check:
-0611 78347c00 enable user 
-0612 6800845a fetch 1 ,mem_le_event_count + 1 
-0613 1ff1fe00 rshift4 pdata ,pdata 
-0614 c1878000 rtnne 0x0f 
-0615 68008460 fetch 1 ,mem_le_instant + 1 
-0616 1ff1fe00 rshift4 pdata ,pdata 
-0617 c1800000 rtnne 0x00 
-0618 20207fe9 branch disable_user 
+060d 78347c00 enable user 
+060e 6800845a fetch 1 ,mem_le_event_count + 1 
+060f 1ff1fe00 rshift4 pdata ,pdata 
+0610 c1878000 rtnne 0x0f 
+0611 68008460 fetch 1 ,mem_le_instant + 1 
+0612 1ff1fe00 rshift4 pdata ,pdata 
+0613 c1800000 rtnne 0x00 
+0614 20207fe9 branch disable_user 
 
 p_le_prepare_tx:
-0619 68008456 fetch 1 ,mem_le_arq 
-061a c282862d bbit1 wak ,p_le_prepare_tx_wak 
-061b 204006d2 call power_ctrl_pac_succ_incrs 
-061c 6800c78e fetch 1 ,mem_empty_count 
-061d 243a0623 nbranch p_le_send_empyt ,blank 
-061e 6800843f fetch 1 ,mem_le_state 
-061f c3020627 bbit0 lestate_encryption ,p_le_tx_4 
-0620 680082da fetch 1 ,mem_le_rxbuf + 1 
-0621 203a0627 branch p_le_tx_4 ,blank 
-0622 20205664 branch le_send_empty 
+0615 68008456 fetch 1 ,mem_le_arq 
+0616 c2828629 bbit1 wak ,p_le_prepare_tx_wak 
+0617 204006ce call power_ctrl_pac_succ_incrs 
+0618 6800c78e fetch 1 ,mem_empty_count 
+0619 243a061f nbranch p_le_send_empyt ,blank 
+061a 6800843f fetch 1 ,mem_le_state 
+061b c3020623 bbit0 lestate_encryption ,p_le_tx_4 
+061c 680082da fetch 1 ,mem_le_rxbuf + 1 
+061d 203a0623 branch p_le_tx_4 ,blank 
+061e 20205664 branch le_send_empty 
 
 p_le_send_empyt:
-0623 6800c78e fetch 1 ,mem_empty_count 
-0624 1fe0ffff increase -1 ,pdata 
-0625 6000c78e store 1 ,mem_empty_count 
-0626 20205664 branch le_send_empty 
+061f 6800c78e fetch 1 ,mem_empty_count 
+0620 1fe0ffff increase -1 ,pdata 
+0621 6000c78e store 1 ,mem_empty_count 
+0622 20205664 branch le_send_empty 
 
 p_le_tx_4:
-0627 6800c4c4 fetch 1 ,mem_le_pairing_state 
-0628 c082862a bne flag_le_pairing_after_auth ,p_in_le_tx_4 
-0629 70478e03 jam 3 ,mem_empty_count 
+0623 6800c4c4 fetch 1 ,mem_le_pairing_state 
+0624 c0828626 bne flag_le_pairing_after_auth ,p_in_le_tx_4 
+0625 70478e03 jam 3 ,mem_empty_count 
 
 p_in_le_tx_4:
-062a 20405892 call le_fifo_check_nearly_full 
-062b 205a0405 call p_mouse_data_pull ,blank 
-062c 20205622 branch le_prepare_tx + 4 
+0626 20405892 call le_fifo_check_nearly_full 
+0627 205a0405 call p_mouse_data_pull ,blank 
+0628 20205622 branch le_prepare_tx + 4 
 
 p_le_prepare_tx_wak:
-062d 2040062f call p_le_check_tx_retransmit_setmd 
-062e 2020063b branch p_le_power_ctrl_pac_succ_decrs 
+0629 2040062b call p_le_check_tx_retransmit_setmd 
+062a 20200637 branch p_le_power_ctrl_pac_succ_decrs 
 
 p_le_check_tx_retransmit_setmd:
-062f 6800c6c5 fetch 1 ,mem_le_connect_status_flag 
-0630 1fe17e03 and pdata ,0x03 ,pdata 
-0631 c1818000 rtnne 0x03 
-0632 6800c7c1 fetch 1 ,mem_mouse_data_queue_num 
-0633 207a0000 rtn blank 
-0634 6800c3dd fetch 1 ,mem_le_txlen 
-0635 207a0000 rtn blank 
-0636 6800c3dc fetch 1 ,mem_le_txheader 
-0637 79207e04 set1 md ,pdata 
-0638 6000c3dc store 1 ,mem_le_txheader 
-0639 20405650 call le_set_md 
-063a 20600000 rtn 
+062b 6800c6c5 fetch 1 ,mem_le_connect_status_flag 
+062c 1fe17e03 and pdata ,0x03 ,pdata 
+062d c1818000 rtnne 0x03 
+062e 6800c7c1 fetch 1 ,mem_mouse_data_queue_num 
+062f 207a0000 rtn blank 
+0630 6800c3dd fetch 1 ,mem_le_txlen 
+0631 207a0000 rtn blank 
+0632 6800c3dc fetch 1 ,mem_le_txheader 
+0633 79207e04 set1 md ,pdata 
+0634 6000c3dc store 1 ,mem_le_txheader 
+0635 20405650 call le_set_md 
+0636 20600000 rtn 
 
 p_le_power_ctrl_pac_succ_decrs:
-063b 202006d6 branch power_ctrl_pac_succ_decrs 
+0637 202006d2 branch power_ctrl_pac_succ_decrs 
 
 p_mouse_le_reconn_write_enable_timer_reinit:
-063c 6800c79f fetch 1 ,mem_mouse_le_reconnect_flag 
-063d 207a0000 rtn blank 
-063e 6800c6c5 fetch 1 ,mem_le_connect_status_flag 
-063f 1fe17e03 and pdata ,0x03 ,pdata 
-0640 c1018000 rtneq 0x03 
-0641 7046c60a jam 10 ,mem_le_start_encrypt_timer 
-0642 20600000 rtn 
+0638 6800c79f fetch 1 ,mem_mouse_le_reconnect_flag 
+0639 207a0000 rtn blank 
+063a 6800c6c5 fetch 1 ,mem_le_connect_status_flag 
+063b 1fe17e03 and pdata ,0x03 ,pdata 
+063c c1018000 rtneq 0x03 
+063d 7046c60a jam 10 ,mem_le_start_encrypt_timer 
+063e 20600000 rtn 
 
 p_le_parse:
-0643 c6078000 rtnmark1 mark_old_packet 
-0644 20405890 call le_fifo_check_full 
-0645 247a0000 nrtn blank 
-0646 680082d9 fetch 1 ,mem_le_rxbuf 
-0647 1fe17e03 and pdata ,0x3 ,pdata 
-0648 6000c50c store 1 ,mem_le_packet_llid 
-0649 e8c08000 ifetch 1 ,contr 
-064a 1fe17e1f and pdata ,0x1f ,pdata 
-064b 6000c50b store 1 ,mem_le_packet_size 
-064c 207a0000 rtn blank 
-064d 18c27e00 copy contr ,pdata 
-064e 6001450d store 2 ,mem_le_payload_ptr 
-064f 6800c50c fetch 1 ,mem_le_packet_llid 
-0650 c0018652 beq llid_le_ll ,p_le_parse_ll 
-0651 2020568d branch le_parse_l2cap 
+063f c6078000 rtnmark1 mark_old_packet 
+0640 20405890 call le_fifo_check_full 
+0641 247a0000 nrtn blank 
+0642 680082d9 fetch 1 ,mem_le_rxbuf 
+0643 1fe17e03 and pdata ,0x3 ,pdata 
+0644 6000c50c store 1 ,mem_le_packet_llid 
+0645 e8c08000 ifetch 1 ,contr 
+0646 1fe17e1f and pdata ,0x1f ,pdata 
+0647 6000c50b store 1 ,mem_le_packet_size 
+0648 207a0000 rtn blank 
+0649 18c27e00 copy contr ,pdata 
+064a 6001450d store 2 ,mem_le_payload_ptr 
+064b 6800c50c fetch 1 ,mem_le_packet_llid 
+064c c001864e beq llid_le_ll ,p_le_parse_ll 
+064d 2020568d branch le_parse_l2cap 
 
 p_le_parse_ll:
-0652 680082db fetch 1 ,mem_le_rxbuf + 2 
-0653 c0000656 beq ll_connection_update_req ,p_le_parse_connection_update_req 
-0654 c000865d beq ll_channel_map_req ,p_le_parse_channel_map_req 
-0655 20205c65 branch le_parse_ll + 1 
+064e 680082db fetch 1 ,mem_le_rxbuf + 2 
+064f c0000652 beq ll_connection_update_req ,p_le_parse_connection_update_req 
+0650 c0008659 beq ll_channel_map_req ,p_le_parse_channel_map_req 
+0651 20205c65 branch le_parse_ll + 1 
 
 p_le_parse_connection_update_req:
-0656 20405c7b call le_parse_connection_update_req 
-0657 6800cb53 fetch 1 ,mem_mouse_le_updata_not_accepted_flag 
-0658 207a0000 rtn blank 
+0652 20405c7b call le_parse_connection_update_req 
+0653 6800cb53 fetch 1 ,mem_mouse_le_updata_not_accepted_flag 
+0654 207a0000 rtn blank 
 
 p_mouse_le_conn_param_update_rsp_not_accepted_mult_reset:
-0659 6800c3d8 fetch 1 ,mem_le_new_connslavelatency 
-065a 6000c172 store 1 ,mem_lpm_mult 
-065b 6000c7c5 store 1 ,mem_lpm_mult_init 
-065c 20600000 rtn 
+0655 6800c3d8 fetch 1 ,mem_le_new_connslavelatency 
+0656 6000c172 store 1 ,mem_lpm_mult 
+0657 6000c7c5 store 1 ,mem_lpm_mult_init 
+0658 20600000 rtn 
 
 p_le_parse_channel_map_req:
-065d e8c28000 ifetch 5 ,contr 
-065e 6002c3ce store 5 ,mem_le_new_map 
-065f e8c10000 ifetch 2 ,contr 
-0660 6001045f store 2 ,mem_le_instant 
-0661 20205c8a branch le_parse_channel_map_req + 7 
+0659 e8c28000 ifetch 5 ,contr 
+065a 6002c3ce store 5 ,mem_le_new_map 
+065b e8c10000 ifetch 2 ,contr 
+065c 6001045f store 2 ,mem_le_instant 
+065d 20205c8a branch le_parse_channel_map_req + 7 
 
 p_le_parse_l2cap:
-0662 e8c10000 ifetch 2 ,contr 
-0663 c0020666 beq le_l2cap_cid_att ,p_le_parse_att 
-0664 c0030693 beq le_l2cap_cid_smp ,p_le_parse_smp 
-0665 20205698 branch le_parse_l2cap + 11 
+065e e8c10000 ifetch 2 ,contr 
+065f c0020662 beq le_l2cap_cid_att ,p_le_parse_att 
+0660 c003068f beq le_l2cap_cid_smp ,p_le_parse_smp 
+0661 20205698 branch le_parse_l2cap + 11 
 
 p_le_parse_att:
-0666 20407ea5 call store_contr 
-0667 2040063c call p_mouse_le_reconn_write_enable_timer_reinit 
-0668 20407e9f call get_contr 
-0669 e8c18000 ifetch 3 ,contr 
-066a 60018477 store 3 ,mem_le_att_opcode 
-066b c0080675 beq attop_read_by_group_type_request ,p_le_parse_att_read_by_group_type_request 
-066c 1fec8400 rshift8 pdata ,temp 
-066d 18467c24 sub temp ,0x24 ,null 
-066e 20210683 branch p_le_parse_att1 ,positive 
-066f d84047c6 arg mem_mouse_le_uuid_sup ,temp 
-0670 600944bc storet 2 ,mem_ui_le_uuid_table 
-0671 204058ad call le_parse_att + 2 
-0672 58008e7a setarg 0x8e7a 
-0673 600144bc store 2 ,mem_ui_le_uuid_table 
-0674 20600000 rtn 
+0662 20407ea5 call store_contr 
+0663 20400638 call p_mouse_le_reconn_write_enable_timer_reinit 
+0664 20407e9f call get_contr 
+0665 e8c18000 ifetch 3 ,contr 
+0666 60018477 store 3 ,mem_le_att_opcode 
+0667 c0080671 beq attop_read_by_group_type_request ,p_le_parse_att_read_by_group_type_request 
+0668 1fec8400 rshift8 pdata ,temp 
+0669 18467c24 sub temp ,0x24 ,null 
+066a 2021067f branch p_le_parse_att1 ,positive 
+066b d84047c6 arg mem_mouse_le_uuid_sup ,temp 
+066c 600944bc storet 2 ,mem_ui_le_uuid_table 
+066d 204058ad call le_parse_att + 2 
+066e 58008e7a setarg 0x8e7a 
+066f 600144bc store 2 ,mem_ui_le_uuid_table 
+0670 20600000 rtn 
 
 p_le_parse_att_read_by_group_type_request:
-0675 204059fa call le_parse_att_read_by_group_type_request 
-0676 20405879 call le_fifo_get_last_tx_ptr 
-0677 18c08c07 increase 7 ,contr 
-0678 e8c08000 ifetch 1 ,contr 
-0679 c1888000 rtnne attop_read_by_group_type_response 
-067a 18c08c05 increase 5 ,contr 
-067b e8c10000 ifetch 2 ,contr 
-067c d8401812 arg uuid_service_hids ,temp 
-067d 98467c00 isub temp ,null 
-067e 24628000 nrtn zero 
-067f 18c08dfc increase -4 ,contr 
-0680 5800002b setarg 0x2b 
-0681 e0c10000 istore 2 ,contr 
-0682 20600000 rtn 
+0671 204059fa call le_parse_att_read_by_group_type_request 
+0672 20405879 call le_fifo_get_last_tx_ptr 
+0673 18c08c07 increase 7 ,contr 
+0674 e8c08000 ifetch 1 ,contr 
+0675 c1888000 rtnne attop_read_by_group_type_response 
+0676 18c08c05 increase 5 ,contr 
+0677 e8c10000 ifetch 2 ,contr 
+0678 d8401812 arg uuid_service_hids ,temp 
+0679 98467c00 isub temp ,null 
+067a 24628000 nrtn zero 
+067b 18c08dfc increase -4 ,contr 
+067c 5800002b setarg 0x2b 
+067d e0c10000 istore 2 ,contr 
+067e 20600000 rtn 
 
 p_le_parse_att1:
-0683 c0050685 beq attop_read_request ,p_le_parse_att_read_request 
-0684 202058ad branch le_parse_att + 2 
+067f c0050681 beq attop_read_request ,p_le_parse_att_read_request 
+0680 202058ad branch le_parse_att + 2 
 
 p_le_parse_att_read_request:
-0685 68090478 fetcht 2 ,mem_le_att_handle 
-0686 6800c4e9 fetch 1 ,mem_le_configuration 
-0687 c281868c bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
+0681 68090478 fetcht 2 ,mem_le_att_handle 
+0682 6800c4e9 fetch 1 ,mem_le_configuration 
+0683 c2818688 bbit1 bit_ble_read_auth ,p_le_send_att_read_response_check_auth 
 
 p_le_send_att_read_response:
-0688 68010478 fetch 2 ,mem_le_att_handle 
-0689 c009da76 beq 0x13 ,le_send_att_error_response_notfound 
-068a 68090478 fetcht 2 ,mem_le_att_handle 
-068b 202059bf branch le_send_att_read_response 
+0684 68010478 fetch 2 ,mem_le_att_handle 
+0685 c009da76 beq 0x13 ,le_send_att_error_response_notfound 
+0686 68090478 fetcht 2 ,mem_le_att_handle 
+0687 202059bf branch le_send_att_read_response 
 
 p_le_send_att_read_response_check_auth:
-068c 680144fa fetch 2 ,mem_le_pairing_handle 
-068d 98467c00 isub temp ,null 
-068e 24228688 nbranch p_le_send_att_read_response ,zero 
+0688 680144fa fetch 2 ,mem_le_pairing_handle 
+0689 98467c00 isub temp ,null 
+068a 24228684 nbranch p_le_send_att_read_response ,zero 
 
 p_le_send_att_read_response_error_insufficient_auth:
-068f 20405a42 call le_check_encrypt_state 
-0690 24340688 nbranch p_le_send_att_read_response ,user 
-0691 70047a05 jam att_err_insufficient_authentication ,mem_le_err_code 
-0692 20205a77 branch le_send_att_error_response 
+068b 20405a42 call le_check_encrypt_state 
+068c 24340684 nbranch p_le_send_att_read_response ,user 
+068d 70047a05 jam att_err_insufficient_authentication ,mem_le_err_code 
+068e 20205a77 branch le_send_att_error_response 
 
 p_le_parse_smp:
-0693 e8c08000 ifetch 1 ,contr 
-0694 c0008697 beq smp_pairing_request ,p_le_parse_smp_pairing_request 
-0695 c0028699 beq smp_pairing_failed ,p_le_parse_smp_pairing_failed 
-0696 20205af5 branch le_parse_smp + 1 
+068f e8c08000 ifetch 1 ,contr 
+0690 c0008693 beq smp_pairing_request ,p_le_parse_smp_pairing_request 
+0691 c0028695 beq smp_pairing_failed ,p_le_parse_smp_pairing_failed 
+0692 20205af5 branch le_parse_smp + 1 
 
 p_le_parse_smp_pairing_request:
-0697 704b3d01 jam 1 ,mem_le_send_security_request_flag 
-0698 20205b09 branch le_parse_smp_pairing_request 
+0693 704b3d01 jam 1 ,mem_le_send_security_request_flag 
+0694 20205b09 branch le_parse_smp_pairing_request 
 
 p_le_parse_smp_pairing_failed:
-0699 20405b5a call le_parse_smp_pairing_failed 
-069a 6800843f fetch 1 ,mem_le_state 
-069b 793ffe05 set0 lestate_update_param ,pdata 
-069c 6000843f store 1 ,mem_le_state 
-069d 20205c8e branch le_parse_terminate_ind 
+0695 20405b5a call le_parse_smp_pairing_failed 
+0696 6800843f fetch 1 ,mem_le_state 
+0697 793ffe05 set0 lestate_update_param ,pdata 
+0698 6000843f store 1 ,mem_le_state 
+0699 20205c8e branch le_parse_terminate_ind 
 
 p_le_adv_not_match:
-069e 68008016 fetch 1 ,mem_le_ch_mapped 
-069f c093d6f2 bne 39 ,le_adv_loop 
-06a0 204006a4 call p_le_adv_random_delay 
-06a1 d8e00000 arg le_adv_interval_timer ,queue 
-06a2 68014482 fetch 2 ,mem_le_adv_interval 
-06a3 20207f08 branch timer_init 
+069a 68008016 fetch 1 ,mem_le_ch_mapped 
+069b c093d6f2 bne 39 ,le_adv_loop 
+069c 204006a0 call p_le_adv_random_delay 
+069d d8e00000 arg le_adv_interval_timer ,queue 
+069e 68014482 fetch 2 ,mem_le_adv_interval 
+069f 20207f08 branch timer_init 
 
 p_le_adv_random_delay:
-06a4 180a7e00 random pdata 
-06a5 d84001ff arg 0x1ff ,temp 
-06a6 98417e00 iand temp ,pdata 
-06a7 1fe0fefa add pdata ,250 ,pdata 
-06a8 20203cbe branch delay 
+06a0 180a7e00 random pdata 
+06a1 d84001ff arg 0x1ff ,temp 
+06a2 98417e00 iand temp ,pdata 
+06a3 1fe0fefa add pdata ,250 ,pdata 
+06a4 20203cbe branch delay 
 
 p_le_lpm_setmult:
-06a9 7855fc00 disable wake 
-06aa 203706ac branch p_le_lpm_set_mult_attempt ,attempt 
-06ab 2436d806 nbranch le_lpm_lost ,match 
+06a5 7855fc00 disable wake 
+06a6 203706a8 branch p_le_lpm_set_mult_attempt ,attempt 
+06a7 2436d806 nbranch le_lpm_lost ,match 
 
 p_le_lpm_set_mult_attempt:
-06ac 20402bcb call lpm_match 
-06ad 680140c1 fetch 2 ,mem_rx_window_sniff 
-06ae 6001044d store 2 ,mem_le_receive_window 
-06af 6800c6c5 fetch 1 ,mem_le_connect_status_flag 
-06b0 2fe00603 compare 3 ,pdata ,3 
-06b1 2420abde nbranch lpm_mult_short ,true 
-06b2 202057fb branch le_lpm_set_mult_attempt + 3 
+06a8 20402bcb call lpm_match 
+06a9 680140c1 fetch 2 ,mem_rx_window_sniff 
+06aa 6001044d store 2 ,mem_le_receive_window 
+06ab 6800c6c5 fetch 1 ,mem_le_connect_status_flag 
+06ac 2fe00603 compare 3 ,pdata ,3 
+06ad 2420abde nbranch lpm_mult_short ,true 
+06ae 202057fb branch le_lpm_set_mult_attempt + 3 
 
 p_le_mouse_bb_event_connect_complete:
-06b3 6800c79f fetch 1 ,mem_mouse_le_reconnect_flag 
-06b4 247a0000 nrtn blank 
-06b5 68008478 fetch 1 ,mem_le_att_handle 
-06b6 1fe67e1a sub pdata ,26 ,pdata 
-06b7 24628000 nrtn zero 
-06b8 7046c600 jam 0 ,mem_le_start_encrypt_timer 
-06b9 20203d60 branch mouse_le_write_enable 
+06af 6800c79f fetch 1 ,mem_mouse_le_reconnect_flag 
+06b0 247a0000 nrtn blank 
+06b1 68008478 fetch 1 ,mem_le_att_handle 
+06b2 1fe67e1a sub pdata ,26 ,pdata 
+06b3 24628000 nrtn zero 
+06b4 7046c600 jam 0 ,mem_le_start_encrypt_timer 
+06b5 20203d60 branch mouse_le_write_enable 
 
 p_check_51cmd_once_continue:
-06ba 204062bc call lmo_fifo_check 
-06bb 243a7ddb nbranch check_51cmd_restore ,blank 
-06bc 68008a99 fetch 1 ,mem_fifo_temp 
-06bd c584fdd6 bmark0 mark_context ,check_51cmd_check_idle 
-06be c00906c0 beq bt_cmd_le_update_conn ,p_check_51cmd_ble_update_connect_param 
-06bf 20207dca branch check_51cmd_once_continue + 2 
+06b6 204062bc call lmo_fifo_check 
+06b7 243a7ddb nbranch check_51cmd_restore ,blank 
+06b8 68008a99 fetch 1 ,mem_fifo_temp 
+06b9 c584fdd6 bmark0 mark_context ,check_51cmd_check_idle 
+06ba c00906bc beq bt_cmd_le_update_conn ,p_check_51cmd_ble_update_connect_param 
+06bb 20207dca branch check_51cmd_once_continue + 2 
 
 p_check_51cmd_ble_update_connect_param:
-06c0 20405890 call le_fifo_check_full 
-06c1 247a0000 nrtn blank 
-06c2 20205abf branch le_l2cap_tx_update_req 
+06bc 20405890 call le_fifo_check_full 
+06bd 247a0000 nrtn blank 
+06be 20205abf branch le_l2cap_tx_update_req 
 
 p_twspi_reset:
-06c3 68108077 hfetch 1 ,core_gpio_out3 
-06c4 1fe17efd and_into 0xfd ,pdata 
-06c5 60108077 hstore 1 ,core_gpio_out3 
-06c6 68188073 hfetcht 1 ,core_gpio_oe3 
-06c7 18418402 or_into 0x2 ,temp 
-06c8 60188073 hstoret 1 ,core_gpio_oe3 
-06c9 204063ee call twspi_disable 
-06ca 184104fd and_into 0xfd ,temp 
-06cb 2000000d nop 13 
-06cc 204063f2 call twspi_enable 
-06cd 60188073 hstoret 1 ,core_gpio_oe3 
-06ce 20600000 rtn 
+06bf 68108077 hfetch 1 ,core_gpio_out3 
+06c0 1fe17efd and_into 0xfd ,pdata 
+06c1 60108077 hstore 1 ,core_gpio_out3 
+06c2 68188073 hfetcht 1 ,core_gpio_oe3 
+06c3 18418402 or_into 0x2 ,temp 
+06c4 60188073 hstoret 1 ,core_gpio_oe3 
+06c5 204063ee call twspi_disable 
+06c6 184104fd and_into 0xfd ,temp 
+06c7 2000000d nop 13 
+06c8 204063f2 call twspi_enable 
+06c9 60188073 hstoret 1 ,core_gpio_oe3 
+06ca 20600000 rtn 
 
 power_ctrl_pac_succ_cnt_init:
-06cf 704d1901 jam 1 ,mem_power_ctrl_level 
-06d0 704d1600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
-06d1 20600000 rtn 
+06cb 704d1901 jam 1 ,mem_power_ctrl_level 
+06cc 704d1600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+06cd 20600000 rtn 
 
 power_ctrl_pac_succ_incrs:
-06d2 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-06d3 1fe0fe01 increase 1 ,pdata 
-06d4 6000cd16 store 1 ,mem_power_ctrl_pac_succ_cnt 
-06d5 20600000 rtn 
+06ce 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06cf 1fe0fe01 increase 1 ,pdata 
+06d0 6000cd16 store 1 ,mem_power_ctrl_pac_succ_cnt 
+06d1 20600000 rtn 
 
 power_ctrl_pac_succ_decrs:
-06d6 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-06d7 1fe67c02 sub pdata ,2 ,null 
-06d8 244106de ncall power_ctrl_pac_succ_cnt_reinit ,positive 
-06d9 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-06da c1000000 rtneq 0 
-06db 1fe0ffff increase -1 ,pdata 
-06dc 6000cd16 store 1 ,mem_power_ctrl_pac_succ_cnt 
-06dd 20600000 rtn 
+06d2 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06d3 1fe67c02 sub pdata ,2 ,null 
+06d4 244106da ncall power_ctrl_pac_succ_cnt_reinit ,positive 
+06d5 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06d6 c1000000 rtneq 0 
+06d7 1fe0ffff increase -1 ,pdata 
+06d8 6000cd16 store 1 ,mem_power_ctrl_pac_succ_cnt 
+06d9 20600000 rtn 
 
 power_ctrl_pac_succ_cnt_reinit:
-06de 704d1603 jam 3 ,mem_power_ctrl_pac_succ_cnt 
-06df 20600000 rtn 
+06da 704d1603 jam 3 ,mem_power_ctrl_pac_succ_cnt 
+06db 20600000 rtn 
 
 power_ctrl_start:
-06e0 68014682 fetch 2 ,mem_ui_state_map 
-06e1 c3858000 rtnbit1 ui_state_ble_adv 
-06e2 da204c9f arg mem_rssi_signal_buf ,rega 
-06e3 204002e5 call p_rssi_average 
-06e4 6008cd17 storet 1 ,mem_rssi_avg_received 
-06e5 58000082 setarg rssi_dis_max_24g 
-06e6 c51306e8 bmark1 mark_24g ,power_ctrl_start_next 
-06e7 58000080 setarg rssi_dis_max_ble 
+06dc 68014682 fetch 2 ,mem_ui_state_map 
+06dd c3858000 rtnbit1 ui_state_ble_adv 
+06de da204c9f arg mem_rssi_signal_buf ,rega 
+06df 204002e5 call p_rssi_average 
+06e0 6008cd17 storet 1 ,mem_rssi_avg_received 
+06e1 58000082 setarg rssi_dis_max_24g 
+06e2 c51306e4 bmark1 mark_24g ,power_ctrl_start_next 
+06e3 58000080 setarg rssi_dis_max_ble 
 
 power_ctrl_start_next:
-06e8 98467c00 isub temp ,null 
-06e9 24210700 nbranch power_ctrl_txpower_incrs_force ,positive 
-06ea 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-06eb 1fe67c02 sub pdata ,2 ,null 
-06ec 242106f0 nbranch power_ctrl_txpower_decrs_check ,positive 
-06ed 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-06ee c0000701 beq 0 ,power_ctrl_txpower_incrs 
-06ef 20600000 rtn 
+06e4 98467c00 isub temp ,null 
+06e5 242106fc nbranch power_ctrl_txpower_incrs_force ,positive 
+06e6 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06e7 1fe67c02 sub pdata ,2 ,null 
+06e8 242106ec nbranch power_ctrl_txpower_decrs_check ,positive 
+06e9 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06ea c00006fd beq 0 ,power_ctrl_txpower_incrs 
+06eb 20600000 rtn 
 
 power_ctrl_txpower_decrs_check:
-06f0 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
-06f1 c1990000 rtnne 50 
-06f2 704d1600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+06ec 6800cd16 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+06ed c1990000 rtnne 50 
+06ee 704d1600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 power_ctrl_txpower_decrs:
-06f3 6808cd17 fetcht 1 ,mem_rssi_avg_received 
-06f4 58000077 setarg rssi_dis_min_24g 
-06f5 c51306f7 bmark1 mark_24g ,power_ctrl_txpower_decrs_next 
-06f6 58000075 setarg rssi_dis_min_ble 
+06ef 6808cd17 fetcht 1 ,mem_rssi_avg_received 
+06f0 58000077 setarg rssi_dis_min_24g 
+06f1 c51306f3 bmark1 mark_24g ,power_ctrl_txpower_decrs_next 
+06f2 58000075 setarg rssi_dis_min_ble 
 
 power_ctrl_txpower_decrs_next:
-06f7 98467c00 isub temp ,null 
-06f8 24610000 nrtn positive 
-06f9 6800cd19 fetch 1 ,mem_power_ctrl_level 
-06fa c0000708 beq 0 ,power_ctrl_decrs_level0 
-06fb 1fe0ffff increase -1 ,pdata 
-06fc 6000cd19 store 1 ,mem_power_ctrl_level 
-06fd c0000708 beq 0 ,power_ctrl_decrs_level0 
+06f3 98467c00 isub temp ,null 
+06f4 24610000 nrtn positive 
+06f5 6800cd19 fetch 1 ,mem_power_ctrl_level 
+06f6 c0000704 beq 0 ,power_ctrl_decrs_level0 
+06f7 1fe0ffff increase -1 ,pdata 
+06f8 6000cd19 store 1 ,mem_power_ctrl_level 
+06f9 c0000704 beq 0 ,power_ctrl_decrs_level0 
 
 power_ctrl_decrs_level1:
 
 power_ctrl_incrs_level1:
-06fe 7041de00 jam tx_power_0db ,mem_tx_power 
-06ff 20600000 rtn 
+06fa 7041de00 jam tx_power_0db ,mem_tx_power 
+06fb 20600000 rtn 
 
 power_ctrl_txpower_incrs_force:
-0700 704d1600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+06fc 704d1600 jam 0 ,mem_power_ctrl_pac_succ_cnt 
 
 power_ctrl_txpower_incrs:
-0701 6800cd19 fetch 1 ,mem_power_ctrl_level 
-0702 c0010706 beq 2 ,power_ctrl_incrs_level2 
-0703 1fe0fe01 increase 1 ,pdata 
-0704 6000cd19 store 1 ,mem_power_ctrl_level 
-0705 c00086fe beq 1 ,power_ctrl_incrs_level1 
+06fd 6800cd19 fetch 1 ,mem_power_ctrl_level 
+06fe c0010702 beq 2 ,power_ctrl_incrs_level2 
+06ff 1fe0fe01 increase 1 ,pdata 
+0700 6000cd19 store 1 ,mem_power_ctrl_level 
+0701 c00086fa beq 1 ,power_ctrl_incrs_level1 
 
 power_ctrl_incrs_level2:
-0706 7041de02 jam tx_power_5db ,mem_tx_power 
-0707 20600000 rtn 
+0702 7041de02 jam tx_power_5db ,mem_tx_power 
+0703 20600000 rtn 
 
 power_ctrl_decrs_level0:
-0708 7041de04 jam tx_power_f5db ,mem_tx_power 
-0709 20600000 rtn 
+0704 7041de04 jam tx_power_f5db ,mem_tx_power 
+0705 20600000 rtn 
 
 p_set_freq_tx:
-070a 60088017 storet 1 ,mem_last_freq 
-070b 1840a200 add temp ,0 ,rega 
-070c 20402981 call rf_write_freq 
-070d 58000500 setarg param_pll_setup 
-070e 20402a8f call sleep 
+0706 60088017 storet 1 ,mem_last_freq 
+0707 1840a200 add temp ,0 ,rega 
+0708 20402981 call rf_write_freq 
+0709 58000500 setarg param_pll_setup 
+070a 20402a8f call sleep 
 
 p_rf_tx_enable:
-070f 70890601 jam 0x1 ,rfen_adc 
-0710 7089003c jam 0x3c ,rfen_rx 
-0711 708901e0 jam 0xe0 ,rfen_tx 
-0712 2000000a nop 10 
-0713 70890201 jam 0x01 ,rfen_mdm 
-0714 7089023d jam 0x3d ,rfen_mdm 
-0715 2000000a nop 10 
-0716 708903b7 jam 0xb7 ,rfen_sn 
-0717 2000000a nop 10 
-0718 7089027d jam 0x7d ,rfen_mdm 
-0719 6800c1de fetch 1 ,mem_tx_power 
-071a c0010722 beq tx_power_5db ,p_set_tx_power_5db 
-071b c002072a beq tx_power_f5db ,p_set_tx_power_f5db 
-071c c0100734 beq tx_power_pair ,p_set_tx_power_pair 
+070b 70890601 jam 0x1 ,rfen_adc 
+070c 7089003c jam 0x3c ,rfen_rx 
+070d 708901e0 jam 0xe0 ,rfen_tx 
+070e 2000000a nop 10 
+070f 70890201 jam 0x01 ,rfen_mdm 
+0710 7089023d jam 0x3d ,rfen_mdm 
+0711 2000000a nop 10 
+0712 708903b7 jam 0xb7 ,rfen_sn 
+0713 2000000a nop 10 
+0714 7089027d jam 0x7d ,rfen_mdm 
+0715 6800c1de fetch 1 ,mem_tx_power 
+0716 c001071e beq tx_power_5db ,p_set_tx_power_5db 
+0717 c0020726 beq tx_power_f5db ,p_set_tx_power_f5db 
+0718 c0100730 beq tx_power_pair ,p_set_tx_power_pair 
 
 p_set_tx_power_0db:
-071d 2040072f call p_rx_low_sens 
-071e 708955d0 jam 0xd0 ,0x8955 
-071f 708956e0 jam 0xe0 ,0x8956 
-0720 7089586c jam 0x6c ,0x8958 
-0721 2020294b branch set_tx_power_0db 
+0719 2040072b call p_rx_low_sens 
+071a 708955d0 jam 0xd0 ,0x8955 
+071b 708956e0 jam 0xe0 ,0x8956 
+071c 7089586c jam 0x6c ,0x8958 
+071d 2020294b branch set_tx_power_0db 
 
 p_set_tx_power_5db:
-0722 70894cfb jam 0xfb ,0x894c 
-0723 70894def jam 0xef ,0x894d 
-0724 70894eec jam 0xec ,0x894e 
-0725 70894f5e jam 0x5e ,0x894f 
-0726 708955d0 jam 0xd0 ,0x8955 
-0727 708956e0 jam 0xe0 ,0x8956 
-0728 7089583c jam 0x3c ,0x8958 
-0729 20202953 branch set_tx_power_5db 
+071e 70894cfb jam 0xfb ,0x894c 
+071f 70894def jam 0xef ,0x894d 
+0720 70894eec jam 0xec ,0x894e 
+0721 70894f5e jam 0x5e ,0x894f 
+0722 708955d0 jam 0xd0 ,0x8955 
+0723 708956e0 jam 0xe0 ,0x8956 
+0724 7089583c jam 0x3c ,0x8958 
+0725 20202953 branch set_tx_power_5db 
 
 p_set_tx_power_f5db:
-072a 2040072f call p_rx_low_sens 
-072b 708955d0 jam 0xd0 ,0x8955 
-072c 708956c0 jam 0xc0 ,0x8956 
-072d 7089586c jam 0x6c ,0x8958 
-072e 2020295b branch set_tx_power_f5db 
+0726 2040072b call p_rx_low_sens 
+0727 708955d0 jam 0xd0 ,0x8955 
+0728 708956c0 jam 0xc0 ,0x8956 
+0729 7089586c jam 0x6c ,0x8958 
+072a 2020295b branch set_tx_power_f5db 
 
 p_rx_low_sens:
-072f 70894c5b jam 0x5b ,0x894c 
-0730 70894d96 jam 0x96 ,0x894d 
-0731 70894e2c jam 0x2c ,0x894e 
-0732 70894f46 jam 0x46 ,0x894f 
-0733 20600000 rtn 
+072b 70894c5b jam 0x5b ,0x894c 
+072c 70894d96 jam 0x96 ,0x894d 
+072d 70894e2c jam 0x2c ,0x894e 
+072e 70894f46 jam 0x46 ,0x894f 
+072f 20600000 rtn 
 
 p_set_tx_power_pair:
-0734 708956c2 jam 0xc2 ,0x8956 
-0735 708955d0 jam 0xd0 ,0x8955 
-0736 20600000 rtn 
+0730 708956c2 jam 0xc2 ,0x8956 
+0731 708955d0 jam 0xd0 ,0x8955 
+0732 20600000 rtn 
 
 p_shutdown_radio:
-0737 18002a08 force 8 ,radio_ctrl 
-0738 202028fa branch shutdown_radio + 1 
+0733 18002a08 force 8 ,radio_ctrl 
+0734 202028fa branch shutdown_radio + 1 
 org 0x2000
 
 start:
Index: program/patch.prog
===================================================================
--- /branch/mouse_project/YJX_Project/HX_24G&BLE/program/patch.prog	(revision 1427)
+++ /branch/mouse_project/YJX_Project/HX_24G&BLE/program/patch.prog	(working copy)
@@ -1455,6 +1455,7 @@
 	setarg 0x50
 	store 2,mem_mouse_direct_timer
 	call app_ble_store_reconn_info
+p_mouse_fast_conn_store:	
 	jam 0x5a,mem_mouse_fast_conn_flag
 p_mouse_store_fast_conn_flag:
 	arg 1,temp
@@ -2692,10 +2693,12 @@
 	jam 0,mem_mouse_clear_sensor_data_flag
 p_mouse_start_discovery_norandom:
 ifdef BLE_FAST_CONN_ENABLE
+	arg 3,loopcnt
+	arg mem_device1_addr,contr
+	call p_pdata_0xff_check
+	ncall p_mouse_fast_conn_store,user
 	fetch 6,mem_le_normal_lap
 	store 6,mem_le_lap
-	jam 0x5a,mem_mouse_fast_conn_flag
-	call p_mouse_store_fast_conn_flag
 endif
 	call app_lpm_mult_disable
 	fetch 2,mem_discovery_timeout
@@ -2740,19 +2743,11 @@
 	isolate1 mark_24g,mark
 	ncall p_mouse_discovery_multi_led_blink,true
 p_mouse_check_fast_conn_adv_start1:
+	jam 0,mem_le_adv_data_len
+	jam 0,mem_le_scan_data_len
 	arg MOUSE_STORE_EEPROM_FLAG,queue
 	call mouse_disable_function_flag
-	call p_mouse_fast_conn_init
-	jam 0,mem_le_adv_data_len
-	jam 0x1f,mem_le_scan_data_len
-	branch check_51cmd_adv
-
-p_le_fast_conn_adv_data_update:
-	call p_mouse_fast_conn_init
-	arg mem_le_adv_data,contw
-	arg 11,loopcnt
-	call memcpy
-	branch le_modified_name_adv
+	branch p_mouse_fast_conn_init
 
 p_mouse_stop_discovery:
 	call p_mouse_discovey_led_blink_off
