]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Skip interface down/up when setting MAC address
authorHu Wang <quic_huw@quicinc.com>
Thu, 26 Oct 2023 08:51:38 +0000 (01:51 -0700)
committerJouni Malinen <j@w1.fi>
Mon, 30 Oct 2023 17:20:23 +0000 (19:20 +0200)
commitbffd2b39944330b0ffbaba62036a73d2c5e23bfb
treee31a60b2b48239687715cb071395bc1e83817cde
parent9e426e068d0a98003f03c8288c6ace2cb14a4aa6
nl80211: Skip interface down/up when setting MAC address

A driver may not support setting MAC address when interface is UP, so
wpa_supplicant used to always sets the interface down for MAC address
change.

Try to change the address first without setting the interface down and
then fall back to DOWN/set addr/UP if the first attempt failed. This can
reduce the interface setup time for time-critical use cases.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/drivers/driver_nl80211.c