Commit | Line | Data |
---|---|---|
f7c92d2c LF |
1 | /****************************************************************************** |
2 | * | |
3 | * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved. | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms of version 2 of the GNU General Public License as | |
7 | * published by the Free Software Foundation. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
12 | * more details. | |
13 | * | |
14 | ******************************************************************************/ | |
15 | ||
16 | #define _HAL_INTF_C_ | |
17 | #include <osdep_service.h> | |
18 | #include <drv_types.h> | |
19 | ||
20 | #include <hal_intf.h> | |
21 | ||
369074f0 | 22 | #include <rtl8723a_hal.h> |
f7c92d2c | 23 | |
f7c92d2c LF |
24 | void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level) |
25 | { | |
26 | struct rtw_adapter *padapter; | |
27 | struct mlme_priv *pmlmepriv; | |
28 | ||
29 | if (!psta) | |
30 | return; | |
31 | ||
32 | padapter = psta->padapter; | |
33 | ||
34 | pmlmepriv = &padapter->mlmepriv; | |
35 | ||
36 | if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { | |
c17416ef | 37 | #ifdef CONFIG_8723AU_AP_MODE |
f7c92d2c | 38 | add_RATid23a(padapter, psta, rssi_level); |
c17416ef | 39 | #endif |
ac4cbc68 JS |
40 | } else |
41 | rtl8723a_update_ramask(padapter, psta->mac_id, rssi_level); | |
f7c92d2c | 42 | } |