Skip to contentSkip to conversation

proper method to change the MAC address of an ath9k device?

ath9k-devel Clem Taylor 2 participants 2 messages Oct 6, 2008 – Oct 13, 2008

lore
Share & tools
lore
#0 lore raw

What is the proper way to change the MAC address on an ath9k based device?

When I do this:
ip link set dev wlan0 down
ip link set addr "$newmac" dev wlan0
ip link set dev wlan0 up

ifconfig shows the new MAC address, but I stop being able to authenticate with WEP or WPA2 (via wpa_supplicant). The authentication fails with:
wlan0: direct probe to AP <AP-MAC> timed out

If I use the default MAC address, the authentication works just fine.

With madwifi I would:
wlanconfig ath0 destroy
ip link set dev wifi0 down
ip link set addr "$newmac" dev wifi0
ip link set dev wifi0 up
wlanconfig ath0 create wlandev wifi0 wlanmode sta

Any ideas?
Clem

#1 lore raw
Quoted 12 lines · Clem Taylor

What is the proper way to change the MAC address on an ath9k based device?

When I do this:
ip link set dev wlan0 down
ip link set addr "$newmac" dev wlan0
ip link set dev wlan0 up

ifconfig shows the new MAC address, but I stop being able to authenticate with WEP or WPA2 (via wpa_supplicant). The authentication fails with:
wlan0: direct probe to AP <AP-MAC> timed out

Quoted 8 lines

If I use the default MAC address, the authentication works just fine.

With madwifi I would:
wlanconfig ath0 destroy
ip link set dev wifi0 down
ip link set addr "$newmac" dev wifi0
ip link set dev wifi0 up
wlanconfig ath0 create wlandev wifi0 wlanmode sta

We'll need to test and confirm and fix this, thanks for letting us know.

Luis