ft.h (1850B)
1 /* 2 * 3 * Wireless daemon for Linux 4 * 5 * Copyright (C) 2017-2019 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 struct scan_bss; 24 25 typedef int (*ft_tx_frame_func_t)(uint32_t ifindex, uint16_t frame_type, 26 uint32_t frequency, 27 const uint8_t *dest, struct iovec *iov, 28 size_t iov_len); 29 30 typedef int (*ft_tx_associate_func_t)(uint32_t ifindex, uint32_t freq, 31 const uint8_t *prev_bssid, 32 struct iovec *ie_iov, size_t iov_len); 33 34 void __ft_set_tx_frame_func(ft_tx_frame_func_t func); 35 int __ft_rx_associate(uint32_t ifindex, const uint8_t *frame, 36 size_t frame_len); 37 void __ft_rx_action(uint32_t ifindex, const uint8_t *frame, size_t frame_len); 38 void __ft_rx_authenticate(uint32_t ifindex, const uint8_t *frame, 39 size_t frame_len); 40 41 int ft_handshake_setup(uint32_t ifindex, const uint8_t *target); 42 43 void ft_clear_authentications(uint32_t ifindex); 44 int ft_action(uint32_t ifindex, uint32_t freq, const struct scan_bss *target); 45 int ft_authenticate(uint32_t ifindex, const struct scan_bss *target); 46 int ft_authenticate_onchannel(uint32_t ifindex, const struct scan_bss *target);