-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Michal schrieb am 01.02.2016 um 22:26:
> 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>
Acked-by: Hartmut Knaack <knaac...@gmx.de>
> ---
>  .../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)
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWr+dJAAoJEANoShj6yJFIKksP/jlNmkTEXw3Rnr2jjIgy+kUh
CekJ4LNuuJog4MUO75F06NO0haXQZI+OGllm6pOTmMLdTKJ65FX0NoEcst7bCctm
ukZ8i1CWOp/6j7NgSGirbFK2bDNnZX+5rP93V0MBVEXQGJogKgvEE0t2KLNcZW8u
rjFuNNdzLYsI7MpY+P1Y/6XzV5SWx1JJwtpxdAvP8PtXBAaHml3K/pFjmwEE2OK0
hEgGjVP49LG/crLwCgyK44PpEh9pAO7551MwbKcZih9vTj+fG/h5IkkGTE82bAAV
mJgzm1D/O7mvt0QtK2CasY3MZh5a8E2RDJLewp0GsddbISfJPBDh2ee460NftH5T
rapHCkw0L8upwEIwWQT8/2EYkHv4kKFgNNurErkaiuzarlVCMmkbxHx9vn/Tnlk3
8KW3O8fDdU03b0bkGF6UQ8kV0gtjszFm5XV/SbH9WSRlfJQqd2SJtMPhxskTyyLI
T3FVqjn28CvEo+wEtKnMZwGpTkUrtrSSjJYNpMGRPjA9b9q/Jf7ZJka4OnUYbNZ3
cw/QGmPH56qSw0ta4Vl8vA+iyVKeZGruH8pE51GwbIL5CjJugzzDyu9MUqrcgRMX
c+imYvVulCFCJ6f7YxtO8GfApXLCtNPVblUkxj1R2ael4tGgZ/9/Q5S7z6yQSKkl
QjxI4Yj5ex/GLPZTOhk2
=GTZj
-----END PGP SIGNATURE-----

Attachment: 0xFAC89148.asc
Description: application/pgp-keys

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to