Index: output/eeprom.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M_Allpowerful_New/output/eeprom.dat	(revision 1035)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M_Allpowerful_New/output/eeprom.dat	(working copy)
@@ -2,44 +2,48 @@
 02
 aa
 55
-7e
+8e
 02
 c2
 84
 00
-0a
+0b
 c0
 00
 00
-15
+16
 c0
 41
 80
-27
+2b
 c0
 42
 80
-30
+34
+c0
+45
+00
+1b
 c0
 45
 80
-1a
+1e
 c0
 46
 00
-8a
+8e
 c0
 57
 00
-3f
+43
 c0
 5d
 80
-47
+4b
 c0
 5e
 00
-4d
+51
 20
 20
 13
@@ -47,19 +51,19 @@
 c0
 48
 00
-6e
+72
 c0
 4a
 80
-7f
+83
 c0
 54
 80
-0f
+10
 c0
 73
 00
-49
+4d
 20
 20
 13
@@ -108,6 +112,18 @@
 20
 08
 04
+70
+8a
+39
+53
+70
+8a
+3a
+01
+20
+20
+12
+2a
 20
 40
 12
@@ -183,7 +199,7 @@
 c0
 04
 00
-2e
+32
 20
 20
 11
@@ -207,7 +223,7 @@
 c0
 7f
 80
-38
+3c
 d8
 c0
 41
@@ -251,7 +267,7 @@
 70
 89
 61
-66
+08
 20
 20
 11
@@ -267,11 +283,11 @@
 70
 48
 64
-02
+01
 70
 48
 65
-02
+01
 20
 40
 36
@@ -291,7 +307,7 @@
 20
 40
 00
-45
+49
 20
 20
 36
@@ -327,7 +343,7 @@
 20
 40
 00
-52
+56
 20
 20
 36
@@ -339,11 +355,11 @@
 20
 40
 00
-55
+59
 20
 20
 00
-61
+65
 6f
 e0
 c9
@@ -459,7 +475,7 @@
 c0
 00
 00
-73
+77
 20
 20
 7a
@@ -487,7 +503,7 @@
 c0
 00
 80
-7a
+7e
 20
 20
 7a
@@ -499,7 +515,7 @@
 c0
 04
 80
-7d
+81
 20
 20
 7a
@@ -603,7 +619,7 @@
 20
 40
 00
-85
+89
 1f
 e6
 7e
@@ -627,7 +643,7 @@
 24
 20
 80
-9d
+a1
 58
 00
 00
@@ -640,8 +656,8 @@
 20
 12
 91
-61
-8a
+e9
+1e
 aa
 55
 40
@@ -665,7 +681,7 @@
 00
 00
 28
-18
+1c
 00
 00
 00
@@ -718,7 +734,7 @@
 00
 09
 49
-80
+00
 01
 51
 31
@@ -778,7 +794,7 @@
 00
 7b
 41
-1f
+15
 aa
 55
 01
@@ -807,5 +823,5 @@
 ee
 41
 00
-dd
-3d
+ea
+ca
Index: output/program.lis
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M_Allpowerful_New/output/program.lis	(revision 1035)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M_Allpowerful_New/output/program.lis	(working copy)
@@ -1,212 +1,218 @@
               include "bt_format "
               org 0x0000
-0000 c284000a bbit1 8 ,pf_patch_ext 
-0001 c0000015 beq patch00_0 ,p_soft_reset 
-0002 c0418027 beq patch10_3 ,p_set_sync_on 
-0003 c0428030 beq patch10_5 ,p_rf_rx_enable 
-0004 c045801a beq patch11_3 ,p_initialize_radio_cont 
-0005 c046008a beq patch11_4 ,p_save_rssi 
-0006 c057003f beq patch15_6 ,p_app_init 
-0007 c05d8047 beq patch17_3 ,p_dongle_usb_dispatch 
-0008 c05e004d beq patch17_4 ,p_dongle_work_mode_auto 
-0009 2020137c branch loop 
+0000 c284000b bbit1 8 ,pf_patch_ext 
+0001 c0000016 beq patch00_0 ,p_soft_reset 
+0002 c041802b beq patch10_3 ,p_set_sync_on 
+0003 c0428034 beq patch10_5 ,p_rf_rx_enable 
+0004 c045001b beq patch11_2 ,p_txon_next 
+0005 c045801e beq patch11_3 ,p_initialize_radio_cont 
+0006 c046008e beq patch11_4 ,p_save_rssi 
+0007 c0570043 beq patch15_6 ,p_app_init 
+0008 c05d804b beq patch17_3 ,p_dongle_usb_dispatch 
+0009 c05e0051 beq patch17_4 ,p_dongle_work_mode_auto 
+000a 2020137c branch loop 
 
 pf_patch_ext:
