From: Michal Cieslakiewicz <michal.cieslakiew...@wp.pl> Subject: [PATCH v4 3/8] mac80211: ath9k: show platform MAC address in kernel log if set
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.cieslakiew...@wp.pl> --- .../patches/548-ath9k_platform_mac_info.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 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..fece1f2 --- /dev/null +++ b/package/kernel/mac80211/patches/548-ath9k_platform_mac_info.patch @@ -0,0 +1,31 @@ +From: Michal Cieslakiewicz <michal.cieslakiew...@wp.pl> +Date: Sun, 31 Jan 2016 20:51:53 +0100 +Subject: [PATCH v4 3/8] mac80211: ath9k: show platform MAC address in kernel + log if set + +Add information in kernel log during module startup if MAC address +of WLAN device is overridden by platform-supplied one. This one allows +user to see final MAC address for device, especially when invalid/random +address is assigned first and then overwritten by platform data. + +Signed-off-by: Michal Cieslakiewicz <michal.cieslakiew...@wp.pl> +--- + init.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +--- 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@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel