Allow scans triggered by D-Bus to use MAC address randomization
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@chromium.org>
This commit is contained in:
parent
10f8351d6e
commit
9fde146070
1 changed files with 4 additions and 0 deletions
|
@ -196,6 +196,10 @@ static void wpas_trigger_scan_cb(struct wpa_radio_work *work, int deinit)
|
||||||
return;
|
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) {
|
if (wpas_update_random_addr_disassoc(wpa_s) < 0) {
|
||||||
wpa_msg(wpa_s, MSG_INFO,
|
wpa_msg(wpa_s, MSG_INFO,
|
||||||
"Failed to assign random MAC address for a scan");
|
"Failed to assign random MAC address for a scan");
|
||||||
|
|
Loading…
Reference in a new issue