I tested your code with my old WNDR3700 (v1), WNDR3700v2 and WNDR3800.
All three routers got detected ok.

My v2 is "old" and its art contents stop at byte 0x28, so it uses your "\xff" branch.

Just for reference, an old bug with discussion (from you?) about this issue:
https://dev.openwrt.org/ticket/18992


Ps.
I think that you mixed the explanation regarding the old logic: The first W gets cut away when the ID is shorter, not when it is longer. 3800 would have "...+128WND..." and correct ID, but new 3700v2 would have "...+64WNDR..." at the same place and the detected ID would miss the first W.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to