> -----Original Message-----
> From: Stijn Tintel [mailto:st...@linux-ipv6.be]
> Sent: Dienstag, 3. Dezember 2019 01:16
> To: m...@adrianschmutzler.de; openwrt-devel@lists.openwrt.org
> Cc: pozega.tomis...@gmail.com
> Subject: Re: [OpenWrt-Devel] [PATCH] ath79: add support for Ubiquiti LiteBeam
> AC Gen2
> 
> On 3/12/2019 02:05, m...@adrianschmutzler.de wrote:
> >> -----Original Message-----
> >> From: Stijn Tintel [mailto:st...@linux-ipv6.be]
> >> Sent: Dienstag, 3. Dezember 2019 00:58
> >> To: m...@adrianschmutzler.de; openwrt-devel@lists.openwrt.org
> >> Cc: pozega.tomis...@gmail.com
> >> Subject: Re: [OpenWrt-Devel] [PATCH] ath79: add support for Ubiquiti
> >> LiteBeam AC Gen2
> >>
> >> On 3/12/2019 01:39, m...@adrianschmutzler.de wrote:
> >>> Hi Stijn,
> >>>
> >>> does the device have a MAC address label or imprint on the box?
> >> It does.
> > Which one is it? (eth0, 2.4 GHz, 5 GHz)
> 
> 5 GHz. Does this need to be added somewhere? It's the MAC address of the
> wireless chip on the PCIe bus. As this is not defined in DTS, I don't
> know how to reference it (to set label-mac-device)?
> 
> Stijn
> 

I've recently made an effort to include the label MAC address into OpenWrt, so 
that's why I try to advertise this here :-)

If not available via DTS, you can specify label_mac in the MAC address section 
of 02_network, e.g.
https://github.com/openwrt/openwrt/blob/master/target/linux/ath79/generic/base-files/etc/board.d/02_network#L296

So, for your case it looks like you would have to add

ubnt,litebeam-ac-gen2)
        label_mac=$(mtd_get_mac_binary art 0x5006)
        ;;

inside ath79_setup_macs() there.

I've tried to provide a short overview about the label MAC address here:
https://openwrt.org/docs/guide-developer/mac.address#label_mac_address

Best

Adrian

Attachment: openpgp-digital-signature.asc
Description: PGP signature

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

Reply via email to