-000a c048006e beq patch32_0 ,p_usb_class_type 
-000b c04a807f beq patch32_5 ,p_usb_tx 
-000c c054800f beq patch35_1 ,p_le_enable 
-000d c0730049 beq patch3c_6 ,p_g24_bind_mode_auto 
-000e 2020137c branch loop 
+000b c0480072 beq patch32_0 ,p_usb_class_type 
+000c c04a8083 beq patch32_5 ,p_usb_tx 
+000d c0548010 beq patch35_1 ,p_le_enable 
+000e c073004d beq patch3c_6 ,p_g24_bind_mode_auto 
+000f 2020137c branch loop 
 
 p_le_enable:
-000f 204016a6 call le_enable + 1 
-0010 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
-0011 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
-0012 1fe1fe0f or pdata ,0x0f ,pdata 
-0013 67f08a43 store 1 ,core_syn_cal_ctrl 
-0014 20600000 rtn 
+0010 204016a6 call le_enable + 1 
+0011 708a6d89 jam 0x89 ,core_rx_bq_cfg0 
+0012 6ff08a43 fetch 1 ,core_syn_cal_ctrl 
+0013 1fe1fe0f or pdata ,0x0f ,pdata 
+0014 67f08a43 store 1 ,core_syn_cal_ctrl 
+0015 20600000 rtn 
 
 p_soft_reset:
-0015 20800000 clear_stack 
-0016 204030f3 call app_param_init 
-0017 7041e89e jam 0x9e ,mem_tx_power 
-0018 7048cc9e jam 0x9e ,mem_tx_power_temp 
-0019 20200804 branch soft_reset + 3 
+0016 20800000 clear_stack 
+0017 204030f3 call app_param_init 
+0018 7041e89e jam 0x9e ,mem_tx_power 
+0019 7048cc9e jam 0x9e ,mem_tx_power_temp 
+001a 20200804 branch soft_reset + 3 
+
+p_txon_next:
+001b 708a3953 jam 0x53 ,core_tx_pwr_ctrl0 
+001c 708a3a01 jam 0x01 ,core_tx_pwr_ctrl1 
+001d 2020122a branch set_rf_ldo_cfg89 
 
 p_initialize_radio_cont:
-001a 204012d1 call init_lpm_ctrl 
-001b 20000064 nop 100 
-001c 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
-001d 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
-001e 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
-001f 708a8500 jam 0x00 ,core_syn_loopdiv_dsm_cfg 
-0020 70892140 jam 0x40 ,0x8921 
-0021 70896876 jam 0x76 ,core_agc_wb_sat_th 
-0022 70896976 jam 0x76 ,core_agc_nb_sat_th 
-0023 20401256 call initialize_radio_cont + 1 
-0024 70896fff jam 0xff ,0x896f 
-0025 7089703f jam 0x3f ,0x8970 
-0026 2020121d branch txon_next 
+001e 204012d1 call init_lpm_ctrl 
+001f 20000064 nop 100 
+0020 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+0021 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+0022 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+0023 708a8500 jam 0x00 ,core_syn_loopdiv_dsm_cfg 
+0024 70892140 jam 0x40 ,0x8921 
+0025 70896876 jam 0x76 ,core_agc_wb_sat_th 
+0026 70896976 jam 0x76 ,core_agc_nb_sat_th 
+0027 20401256 call initialize_radio_cont + 1 
+0028 70896fff jam 0xff ,0x896f 
+0029 7089703f jam 0x3f ,0x8970 
+002a 2020121d branch txon_next 
 
 p_set_sync_on:
-0027 70890005 jam 0x5 ,modem_en 
-0028 20000002 nop 2 
-0029 70890000 jam 0x0 ,modem_en 
-002a 6fe0c0c5 fetch 1 ,mem_fcomp_div 
-002b c00c1168 beq xtal_24m ,set_sync_on_24m 
-002c c004002e beq xtal_16m ,p_set_sync_on_16m 
-002d 20201168 branch set_sync_on_24m 
+002b 70890005 jam 0x5 ,modem_en 
+002c 20000002 nop 2 
+002d 70890000 jam 0x0 ,modem_en 
+002e 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+002f c00c1168 beq xtal_24m ,set_sync_on_24m 
+0030 c0040032 beq xtal_16m ,p_set_sync_on_16m 
+0031 20201168 branch set_sync_on_24m 
 
 p_set_sync_on_16m:
