aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/gas_query.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-27 13:31:03 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-27 15:34:38 (GMT)
commitd6e93d3e09598f726729ccc54c116324ff9daa4c (patch)
treebd506d8323552c8e5f4885d861bb81cbdd851486 /wpa_supplicant/gas_query.c
parent37a676596788f49e40c31a2ea8c2863b9fc73f5b (diff)
downloadhostap-d6e93d3e09598f726729ccc54c116324ff9daa4c.zip
hostap-d6e93d3e09598f726729ccc54c116324ff9daa4c.tar.gz
hostap-d6e93d3e09598f726729ccc54c116324ff9daa4c.tar.bz2
GAS: Remove unused gas_query_cancel()
This function was added with the initial GAS implementation, but there was no user for it at the time and no clear use now either, so remove the unused function and the related GAS query reason code. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/gas_query.c')
-rw-r--r--wpa_supplicant/gas_query.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/wpa_supplicant/gas_query.c b/wpa_supplicant/gas_query.c
index 824d35c..c0c8c46 100644
--- a/wpa_supplicant/gas_query.c
+++ b/wpa_supplicant/gas_query.c
@@ -117,8 +117,6 @@ static const char * gas_result_txt(enum gas_query_result result)
return "PEER_ERROR";
case GAS_QUERY_INTERNAL_ERROR:
return "INTERNAL_ERROR";
- case GAS_QUERY_CANCELLED:
- return "CANCELLED";
case GAS_QUERY_DELETED_AT_DEINIT:
return "DELETED_AT_DEINIT";
}
@@ -782,20 +780,3 @@ int gas_query_req(struct gas_query *gas, const u8 *dst, int freq,
return dialog_token;
}
-
-
-/**
- * gas_query_cancel - Cancel a pending GAS query
- * @gas: GAS query data from gas_query_init()
- * @dst: Destination MAC address for the query
- * @dialog_token: Dialog token from gas_query_req()
- */
-void gas_query_cancel(struct gas_query *gas, const u8 *dst, u8 dialog_token)
-{
- struct gas_query_pending *query;
-
- query = gas_query_get_pending(gas, dst, dialog_token);
- if (query)
- gas_query_done(gas, query, GAS_QUERY_CANCELLED);
-
-}