]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - wpa_supplicant/gas_query.h
mesh: Fix random llid generation in an error case
[thirdparty/hostap.git] / wpa_supplicant / gas_query.h
index 01aba6e8a95b6e6b02225e735a855f1cdacd5657..d2b455442f0a5f6e63df7fd16c23e0df8f947849 100644 (file)
@@ -17,26 +17,31 @@ struct gas_query;
 struct gas_query * gas_query_init(struct wpa_supplicant *wpa_s);
 void gas_query_deinit(struct gas_query *gas);
 int gas_query_rx(struct gas_query *gas, const u8 *da, const u8 *sa,
-                const u8 *bssid, const u8 *data, size_t len, int freq);
+                const u8 *bssid, u8 categ, const u8 *data, size_t len,
+                int freq);
+int pmf_in_use(struct wpa_supplicant *wpa_s, const u8 *addr);
 
+/**
+ * enum gas_query_result - GAS query result
+ */
 enum gas_query_result {
        GAS_QUERY_SUCCESS,
        GAS_QUERY_FAILURE,
        GAS_QUERY_TIMEOUT,
        GAS_QUERY_PEER_ERROR,
        GAS_QUERY_INTERNAL_ERROR,
-       GAS_QUERY_CANCELLED,
+       GAS_QUERY_STOPPED,
        GAS_QUERY_DELETED_AT_DEINIT
 };
 
 int gas_query_req(struct gas_query *gas, const u8 *dst, int freq,
-                 struct wpabuf *req,
+                 int wildcard_bssid, struct wpabuf *req,
                  void (*cb)(void *ctx, const u8 *dst, u8 dialog_token,
                             enum gas_query_result result,
                             const struct wpabuf *adv_proto,
                             const struct wpabuf *resp, u16 status_code),
                  void *ctx);
-void gas_query_cancel(struct gas_query *gas, const u8 *dst, u8 dialog_token);
+int gas_query_stop(struct gas_query *gas, u8 dialog_token);
 
 #else /* CONFIG_GAS */