wpas_dbus_handler_scan() constructs a set of 'params' each time, but it doesn't acknowledge the existing randomization settings when doing so. That means that any D-Bus initiated scans weren't going to follow the configured settings. Signed-off-by: Eric Caruso <ejcaruso@xxxxxxxxxxxx> --- wpa_supplicant/scan.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 975bd10ce..d49ee627d 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -195,6 +195,11 @@ static void wpas_trigger_scan_cb(struct wpa_radio_work *work, int deinit) return; } + if ((wpa_s->mac_addr_rand_enable & MAC_ADDR_RAND_SCAN) && + wpa_s->wpa_state <= WPA_SCANNING) { + wpa_setup_mac_addr_rand_params(params, wpa_s->mac_addr_scan); + } + if (wpas_update_random_addr_disassoc(wpa_s) < 0) { wpa_msg(wpa_s, MSG_INFO, "Failed to assign random MAC address for a scan"); -- 2.23.0.866.gb869b98d4c-goog _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap