[OpenWrt-Devel] [PATCH] ar71xx: add support for the UniFi AP Outdoor Plus

Kirill Berezin kyb22 at rol.ru
Fri May 22 08:50:30 EDT 2015


Hi,

Updated version is in the attachment. I tried it on a real device, but I 
can't say that the problem was solved, but something is definitely happens.

Unfortunately I couldn't find where a bunch of zeros were generated, so 
I skipped this part ))) (I tried a version with zeros, but no luck).

I also found in the code new commands 115 (lock), 120, 109, and 102. It 
seems that commands 120 and 109 do not require arguments. And I think 
that arguments for commands 98 and 102 are sequences of ascii symbols, 
so the dump you sent can be interpreted as


   2 00 00 00 00 00 00 00 00
       1 00 01 01 00 00 00 01 00  (the 98 disable command) b(andwidth)
       1 00 00 01 01 00 00 01 00  50
       1 00 00 01 01 00 00 00 00  48 -> 20
      10 00 00 00 00 00 00 00 00
       1 00 01 01 01 01 00 00 00  120 x
      10 00 00 00 00 00 00 00 00
       1 00 01 01 00 01 01 00 01  109 m
      10 00 00 00 00 00 00 00 00
       1 00 01 01 00 00 01 01 00  102 f(requency)
       1 00 00 01 01 00 00 00 00  48 0
       1 00 00 01 01 00 00 01 00  50 2
       1 00 00 01 01 00 01 00 00  52 4
       1 00 00 01 01 00 00 00 01  49 1
       1 00 00 01 01 00 01 01 01  55 7
       7 00 00 00 00 00 00 00 00
       1 00 00 00 00 00 00 00 00

However 2417 is a center for channel 2, but how knows ...

Kirill.


On 05/21/2015 01:09 AM, Stefan Rompf wrote:
> Hi,
>
>> -Trapping ar5416GpioSet with some hand crafted assembly code that traces
>> calls and logs them somewhere
>
> this works. I've trapped ar5416GpioSet, putting my code into space occupied by
> the unused function ar5416GpioCfgInput. ar5416GpioGet is work to do. I can
> send the code, but it will require adoption to your environment.
>
> Tuning to channel 1 revealed the following commands sent via the SPI protocol
> you discovered (first column is number of repetitions).
>
>        2 00 00 00 00 00 00 00 00
>        1 00 01 01 00 00 00 01 00  (the 98 disable command)
>        1 00 00 01 01 00 00 01 00
>        1 00 00 01 01 00 00 00 00
>       10 00 00 00 00 00 00 00 00
>        1 00 01 01 01 01 00 00 00
>       10 00 00 00 00 00 00 00 00
>        1 00 01 01 00 01 01 00 01
>       10 00 00 00 00 00 00 00 00
>        1 00 01 01 00 00 01 01 00
>        1 00 00 01 01 00 00 00 00
>        1 00 00 01 01 00 00 01 00
>        1 00 00 01 01 00 01 00 00
>        1 00 00 01 01 00 00 00 01
>        1 00 00 01 01 00 01 01 01
>        7 00 00 00 00 00 00 00 00
>        1 00 00 00 00 00 00 00 00
>
> I'll test repeated tuning, other channels and GpioGet next weekend, it's quite
> in the late evening here by now ;-)
>
> Stefan
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hsr.c
Type: text/x-csrc
Size: 5435 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150522/8dd30aca/attachment.bin>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list