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

Stefan Rompf stefan at loplof.de
Fri May 22 15:37:43 EDT 2015


Hi Kirill,

> 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 think the sequence looks like this:

00  00 b20 00  00  00  00  00  00  00  00
00  00 x 00  00  00  00  00  00  00  00
00  00 m 00  00  00  00  00  00  00  00
00  00 f02412 00  00  00  00  00  00  00  00

Two zeros preamble, the command, followed by 8 zeros. I haven't yet checked 
whether something is read while the commands are sent.

Given that issueing a channel change takes noticeable time, you could try 
adding an usleep(150000) after the eight zero bytes have been sent. Just 
guessing, maybe hsr.c is simply running too fast.

> I also found in the code new commands 115 (lock), 120, 109, and 102.

Haven't seen 115 in my logs so far...

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

Maybe my fault. The very first "ifconfig ath0 up" after the interface has been 
created with athbox sends multiple sequences switching to different channels, 
ending with the selected channel.



More information about the openwrt-devel mailing list