-002e 708a8729 jam 0x29 ,core_syn_afc_cfg1 
-002f 2020117d branch set_sync_on_16m 
+0032 708a8729 jam 0x29 ,core_syn_afc_cfg1 
+0033 2020117d branch set_sync_on_16m 
 
 p_rf_rx_enable:
-0030 20404ca7 call rf_debug_rx_gpio_high 
-0031 6fe0c1ea fetch 1 ,mem_gain_fix 
-0032 c07f8038 beq 0xff ,p_rf_rx_enable_no_soft_agc 
-0033 d8c041eb arg mem_gain_table ,contr 
-0034 98c08c00 iadd contr ,contr 
-0035 efe08006 ifetch 1 ,contr 
-0036 67f08961 store 1 ,core_rf_rx_gain_fix 
-0037 70896027 jam 0x27 ,core_rf_rx_agc_ctrl 
+0034 20404ca7 call rf_debug_rx_gpio_high 
+0035 6fe0c1ea fetch 1 ,mem_gain_fix 
+0036 c07f803c beq 0xff ,p_rf_rx_enable_no_soft_agc 
+0037 d8c041eb arg mem_gain_table ,contr 
+0038 98c08c00 iadd contr ,contr 
+0039 efe08006 ifetch 1 ,contr 
+003a 67f08961 store 1 ,core_rf_rx_gain_fix 
+003b 70896027 jam 0x27 ,core_rf_rx_agc_ctrl 
 
 p_rf_rx_enable_no_soft_agc:
-0038 6848c1ee fetcht 1 ,mem_gain_second_agc_en 
-0039 6ff08960 fetch 1 ,core_rf_rx_agc_ctrl 
-003a 9841fe00 ior temp ,pdata 
-003b 1fe1fe01 or pdata ,0x01 ,pdata 
-003c 67f08960 store 1 ,core_rf_rx_agc_ctrl 
-003d 70896166 jam 0x66 ,core_rf_rx_gain_fix 
-003e 202011b3 branch rf_rx_enable_no_soft_agc_next 
+003c 6848c1ee fetcht 1 ,mem_gain_second_agc_en 
+003d 6ff08960 fetch 1 ,core_rf_rx_agc_ctrl 
+003e 9841fe00 ior temp ,pdata 
+003f 1fe1fe01 or pdata ,0x01 ,pdata 
+0040 67f08960 store 1 ,core_rf_rx_agc_ctrl 
+0041 70896108 jam 0x08 ,core_rf_rx_gain_fix 
+0042 202011b3 branch rf_rx_enable_no_soft_agc_next 
 
 p_app_init:
-003f d840aa00 arg 0xaa00 ,temp 
-0040 20402320 call g24_rx_window_store 
-0041 70486402 jam 0x02 ,mem_24g_rx_phy 
-0042 70486502 jam 0x02 ,mem_24g_tx_phy 
-0043 20403620 call dongle_init 
-0044 2040623c call wdt_set_enable 
+0043 d840aa00 arg 0xaa00 ,temp 
+0044 20402320 call g24_rx_window_store 
+0045 70486401 jam 0x01 ,mem_24g_rx_phy 
+0046 70486501 jam 0x01 ,mem_24g_tx_phy 
+0047 20403620 call dongle_init 
+0048 2040623c call wdt_set_enable 
 
 p_wdt_kick:
-0045 5800007d setarg 125 
-0046 2020622d branch wdt_init_config 
+0049 5800007d setarg 125 
+004a 2020622d branch wdt_init_config 
 
 p_dongle_usb_dispatch:
-0047 20400045 call p_wdt_kick 
-0048 202036b5 branch dongle_usb_dispatch + 1 
+004b 20400049 call p_wdt_kick 
+004c 202036b5 branch dongle_usb_dispatch + 1 
 
 p_g24_bind_mode_auto:
