#20343: luci signal strength reported incorrectly for 5 GHz radio
------------------------+------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords:
------------------------+------------------------
Comment (by anonymous):
another comment by padavan:
Heh, I found the bug in 7612 when calculating a driver RSSI, when entered
in the EEPROM non-zero "External LNA Gain".
Function ConvertToRssi (cmm_sync.c).
All chips to 7612, External LNA Gain consisted of 8 bits, and asking a
positive number (at least more so in 7610). In 7612 he entered the bit 7,
which sets the + or -. For example, 0x82 means the gain of + 2dB.
The ANDES firmvar bytes transmitted in full, but in function ConvertToRssi
forgot to cut the bits 7 and calculating a RSSI is exhausted to -126 (0x82
signed for CPU) instead of two. Bug hidden, as in the actual External LNA
there is check and reset the variable to 0 LNAGain.
The bottom line:
On eLNA layout option "External LNA Gain" always works correctly and RSSI
is also calculated correctly.
On iLNA wiring parameter "External LNA Gain" should be 0, but it allows
the driver code and iLNA (probably small correction -1..2 +), but in this
case breaks RSSI calculation.
The omission of the sign bit of garbage - this is a bug in the driver,
which is shown in the above conditions and have real meaning to fix it,
discarding the sign bit, then the RSSI on the Mi-mini will go from bad
values even without correction EEPROM. I am ready to fix it.
Nevertheless, EEPROM correction is better to conduct as no external LNA to
sabzh no amplification should be zero.
--
Ticket URL: <https://dev.openwrt.org/ticket/20343#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