]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Support showing neighbor list through hostapd_cli
authorBen Greear <greearb@candelatech.com>
Tue, 19 Mar 2019 17:09:50 +0000 (10:09 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 26 Dec 2019 15:59:03 +0000 (17:59 +0200)
commitee48f48ba1d2168a0891be16b04990e025882739
tree2c9a0d196e0a85bcd45809b718ede2123dbc3102
parent0dfa6ea52910869f7c9655eeddf5b40c353b270b
hostapd: Support showing neighbor list through hostapd_cli

This lets one know the current neighbor list, and could be used
to populate the neighbor list of other hostapd processes.

For instance:

$ hostapd_cli -i vap0001 show_neighbor
04:f0:21:1e:ae:b0 ssid=04f0211eaeb0af190000802809 nr=04f0211eaeb0af1900008028090603022a00
$ hostapd_cli -i vap0000 set_neighbor 04:f0:21:1e:ae:b0 ssid=04f0211eaeb0af190000802809 nr=04f0211eaeb0af1900008028090603022a00
OK
$ hostapd_cli -i vap0000 show_neighbor
04:f0:21:1e:ae:b0 ssid=04f0211eaeb0af190000802809 nr=04f0211eaeb0af1900008028090603022a00
04:f0:21:c3:b2:b0 ssid=04f021c3b2b0af190000802809 nr=04f021c3b2b0af1900008028090603022a00

Signed-off-by: Ben Greear <greearb@candelatech.com>
hostapd/ctrl_iface.c
hostapd/hostapd_cli.c
src/ap/neighbor_db.c
src/ap/neighbor_db.h