diagnostic.h (1810B)
1 /* 2 * 3 * Wireless daemon for Linux 4 * 5 * Copyright (C) 2021 Intel Corporation. All rights reserved. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 * 21 */ 22 23 enum ie_rsn_akm_suite; 24 25 enum diagnostic_mcs_type { 26 DIAGNOSTIC_MCS_TYPE_NONE, 27 DIAGNOSTIC_MCS_TYPE_HT, 28 DIAGNOSTIC_MCS_TYPE_VHT, 29 DIAGNOSTIC_MCS_TYPE_HE, 30 }; 31 32 struct diagnostic_station_info { 33 uint8_t addr[6]; 34 int8_t cur_rssi; 35 int8_t avg_rssi; 36 37 enum diagnostic_mcs_type rx_mcs_type; 38 uint32_t rx_bitrate; 39 uint8_t rx_mcs; 40 enum diagnostic_mcs_type tx_mcs_type; 41 uint32_t tx_bitrate; 42 uint8_t tx_mcs; 43 44 uint32_t expected_throughput; 45 46 uint32_t inactive_time; 47 uint32_t connected_time; 48 49 bool have_cur_rssi : 1; 50 bool have_avg_rssi : 1; 51 bool have_rx_mcs : 1; 52 bool have_tx_mcs : 1; 53 bool have_rx_bitrate : 1; 54 bool have_tx_bitrate : 1; 55 bool have_expected_throughput : 1; 56 bool have_inactive_time : 1; 57 bool have_connected_time : 1; 58 }; 59 60 bool diagnostic_info_to_dict(const struct diagnostic_station_info *info, 61 struct l_dbus_message_builder *builder); 62 63 const char *diagnostic_akm_suite_to_security(enum ie_rsn_akm_suite suite, 64 bool wpa);