[PATCH V3 7/7] rnr: add reduced neighbor reporting

Aloka Dixit alokad at codeaurora.org
Mon Sep 21 17:54:35 EDT 2020


On 2020-09-21 04:51, John Crispin wrote:
> The Reduced Neighbor Report (rnr) element contains channel and other
> information related to neighbor APs. It is part of the OCE requirement.
> 
> Signed-off-by: John Crispin <john at phrozen.org>
> ---
>  hostapd/config_file.c        |   2 +
>  hostapd/hostapd.conf         |   3 +
>  src/ap/ap_config.h           |   1 +
>  src/ap/beacon.c              |   8 +++
>  src/ap/ieee802_11.c          | 136 +++++++++++++++++++++++++++++++++++
>  src/ap/ieee802_11.h          |   2 +
>  src/common/ieee802_11_defs.h |  14 ++++
>  7 files changed, 166 insertions(+)
> 
> @@ -1370,6 +1376,8 @@ int ieee802_11_build_ap_params(struct 
> hostapd_data *hapd,
>  	tailpos = hostapd_eid_owe_trans(hapd, tailpos,
>  					tail + tail_len - tailpos);
>  	tailpos = hostapd_eid_dpp_cc(hapd, tailpos, tail + tail_len - 
> tailpos);
> +	if (hapd->conf->rnr_beacon)
> +		tailpos = hostapd_eid_reduced_neighbor_report(hapd, tailpos, 1);
> 

Should the last input parameter 'bool probe_resp' be 0 instead of 1 when 
called during beacon template generation?



More information about the Hostap mailing list