[OpenWrt-Devel] [PATCH 3/8] ath9k: show platform MAC address in kernel log if set
Michal
michal.cieslakiewicz at wp.pl
Tue Jan 26 19:36:27 EST 2016
From: Michal Cieslakiewicz <michal.cieslakiewicz at wp.pl>
Add information in kernel log during module startup if MAC address
of WLAN device is overridden by platform-supplied one.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz at wp.pl>
---
.../mac80211/patches/548-ath9k_platform_mac_info.patch | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 package/kernel/mac80211/patches/548-ath9k_platform_mac_info.patch
diff --git a/package/kernel/mac80211/patches/548-ath9k_platform_mac_info.patch b/package/kernel/mac80211/patches/548-ath9k_platform_mac_info.patch
new file mode 100644
index 0000000..76115e1
--- /dev/null
+++ b/package/kernel/mac80211/patches/548-ath9k_platform_mac_info.patch
@@ -0,0 +1,16 @@
+--- a/drivers/net/wireless/ath/ath9k/init.c
++++ b/drivers/net/wireless/ath/ath9k/init.c
+@@ -640,8 +640,12 @@ static int ath9k_init_softc(u16 devid, s
+ if (ret)
+ goto err_hw;
+
+- if (pdata && pdata->macaddr)
++ if (pdata && pdata->macaddr) {
+ memcpy(common->macaddr, pdata->macaddr, ETH_ALEN);
++ ath_info(common,
++ "platform MAC address will be used: %pM\n",
++ common->macaddr);
++ }
+
+ ret = ath9k_init_queues(sc);
+ if (ret)
--
2.6.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list