rtlwifi: btcoex: 23b 1ant: coex table fine tune
authorPing-Ke Shih <pkshih@realtek.com>
Sat, 20 May 2017 15:49:03 +0000 (10:49 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 May 2017 13:50:36 +0000 (16:50 +0300)
Set register settings for coex table fine tune.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c

index 80d577cd6549e507ee065877aa1c20e305ac24cd..9c4feb89144de2b3ce3e379afc296bfd1b5f5dca 100644 (file)
@@ -587,24 +587,68 @@ static void halbtc8723b1ant_coex_table_with_type(struct btc_coexist *btcoexist,
                break;
        case 3:
                halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555,
-                                          0xaaaaaaaa, 0xffffff, 0x3);
+                                          0x5a5a5a5a, 0xffffff, 0x3);
                break;
        case 4:
-               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555,
-                                          0x5aaa5aaa, 0xffffff, 0x3);
+               if ((coex_sta->cck_ever_lock) && (coex_sta->scan_ap_num <= 5))
+                       halbtc8723b1ant_coex_table(btcoexist, force_exec,
+                                                  0x55555555, 0xaaaa5a5a,
+                                                  0xffffff, 0x3);
+               else
+                       halbtc8723b1ant_coex_table(btcoexist, force_exec,
+                                                  0x55555555, 0x5a5a5a5a,
+                                                  0xffffff, 0x3);
                break;
        case 5:
-               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a,
-                                          0xaaaa5a5a, 0xffffff, 0x3);
+               if ((coex_sta->cck_ever_lock) && (coex_sta->scan_ap_num <= 5))
+                       halbtc8723b1ant_coex_table(btcoexist, force_exec,
+                                                  0x5a5a5a5a, 0x5aaa5a5a,
+                                                  0xffffff, 0x3);
+               else
+                       halbtc8723b1ant_coex_table(btcoexist, force_exec,
+                                                  0x5a5a5a5a, 0x5aaa5a5a,
+                                                  0xffffff, 0x3);
                break;
        case 6:
                halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555,
-                                          0xaaaa5a5a, 0xffffff, 0x3);
+                                          0xaaaaaaaa, 0xffffff, 0x3);
                break;
        case 7:
                halbtc8723b1ant_coex_table(btcoexist, force_exec, 0xaaaaaaaa,
                                           0xaaaaaaaa, 0xffffff, 0x3);
                break;
+       case 8:
+               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55dd55dd,
+                                          0x5ada5ada, 0xffffff, 0x3);
+               break;
+       case 9:
+               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55dd55dd,
+                                          0x5ada5ada, 0xffffff, 0x3);
+               break;
+       case 10:
+               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55dd55dd,
+                                          0x5ada5ada, 0xffffff, 0x3);
+               break;
+       case 11:
+               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55dd55dd,
+                                          0x5ada5ada, 0xffffff, 0x3);
+               break;
+       case 12:
+               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55dd55dd,
+                                          0x5ada5ada, 0xffffff, 0x3);
+               break;
+       case 13:
+               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x5fff5fff,
+                                          0xaaaaaaaa, 0xffffff, 0x3);
+               break;
+       case 14:
+               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x5fff5fff,
+                                          0x5ada5ada, 0xffffff, 0x3);
+               break;
+       case 15:
+               halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55dd55dd,
+                                          0xaaaaaaaa, 0xffffff, 0x3);
+               break;
        default:
                break;
        }