[PATCH] ath79: add support for gl-e750
mail at adrianschmutzler.de
mail at adrianschmutzler.de
Fri Jul 10 08:50:57 EDT 2020
> > What about caldata? Is there a valid address in 0x5006?
> > ---> Calibration data for the E750 is not stored in flash, therefore, the MAC
> address is not read from 0x5006.
> > ---> In the production process of GL router, a basic MAC address will be
> written at the beginning of ART, and I calculate the MAC address of 5G
> through this MAC address.
>
> Okay, then please consolidate the MAC address setup like the following:
>
> > + glinet,gl-e750)
> > + # Set mac address for 5g device
> > + [ "$PHYNBR" -eq 0 ] && \
> > + macaddr_add $(mtd_get_mac_binary art 0x0) 2) >
> /sys${DEVPATH}/macaddress
> > + ;;
BTW: Would the following DTS statement work for your device _instead_ of the code in 10-fix-wifi-mac:
&pcie0 {
status = "okay";
wifi at 0,0 {
compatible = "qcom,ath10k";
reg = <0x0000 0 0 0 0>;
mtd-mac-address = <&art 0x0>;
mtd-mac-address-increment = <2>;
};
};
Best
Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20200710/de6ff43e/attachment.sig>
More information about the openwrt-devel
mailing list