Hi, On 11/12/2015 12:29:00 CET, John Crispin wrote:
On 05/12/2015 12:04, Vittorio G (VittGam) wrote:esw@10110000 { ralink,portmap = <0x10>; + ralink,portdisable = <0x2f>; };i think it makes more sense to derive 0x2f from the 0x10 as both together will always be 0x3f
No, it does not. Portmap selects which ports are LAN ports and which are WAN ports. Here the only port (4) is selected as LAN. Portdisable instead selects which port we need to power down in order to save power. In this case, every port except 4 is selected because 4 is the only port. The fact that for this router the combination is 0x3f is just a coincidence. Cheers, Vittorio G _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
