mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
station: correctly set mac randomization hint
Now that ConnectHiddenNetwork can be invoked while we're connected, set the mac randomization hint parameter properly. The kernel will reject requests if randomization is enabled while we're connected to a network.
This commit is contained in:
parent
06ca8e20a9
commit
c319bca477
@ -2677,7 +2677,7 @@ static struct l_dbus_message *station_dbus_connect_hidden_network(
|
||||
uint64_t id = netdev_get_wdev_id(station->netdev);
|
||||
struct scan_parameters params = {
|
||||
.flush = true,
|
||||
.randomize_mac_addr_hint = true,
|
||||
.randomize_mac_addr_hint = false,
|
||||
};
|
||||
const char *ssid;
|
||||
struct network *network;
|
||||
@ -2726,6 +2726,10 @@ static struct l_dbus_message *station_dbus_connect_hidden_network(
|
||||
|
||||
params.ssid = ssid;
|
||||
|
||||
/* HW cannot randomize our MAC if connected */
|
||||
if (!station->connected_bss)
|
||||
params.randomize_mac_addr_hint = true;
|
||||
|
||||
station->hidden_network_scan_id = scan_active_full(id, ¶ms,
|
||||
station_hidden_network_scan_triggered,
|
||||
station_hidden_network_scan_results,
|
||||
|
Loading…
Reference in New Issue
Block a user