root/drivers/staging/rtl8723bs/hal/odm_RTL8723B.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. odm_CCKRSSI_8723B

   1 // SPDX-License-Identifier: GPL-2.0
   2 /******************************************************************************
   3  *
   4  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
   5  *
   6  ******************************************************************************/
   7 
   8 #include "odm_precomp.h"
   9 
  10 s8 odm_CCKRSSI_8723B(u8 LNA_idx, u8 VGA_idx)
  11 {
  12         s8 rx_pwr_all = 0x00;
  13 
  14         switch (LNA_idx) {
  15         /* 46  53 73 95 201301231630 */
  16         /*  46 53 77 99 201301241630 */
  17 
  18         case 6:
  19                 rx_pwr_all = -34 - (2 * VGA_idx);
  20                 break;
  21         case 4:
  22                 rx_pwr_all = -14 - (2 * VGA_idx);
  23                 break;
  24         case 1:
  25                 rx_pwr_all = 6 - (2 * VGA_idx);
  26                 break;
  27         case 0:
  28                 rx_pwr_all = 16 - (2 * VGA_idx);
  29                 break;
  30         default:
  31                 /* rx_pwr_all = -53+(2*(31-VGA_idx)); */
  32                 /* DbgPrint("wrong LNA index\n"); */
  33                 break;
  34 
  35         }
  36         return rx_pwr_all;
  37 }

/* [<][>][^][v][top][bottom][index][help] */