-0049 6fe0c8bf fetch 1 ,mem_24g_work_mode 
-004a c1808000 rtnne dongle_bind 
-004b 7041e885 jam tx_power_f5db ,mem_tx_power 
-004c 20202499 branch g24_bind_mode_auto + 3 
+004d 6fe0c8bf fetch 1 ,mem_24g_work_mode 
+004e c1808000 rtnne dongle_bind 
+004f 7041e885 jam tx_power_f5db ,mem_tx_power 
+0050 20202499 branch g24_bind_mode_auto + 3 
 
 p_dongle_work_mode_auto:
-004d 6fe0c8bf fetch 1 ,mem_24g_work_mode 
-004e c1800000 rtnne dongle_work 
-004f 20402491 call g24_work_mode_start 
-0050 20400052 call p_dongle_g24_blank_data_process 
-0051 202036f2 branch dongle_work_mode_auto + 5 
+0051 6fe0c8bf fetch 1 ,mem_24g_work_mode 
+0052 c1800000 rtnne dongle_work 
+0053 20402491 call g24_work_mode_start 
+0054 20400056 call p_dongle_g24_blank_data_process 
+0055 202036f2 branch dongle_work_mode_auto + 5 
 
 p_dongle_g24_blank_data_process:
-0052 2040368a call dongle_g24_ms_blank_data 
-0053 20400055 call p_dongle_g24_kb_blank_data 
-0054 20200061 branch p_dongle_g24_kb_mul_blank_data 
+0056 2040368a call dongle_g24_ms_blank_data 
+0057 20400059 call p_dongle_g24_kb_blank_data 
+0058 20200065 branch p_dongle_g24_kb_mul_blank_data 
 
 p_dongle_g24_kb_blank_data:
-0055 6fe0c906 fetch 1 ,mem_dg_kb_blank_data_enable 
-0056 207a0000 rtn blank 
-0057 d8e0000e arg timer_kb_blank ,queue 
-0058 20407d74 call timer_check 
-0059 247a0000 nrtn blank 
-005a 70490600 jam 0 ,mem_dg_kb_blank_data_enable 
-005b d8a00c0f arg mem_usb_kb_data ,contw 
-005c df200002 arg 2 ,loopcnt 
-005d 20407d17 call memset0 
-005e 6fe40c0f fetch 8 ,mem_usb_kb_data 
-005f 67e448f2 store 8 ,mem_dg_kb_data_last_data 
-0060 202036a2 branch dongle_usb_tx_kb_data 
+0059 6fe0c906 fetch 1 ,mem_dg_kb_blank_data_enable 
+005a 207a0000 rtn blank 
+005b d8e0000e arg timer_kb_blank ,queue 
+005c 20407d74 call timer_check 
+005d 247a0000 nrtn blank 
+005e 70490600 jam 0 ,mem_dg_kb_blank_data_enable 
+005f d8a00c0f arg mem_usb_kb_data ,contw 
+0060 df200002 arg 2 ,loopcnt 
+0061 20407d17 call memset0 
+0062 6fe40c0f fetch 8 ,mem_usb_kb_data 
+0063 67e448f2 store 8 ,mem_dg_kb_data_last_data 
+0064 202036a2 branch dongle_usb_tx_kb_data 
 
 p_dongle_g24_kb_mul_blank_data:
-0061 6fe0c907 fetch 1 ,mem_dg_kb_mul_blank_data_enable 
-0062 207a0000 rtn blank 
-0063 d8e0000c arg timer_kb_mul_blank ,queue 
-0064 20407d74 call timer_check 
-0065 247a0000 nrtn blank 
-0066 70490700 jam 0 ,mem_dg_kb_mul_blank_data_enable 
-0067 d8a00c1f arg mem_usb_kb_multikey ,contw 
-0068 df200002 arg 2 ,loopcnt 
-0069 20407d17 call memset0 
-006a 700c1f03 jam kb_multikey_report_id ,mem_usb_kb_multikey 
-006b 6fe18c1f fetch 3 ,mem_usb_kb_multikey 
-006c 67e1c8fd store 3 ,mem_dg_kb_multikey_last_data 
-006d 202036b2 branch dongle_usb_tx_multikey_data 
+0065 6fe0c907 fetch 1 ,mem_dg_kb_mul_blank_data_enable 
+0066 207a0000 rtn blank 
+0067 d8e0000c arg timer_kb_mul_blank ,queue 
+0068 20407d74 call timer_check 
+0069 247a0000 nrtn blank 
+006a 70490700 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+006b d8a00c1f arg mem_usb_kb_multikey ,contw 
+006c df200002 arg 2 ,loopcnt 
+006d 20407d17 call memset0 
+006e 700c1f03 jam kb_multikey_report_id ,mem_usb_kb_multikey 
+006f 6fe18c1f fetch 3 ,mem_usb_kb_multikey 
+0070 67e1c8fd store 3 ,mem_dg_kb_multikey_last_data 
+0071 202036b2 branch dongle_usb_tx_multikey_data 
 
 p_usb_class_type:
