2 * Operating Channel Validation (OCV)
3 * Copyright (c) 2018, Mathy Vanhoef
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
12 struct wpa_channel_info;
15 /* Values in the OCI element */
20 /* Derived values for easier verification */
27 #define OCV_OCI_EXTENDED_LEN (3 + OCV_OCI_LEN)
28 #define OCV_OCI_KDE_LEN (2 + RSN_SELECTOR_LEN + OCV_OCI_LEN)
30 extern char ocv_errorstr[256];
32 int ocv_derive_all_parameters(struct oci_info *oci);
33 int ocv_insert_oci(struct wpa_channel_info *ci, u8 **argpos);
34 int ocv_insert_oci_kde(struct wpa_channel_info *ci, u8 **argpos);
35 int ocv_insert_extended_oci(struct wpa_channel_info *ci, u8 *pos);
36 int ocv_verify_tx_params(const u8 *oci_ie, size_t oci_ie_len,
37 struct wpa_channel_info *ci, int tx_chanwidth,