#18450: lan port not working on latest trunk TL-WA901ND v2
------------------------+------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords:
------------------------+------------------------
Comment (by vaclav.ovsik@…):
I discovered the cause of error message
{{{
sh: 0xffff: bad number
}}}
It is apparently the code in {{{/lib/wifi/broadcom.sh}}} Operator
{{{-eq}}} can't compare hexadecimal numbers directly. I tried a change to
convert a hexadecimal number using arithmetic evaluation first:
{{{
--- broadcom.sh.orig 2014-12-21 19:12:40.388257139 +0100
+++ broadcom.sh 2014-12-21 19:12:40.348257323 +0100
@@ -218,7 +218,7 @@
}
local leddc=$(wlc ifname "$device" leddc)
- [ "$leddc" -eq 0xffff ] || {
+ [ $(($leddc)) -eq $((0xffff)) ] || {
leddc=0x005a000a;
}
}}}
Reload is without the error message with this change.
--
Zito
--
Ticket URL: <https://dev.openwrt.org/ticket/18450#comment:15>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets