[OpenWrt-Devel] [PATCH 3/8] ath9k: show platform MAC address in kernel log if set
Hartmut Knaack
knaack.h at gmx.de
Sat Jan 30 13:07:16 EST 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Michal schrieb am 27.01.2016 um 01:36:
> 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>
Acked-by: Hartmut Knaack <knaack.h at gmx.de>
> ---
> .../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)
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJWrPvUAAoJEANoShj6yJFINx4QAJDwxgt9uc+k0d/zeaUXBcn4
EGA9dMvLjSlrAUx9zMwjTtkZDco24qBIub28RUPhuAdO4qecJHjuFJNIoaqlE+GJ
RrvAh/tsRi9LJ7WZnDzg5S9XvV+9tfgJxac3ib3ZJKD+5DsX+pVj+WX3JqEC7XaG
NLW3QqST00eVNIv7xk/3WbB6erd9ju1abFi0KrUgLOhUhfO3NuWYC/05hJTC2dQ1
7SVTCjoVjU3m+G+qEqJXC0qtdomqj/u4gdJpLLjtsk0wsDMNGEANGf6KctSJhupu
bEA3hU/xtUEXpGAT+rkL76afGkfSfAF7myKhOJeCiD0/qQhQQGOhd7OSxqMUni1x
Rc0DM9L5RA4LwPGx5H4hXGaT+7zCFEtAOV9uOfbAIRuzz4wBOROvWKwQKSUxr87H
jb1dslCJqA0tSIK4WEcQn3AoW5WpUKjAfGkhGngn7R87Fs5Llzch+BuTGJGrJ4in
aSBUztddz4+aA4dnMQXSTRsKNr1FSZF6K/ol8FIADW/3utk/7YFCpIDPj9A2acRa
ht4etrIQ09k6xO1Z2LWHue4D0Uu1TyoRKnn7j+EKxhsl+EjxeOi7q3cMhGQO78NW
/LTOsOcTx4xE2wUfbbemT1+ffhSm5pQdZTlpAzXDgj4bkhDB6pcFPoRIPRv+B0UV
j1QBvJOvhYXQJyQjrhpU
=9beH
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xFAC89148.asc
Type: application/pgp-keys
Size: 3104 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160130/c5b3500c/attachment.bin>
-------------- next part --------------
_______________________________________________
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