]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Re-read MAC address on RTM_NEWLINK
authorDan Williams <dcbw@redhat.com>
Thu, 2 Oct 2014 15:30:05 +0000 (10:30 -0500)
committerJouni Malinen <j@w1.fi>
Sat, 4 Oct 2014 13:41:20 +0000 (16:41 +0300)
commit3e0272ca00ce1df35b45e7d739dd7e935f13fd84
tree3ab6ffe79eb4673abce2a8a9112d82440903bd17
parent5dfbd725a95d50475c63ab3a2e85031afd68614b
nl80211: Re-read MAC address on RTM_NEWLINK

Commit 97279d8d (after hostap-2.0) dropped frame events from foreign
addresses. Unfortunately this commit did not handle the case where the
interface's MAC address might be changed externally, which other
wpa_supplicant code already handled. This causes the driver to reject
any MLME event because the address from the event doesn't match the
stale address in the driver data.

Changing an interface's MAC address requires that the interface be
down, the change made, and then the interface brought back up. This
triggers an RTM_NEWLINK event which driver_nl80211.c can use to
re-read the MAC address of the interface.

Signed-hostap: Dan Williams <dcbw@redhat.com>
src/drivers/driver_nl80211.c