Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / drivers / staging / rtl8723au / hal / hal_intf.c
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
22 #include <rtl8723a_hal.h>
23
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)) {
37 #ifdef CONFIG_8723AU_AP_MODE
38                 add_RATid23a(padapter, psta, rssi_level);
39 #endif
40         } else
41                 rtl8723a_update_ramask(padapter, psta->mac_id, rssi_level);
42 }