]> git.ipfire.org Git - thirdparty/hostap.git/commit
Introduce DUMP_BEACON command
authorMarek Puzyniak <marek.puzyniak@gmail.com>
Wed, 9 Oct 2024 08:15:02 +0000 (10:15 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 18:28:26 +0000 (20:28 +0200)
commitdf0b6fa900c7deee83fdaeff1723df315ab6be40
tree0449a770383ef327c28979caf1653733c7855b85
parentb141a4bf62ad13d35a61d8747d9121232c1b97df
Introduce DUMP_BEACON command

Occasionally, external applications require information about AP
configurations and capabilities. One potentially useful source for this
is the Beacon frame content. To support this need, introduce a new
control interface command: DUMP_BEACON. This return a hexdump of the
Beacon frame template, i.e., IEEE 802.11 frame header and frame body
with the TIM element missing since it is added by the driver and some of
the fields like the Timestamp field left to all zeros since they will be
filled in by the driver/hardware.

This can be fetched with hostapd_cli:

hostapd_cli -i wlxxx raw DUMP_BEACON
80000000ffffffffffff...
7f080400000200000040dd180050f2020101010003a4000027a4000042435e0062322f00

Signed-off-by: Marek Puzyniak <marek.puzyniak@holisticon.pl>
hostapd/ctrl_iface.c
src/ap/hostapd.c
src/ap/hostapd.h