-006e 793f8023 set0 mark_isstr ,mark 
-006f 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
-0070 1fe17e80 and_into 0x80 ,pdata 
-0071 c0000073 beq out_device ,p_usb_out_device 
-0072 20207a34 branch usb_class_type + 4 
+0072 793f8023 set0 mark_isstr ,mark 
+0073 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+0074 1fe17e80 and_into 0x80 ,pdata 
+0075 c0000077 beq out_device ,p_usb_out_device 
+0076 20207a34 branch usb_class_type + 4 
 
 p_usb_out_device:
-0073 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
-0074 1ff1fe00 rshift4 pdata ,pdata 
-0075 1fe37e00 rshift pdata ,pdata 
-0076 1fe17e03 and_into 0x03 ,pdata 
-0077 c0007a53 beq standard_req ,usb_out_standard_req 
-0078 c000807a beq class_req ,p_usb_out_class_req 
-0079 20207a43 branch usb_out_device + 4 
+0077 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+0078 1ff1fe00 rshift4 pdata ,pdata 
+0079 1fe37e00 rshift pdata ,pdata 
+007a 1fe17e03 and_into 0x03 ,pdata 
+007b c0007a53 beq standard_req ,usb_out_standard_req 
+007c c000807e beq class_req ,p_usb_out_class_req 
+007d 20207a43 branch usb_out_device + 4 
 
 p_usb_out_class_req:
-007a 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
-007b c004807d beq set_report ,p_usb_set_report 
-007c 20207a5c branch usb_out_class_req + 1 
+007e 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+007f c0048081 beq set_report ,p_usb_set_report 
+0080 20207a5c branch usb_out_class_req + 1 
 
 p_usb_set_report:
-007d 20003a98 nop 15000 
-007e 20207bd8 branch usb_set_report 
+0081 20003a98 nop 15000 
+0082 20207bd8 branch usb_set_report 
 
 p_usb_tx:
-007f 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
-0080 207a0000 rtn blank 
-0081 6ff08c24 fetch 1 ,core_usb_txbusy 
-0082 1fe17e0f and_into 0x0f ,pdata 
-0083 243a7ca4 nbranch usb_inwake_state_tx_dispose ,blank 
-0084 20207c59 branch usb_tx + 3 
+0083 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+0084 207a0000 rtn blank 
+0085 6ff08c24 fetch 1 ,core_usb_txbusy 
+0086 1fe17e0f and_into 0x0f ,pdata 
+0087 243a7ca4 nbranch usb_inwake_state_tx_dispose ,blank 
+0088 20207c59 branch usb_tx + 3 
 
 p_byte_sign_extern:
-0085 2feffe07 isolate1 7 ,pdata 
-0086 24608000 nrtn true 
-0087 d840ff00 arg 0xff00 ,temp 
-0088 9841fe00 ior temp ,pdata 
-0089 20600000 rtn 
+0089 2feffe07 isolate1 7 ,pdata 
+008a 24608000 nrtn true 
+008b d840ff00 arg 0xff00 ,temp 
+008c 9841fe00 ior temp ,pdata 
+008d 20600000 rtn 
 
 p_save_rssi:
