hostapd/src
Jouni Malinen b1f122964e Add generic GAS request mechanism
The new gas_request and gas_response_get commands can be used to request
arbitary GAS queries to be performed. These can be used with ANQP or
with other (including vendor specific) advertisement protocols.

gas_request <BSSID> <AdvProtoID> [Query]
gas_response_get <addr> <dialog token> [offset,length]

For example, ANQP query for Capability list in interactive wpa_cli
session:

> gas_request 02:00:00:00:01:00 00 000102000101
<3>GAS-RESPONSE-INFO addr=02:00:00:00:01:00 dialog_token=0
status_code=0 resp_len=32
> gas_response_get 02:00:00:00:01:00 00
01011c00010102010501070108010c01dddd0c00506f9a110200020304050607
> gas_response_get 02:00:00:00:01:00 00 0,10
01011c00010102010501
> gas_response_get 02:00:00:00:01:00 00 10,10
070108010c01dddd0c00
> gas_response_get 02:00:00:00:01:00 00 20,10
506f9a11020002030405
> gas_response_get 02:00:00:00:01:00 00 30,2
0607

It should be noted that the maximum length of the response buffer is
currently 4096 bytes which allows about 2000 bytes of the response data
to be fetched with a single gas_response_get command. If the response is
longer, it can be fetched in pieces as shown in the example above.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
2012-08-27 18:13:10 +03:00
..
ap Add parameter for vendor specific elements into Beacon/Probe Response 2012-08-27 16:20:10 +03:00
common Add generic GAS request mechanism 2012-08-27 18:13:10 +03:00
crypto Add sha256-prf.tls into libcrypto build 2012-08-22 11:15:55 +03:00
drivers test: Fix driver data pointer for the P2P commands 2012-08-24 20:44:24 +03:00
eap_common Add UNAUTH-TLS vendor specific EAP type 2012-08-22 22:34:11 +03:00
eap_peer Clear idleWhile timer when EAP peer state machine is not in use 2012-08-26 23:35:08 +03:00
eap_server Add UNAUTH-TLS vendor specific EAP type 2012-08-22 22:34:11 +03:00
eapol_auth Initialize EAPOL auth identity/cui with STA entry data 2012-08-19 14:23:20 +03:00
eapol_supp Clear idleWhile timer when EAP peer state machine is not in use 2012-08-26 23:35:08 +03:00
l2_packet Update license notification in files initially contributed by Sam 2012-06-30 19:36:04 +03:00
p2p P2P: Fix PD retries on delay in off channel transmission 2012-08-24 11:54:02 +03:00
radius RADIUS DAS: Verify that Error-Code attribute is added 2012-08-19 18:32:35 +03:00
rsn_supp PMKSA: Set cur_pmksa pointer during initial association 2012-08-10 18:05:03 +03:00
tls LibTomMath: Use 64-bit mode for mp_digit 2012-06-09 11:53:30 +03:00
utils wpabuf: Get rid of separate ext_data pointer 2012-08-19 18:25:25 +03:00
wps WPS: Maintain more AP state during WPS PIN iteration 2012-08-27 13:48:11 +03:00
lib.rules Add rules for building src/crypto as a library 2009-12-05 22:03:46 +02:00
Makefile P2P: Add initial version of P2P Module 2010-09-09 07:17:17 -07:00