sar.h 537 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
  2. /* Copyright(c) 2018-2021 Realtek Corporation
  3. */
  4. #include "main.h"
  5. /* NL80211_SAR_TYPE_POWER means unit is in 0.25 dBm,
  6. * where 0.25 = 1/4 = 2^(-2), so make factor 2.
  7. */
  8. #define RTW_COMMON_SAR_FCT 2
  9. struct rtw_sar_arg {
  10. u8 sar_band;
  11. u8 path;
  12. u8 rs;
  13. };
  14. extern const struct cfg80211_sar_capa rtw_sar_capa;
  15. s8 rtw_query_sar(struct rtw_dev *rtwdev, const struct rtw_sar_arg *arg);
  16. int rtw_set_sar_specs(struct rtw_dev *rtwdev,
  17. const struct cfg80211_sar_specs *sar);