]> asedeno.scripts.mit.edu Git - linux.git/commit
ath9k: ath9k_hw_init_macaddr should not overwrite valid MAC addresses
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Thu, 23 Jun 2016 14:57:11 +0000 (16:57 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 8 Jul 2016 14:01:23 +0000 (17:01 +0300)
commit0cefa9749883391dd7203b059df55202863f459c
tree1402c0f5ccd6b212308b3f24ca22d4498a4a7fea
parentb27301f86cc7e2352b266d386e3d77915cfe98f1
ath9k: ath9k_hw_init_macaddr should not overwrite valid MAC addresses

Currently setting the MAC address via ath9k_platform_data works only due
to the order in which init.c sets common->macaddr, which is done after
ath9k_hw_init_macaddr was executed. It would be better if the latter
was independent of the order in which it's being called.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/hw.c