[PATCH] generic: platform/mikrotik: implement multi caldata

Thibaut hacks at slashdirt.org
Mon Oct 19 14:01:41 EDT 2020


> Le 8 oct. 2020 à 11:11, Thibaut <hacks at slashdirt.org> a écrit :
> 
> Hi,
> 
>> On 7 Oct 2020, at 22:41, Alexander 'lynxis' Couzens <lynxis at fe80.eu> wrote:
>> 
>> On Fri, 25 Sep 2020 21:09:26 +0200
>> Thibaut <hacks at slashdirt.org> wrote:
>> 
>>> Ping?
>> 
>> LGTM.
>> 
>> What's in the "$wdata/data_0" file? Is it the BDF?
> 
> My understanding is (disclaimer: I don’t own any hardware that exposes these new files) that on old style devices, the calibration (and BDF where applicable, which means it could be dynamically loaded as well) data of all radios was packed into a single payload, which got exposed as the “wlan_data” sysfs file. Userspace then had to apply offsets to access data pertaining to each radio.
> 
> New style simply separates each radio into its own payload, so data_0 is calib (+BDF where applicable) for one of the radios and so on, which makes it easier to process (probably for RouterOS as well, hence the change ;)
> 
> There are some devices out there which have been shipped with both styles (the hap-ac2 is one of them), hence the patch ensure that 1) previous behavior is unchanged and 2) it’s “easy” to accommodate both styles in userspace (as suggested in the commit log).

CC’ing Robert Marko who wants to add his Tested-by.

Patch at https://patchwork.ozlabs.org/project/openwrt/patch/20200824103840.38920-1-hacks@slashdirt.org/

Cheers


More information about the openwrt-devel mailing list