-008a 6ff089a2 fetch 1 ,modem_nb_pow 
-008b 2feffe06 isolate1 6 ,pdata 
-008c 7920fe07 setflag true ,7 ,pdata 
-008d 67e0c1e9 store 1 ,mem_modem_rssi 
-008e 6ff089a3 fetch 1 ,modem_gain 
-008f 1fe1040f and pdata ,0x0f ,temp 
-0090 18438400 lshift temp ,temp 
-0091 1ff1fe00 rshift4 pdata ,pdata 
-0092 98408400 iadd temp ,temp 
-0093 184fa203 mul32 temp ,3 ,rega 
-0094 6fe0c1e9 fetch 1 ,mem_modem_rssi 
-0095 20400085 call p_byte_sign_extern 
-0096 1fe67e00 sub pdata ,0 ,pdata 
-0097 9a20fe00 iadd rega ,pdata 
-0098 1fe0fff7 increase -9 ,pdata 
-0099 1fe17fff and pdata ,0x1ff ,pdata 
-009a 2feffe08 isolate1 8 ,pdata 
-009b 2420809d nbranch p_save_rssi_store ,true 
-009c 58000000 setarg 0 
+008e 6ff089a2 fetch 1 ,modem_nb_pow 
+008f 2feffe06 isolate1 6 ,pdata 
+0090 7920fe07 setflag true ,7 ,pdata 
+0091 67e0c1e9 store 1 ,mem_modem_rssi 
+0092 6ff089a3 fetch 1 ,modem_gain 
+0093 1fe1040f and pdata ,0x0f ,temp 
+0094 18438400 lshift temp ,temp 
+0095 1ff1fe00 rshift4 pdata ,pdata 
+0096 98408400 iadd temp ,temp 
+0097 184fa203 mul32 temp ,3 ,rega 
+0098 6fe0c1e9 fetch 1 ,mem_modem_rssi 
+0099 20400089 call p_byte_sign_extern 
+009a 1fe67e00 sub pdata ,0 ,pdata 
+009b 9a20fe00 iadd rega ,pdata 
+009c 1fe0fff7 increase -9 ,pdata 
+009d 1fe17fff and pdata ,0x1ff ,pdata 
+009e 2feffe08 isolate1 8 ,pdata 
+009f 242080a1 nbranch p_save_rssi_store ,true 
+00a0 58000000 setarg 0 
 
 p_save_rssi_store:
-009d 67e08019 store 1 ,mem_rssi_hex 
-009e 20201291 branch rssi_hex2dec 
+00a1 67e08019 store 1 ,mem_rssi_hex 
+00a2 20201291 branch rssi_hex2dec 
               org 0x800
 
 start:
Index: program/patch.prog
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M_Allpowerful_New/program/patch.prog	(revision 1035)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M_Allpowerful_New/program/patch.prog	(working copy)
@@ -3,6 +3,7 @@
 	beq patch00_0,p_soft_reset
 	beq patch10_3,p_set_sync_on
 	beq patch10_5,p_rf_rx_enable
+	beq patch11_2,p_txon_next
 	beq patch11_3,p_initialize_radio_cont
 	beq patch11_4,p_save_rssi
 	beq patch15_6,p_app_init
@@ -30,7 +31,12 @@
 	jam 0x9e,mem_tx_power
 	jam 0x9e,mem_tx_power_temp
 	branch soft_reset+3
-	
+
+
+p_txon_next:
+	jam 0x53,core_tx_pwr_ctrl0	//F20dbm
+	jam 0x01,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
 
 
 /********************rx fail patch************************/
@@ -88,15 +94,15 @@
 	ior temp,pdata
 	or pdata,0x01,pdata				//disable agc
 	store 1,core_rf_rx_agc_ctrl
-	jam 0x66,core_rf_rx_gain_fix	//set agc level
+	jam 0x08,core_rf_rx_gain_fix	//set agc level88 44 22 11 00
 	branch rf_rx_enable_no_soft_agc_next
 	
 p_app_init:
 /********************dongle rx window patch************************/
 	arg 0xaa00,temp
 	call g24_rx_window_store
-	jam 0x02,mem_24g_rx_phy
-	jam 0x02,mem_24g_tx_phy
+	jam 0x01,mem_24g_rx_phy
+	jam 0x01,mem_24g_tx_phy
 
 	call dongle_init
 	
Index: sched/dongle.dat
===================================================================
--- /YC1308AC/branch/mouse_project/YDN_Project/usb_16M_Allpowerful_New/sched/dongle.dat	(revision 1035)
+++ /YC1308AC/branch/mouse_project/YDN_Project/usb_16M_Allpowerful_New/sched/dongle.dat	(working copy)
@@ -7,7 +7,7 @@
 #bit6:enable new channel map
 #bit5:enable eeprom
 #bit4-0:mem_tx_power#6dBm
-mem_dg_sys_config:80	#0dBm#24M
+mem_dg_sys_config:00	#0dBm#24M
 
 #usb config
 mem_dg_usb_vid_pid:
@@ -55,7 +55,7 @@
 
 #with eeprom
 mem_device_option:04
-mem_lpm_ctrim:1f		#xtal offset
+mem_lpm_ctrim:15		#xtal offset
 mem_lpm_xtalcnt:70
 mem_dig_aon_vsel:00
 #hw agc
