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. >From this point on, a channel change sends one of the sequences above with the center frequency of the selected channel. Stefan _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel