#1007097 iwd forcefully enabled randomize mac address, cannot disable via /etc/iwd/main.conf

Package:
iwd
Source:
iwd
Description:
wireless daemon for Linux
Submitter:
Yuxuan Wang
Date:
2022-06-03 21:03:03 UTC
Severity:
normal
#1007097#5
Date:
2022-03-11 03:05:45 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

After today's update, iwd always randomize the Mac address used to connect to
WiFi. After noticed that, I tried to set AddressRandomizatio=disabled in
/etc/iwd/main.conf but that doesn't seem to stop it from doing that. In the end
I have to disable EnableNetworkConfiguration to use NetworkManager to manage it
to get back to the factory Mac address (which is used for DHCP reservation and
port mapping on my home router).

#1007097#10
Date:
2022-05-17 14:56:32 UTC
From:
To:
Hello, is "AddressRandomizatio" a typo in only the bug report or also a
typo in the configuration file?

Thanks

#1007097#15
Date:
2022-06-03 21:00:31 UTC
From:
To:
Hi,

Could it be that your network provisioning file
(/var/lib/iwd/<network>.psk) has:

[Settings]
AlwaysRandomizeAddress=true

According to the man pages this should only be honored if main.conf has
AddressRandomization=network... BUT after poking around I identified a
bug surrounding that. A fix should be merged soon.

In the mean time, if you indeed have AlwaysRandomizeAddress=true, set
that to false and it should use the perminant hardware address always.

Thanks,
James