Import rtw88 based on wireless-testing at 5d5d68bcff1f7ff27ba0b938a4df5849849b47e3 with adjustments for FreeBSD. While our version of the driver has knowledge about the incapablity of DMA above 4GB we do see errors if people have more than that often already showing when laoding firmware. The problem for that is currently believed to be outside this driver so importing it anyway for now. Given the lack of full license texts on non-local files this is imported under the draft policy for handling SPDX files (D29226). [1] Approved by: core (imp) [1] MFC after: 2 weeks
23 lines
537 B
C
23 lines
537 B
C
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
|
/* Copyright(c) 2018-2021 Realtek Corporation
|
|
*/
|
|
|
|
#include "main.h"
|
|
|
|
/* NL80211_SAR_TYPE_POWER means unit is in 0.25 dBm,
|
|
* where 0.25 = 1/4 = 2^(-2), so make factor 2.
|
|
*/
|
|
#define RTW_COMMON_SAR_FCT 2
|
|
|
|
struct rtw_sar_arg {
|
|
u8 sar_band;
|
|
u8 path;
|
|
u8 rs;
|
|
};
|
|
|
|
extern const struct cfg80211_sar_capa rtw_sar_capa;
|
|
|
|
s8 rtw_query_sar(struct rtw_dev *rtwdev, const struct rtw_sar_arg *arg);
|
|
int rtw_set_sar_specs(struct rtw_dev *rtwdev,
|
|
const struct cfg80211_sar_specs *sar);
|