hostap/src/common
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
..
defs.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
eapol_common.h Share a single definition of EAPOL-Key structure for WEP keys 2012-08-07 21:27:01 +03:00
gas.c Add generic GAS request mechanism 2012-08-27 18:13:10 +03:00
gas.h Add generic GAS request mechanism 2012-08-27 18:13:10 +03:00
ieee802_11_common.c Move WMM AC parameter parser into a common file 2012-08-12 11:33:00 +03:00
ieee802_11_common.h Move WMM AC parameter parser into a common file 2012-08-12 11:33:00 +03:00
ieee802_11_defs.h hostapd: Initial IEEE 802.11ac (VHT) definitions 2012-06-30 13:52:13 +03:00
Makefile Remove unnecessary SUBDIRS loops from src/*/Makefile 2010-04-17 17:10:31 +03:00
privsep_commands.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
version.h Update version number to 2.0-devel 2011-11-03 12:19:44 +02:00
wpa_common.c FIPS: Remove MD5 from the CONFIG_FIPS=y build 2012-08-16 20:03:17 +03:00
wpa_common.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
wpa_ctrl.c wpa_cli: Print nice prompt when using remote UDP 2012-08-05 20:50:17 +03:00
wpa_ctrl.h Add generic GAS request mechanism 2012-08-27 18:13:10 +03:00