[LEDE-DEV] [PATCH v2] ramips: fix GL-inet GL-MT300N-V2 LAN MAC address

Kyson Lok kysonlok at gmail.com
Tue Mar 20 04:00:38 PDT 2018


Here is our customer's issue.

> Flash Openwrt snapshot from https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/openwrt-ramips-mt76x8-gl-mt300n-v2-squashfs-sysupgrade.bin
>
> Install luci, luci-sqm-app packages
>
> Configure SQM QoS by setting interface name to eth0.2 and entering download and upload speeds (my upload speed is lower than download)
>
> Click Save & Apply
>
> Start a large download or speedtest
>
> Actual results:
>
> Download speed is capped to the upload speed
>
> Expected results:
>
> Download speed should be close to the download speed entered
>
> Stock firmware does not have this bug. In stock firmware (I used 2.27-testing), /etc/config/network contains the section “config device ‘lan_dev’”.
> This section is missing in the Openwrt snapshots. Copying this 3-line section from stock firmware to Openwrt snapshot fixes the bug. The only
> drawback I found is that the MAC address cannot be changed with the luci interface, it can still be changed by editing /etc/config/network.


On Tue, Mar 20, 2018 at 5:22 PM, Koen Vandeputte
<koen.vandeputte at ncentric.com> wrote:
>
>
> On 2018-03-20 09:54, Kyson Lok wrote:
>>
>> Override the LAN MAC to use the same address as WAN.
>> The stock firmware uses the same MAC address for all
>> interfaces.
>
> Besides blindly following the stock firmware behavior,
> is there *any* advantage in doing this?
>
>>
>> Signed-off-by: Kyson Lok <kysonlok at gmail.com>
>> ---
>>   target/linux/ramips/base-files/etc/board.d/02_network | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/target/linux/ramips/base-files/etc/board.d/02_network
>> b/target/linux/ramips/base-files/etc/board.d/02_network
>> index 03f718e..c26d77f 100755
>> --- a/target/linux/ramips/base-files/etc/board.d/02_network
>> +++ b/target/linux/ramips/base-files/etc/board.d/02_network
>> @@ -441,6 +441,7 @@ ramips_setup_macs()
>>                 wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
>>                 ;;
>>         gl-mt300n-v2)
>> +               lan_mac=$(mtd_get_mac_binary factory 4)
>>                 wan_mac=$(mtd_get_mac_binary factory 4)
>>                 ;;
>>         hc5*61|\
>
>



-- 
Regards,
Kyson.Lok

GL Technologies
Mob: +86 18344034413
Whatsapp: +8618344034413
Website: https://www.gl-inet.com
Address: Room 306, Skyworth Digital Building, Shiyan Street, Baoan
District, Shenzhen, China



More information about the Lede-dev mailing list