linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wl18xx: wlconf kernel compatibility
@ 2015-05-26 10:09 Yegor Yefremov
  2015-06-06 13:27 ` Kalle Valo
  0 siblings, 1 reply; 5+ messages in thread
From: Yegor Yefremov @ 2015-05-26 10:09 UTC (permalink / raw)
  To: linux-wireless; +Cc: Machani, Yaniv, Eliad Peller, Marc Kleine-Budde

How do I know, which wlconf version is compatible with which kernel
version? I have following problem:

I have *.INI file for my particular WLAN chip. This file will be used
to produce wl18xx-conf.bin. The size of this file will be check during
device initialization. Depending on which kernel version is used the
size of the required file differs. For example kernel 3.18 requires
wl18xx-conf.bin to have 1221 bytes, 4.1 expects 1226 bytes. Recent
wlconf (git://git.ti.com/wilink8-wlan/18xx-ti-utils.git) produces 1229
bytes files.

How should I determine correct wlconf version?

Regards,
Yegor

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: wl18xx: wlconf kernel compatibility
  2015-05-26 10:09 wl18xx: wlconf kernel compatibility Yegor Yefremov
@ 2015-06-06 13:27 ` Kalle Valo
  2015-06-06 15:19   ` Yegor Yefremov
  0 siblings, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2015-06-06 13:27 UTC (permalink / raw)
  To: Yegor Yefremov
  Cc: linux-wireless, Machani, Yaniv, Eliad Peller, Marc Kleine-Budde

Yegor Yefremov <yegorslists@googlemail.com> writes:

> How do I know, which wlconf version is compatible with which kernel
> version? I have following problem:
>
> I have *.INI file for my particular WLAN chip. This file will be used
> to produce wl18xx-conf.bin. The size of this file will be check during
> device initialization. Depending on which kernel version is used the
> size of the required file differs. For example kernel 3.18 requires
> wl18xx-conf.bin to have 1221 bytes, 4.1 expects 1226 bytes. Recent
> wlconf (git://git.ti.com/wilink8-wlan/18xx-ti-utils.git) produces 1229
> bytes files.
>
> How should I determine correct wlconf version?

I also complained about something along these lines earlier, this is not
how upstream drivers are supposed to work. Users should not be forced to
find correct files from somewhere, instead everything should just work
out of box.

Can anyone help Yegor to solve his problem? But in the long run wl18xx
really should manage this better.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: wl18xx: wlconf kernel compatibility
  2015-06-06 13:27 ` Kalle Valo
@ 2015-06-06 15:19   ` Yegor Yefremov
  2015-06-07  7:30     ` Machani, Yaniv
  0 siblings, 1 reply; 5+ messages in thread
From: Yegor Yefremov @ 2015-06-06 15:19 UTC (permalink / raw)
  To: Kalle Valo
  Cc: linux-wireless, Machani, Yaniv, Eliad Peller, Marc Kleine-Budde

Hi Kalle,

On Sat, Jun 6, 2015 at 3:27 PM, Kalle Valo <kvalo@codeaurora.org> wrote:
> Yegor Yefremov <yegorslists@googlemail.com> writes:
>
>> How do I know, which wlconf version is compatible with which kernel
>> version? I have following problem:
>>
>> I have *.INI file for my particular WLAN chip. This file will be used
>> to produce wl18xx-conf.bin. The size of this file will be check during
>> device initialization. Depending on which kernel version is used the
>> size of the required file differs. For example kernel 3.18 requires
>> wl18xx-conf.bin to have 1221 bytes, 4.1 expects 1226 bytes. Recent
>> wlconf (git://git.ti.com/wilink8-wlan/18xx-ti-utils.git) produces 1229
>> bytes files.
>>
>> How should I determine correct wlconf version?
>
> I also complained about something along these lines earlier, this is not
> how upstream drivers are supposed to work. Users should not be forced to
> find correct files from somewhere, instead everything should just work
> out of box.
>
> Can anyone help Yegor to solve his problem? But in the long run wl18xx
> really should manage this better.

I could solve the problem, though for the future it should be clear,
what wlconf version to use.

See my post here:
http://e2e.ti.com/support/wireless_connectivity/f/307/p/426229/1523235#1523235

Yegor

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: wl18xx: wlconf kernel compatibility
  2015-06-06 15:19   ` Yegor Yefremov
@ 2015-06-07  7:30     ` Machani, Yaniv
  2015-06-08  8:15       ` Yegor Yefremov
  0 siblings, 1 reply; 5+ messages in thread
From: Machani, Yaniv @ 2015-06-07  7:30 UTC (permalink / raw)
  To: Yegor Yefremov, Kalle Valo
  Cc: linux-wireless, Eliad Peller, Marc Kleine-Budde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VyLCB0aGlzIGlzDQo+ID4gbm90IGhvdyB1cHN0cmVhbSBk
cml2ZXJzIGFyZSBzdXBwb3NlZCB0byB3b3JrLiBVc2VycyBzaG91bGQgbm90IGJlDQo+ID4gZm9y
Y2VkIHRvIGZpbmQgY29ycmVjdCBmaWxlcyBmcm9tIHNvbWV3aGVyZSwgaW5zdGVhZCBldmVyeXRo
aW5nIHNob3VsZA0KPiA+IGp1c3Qgd29yayBvdXQgb2YgYm94Lg0KPiA+DQo+ID4gQ2FuIGFueW9u
ZSBoZWxwIFllZ29yIHRvIHNvbHZlIGhpcyBwcm9ibGVtPyBCdXQgaW4gdGhlIGxvbmcgcnVuIHds
MTh4eA0KPiA+IHJlYWxseSBzaG91bGQgbWFuYWdlIHRoaXMgYmV0dGVyLg0KPiANCj4gSSBjb3Vs
ZCBzb2x2ZSB0aGUgcHJvYmxlbSwgdGhvdWdoIGZvciB0aGUgZnV0dXJlIGl0IHNob3VsZCBiZSBj
bGVhciwgd2hhdCB3bGNvbmYNCj4gdmVyc2lvbiB0byB1c2UuDQo+IA0KPiBTZWUgbXkgcG9zdCBo
ZXJlOg0KPiBodHRwOi8vZTJlLnRpLmNvbS9zdXBwb3J0L3dpcmVsZXNzX2Nvbm5lY3Rpdml0eS9m
LzMwNy9wLzQyNjIyOS8xNTIzMjM1IzE1Mg0KPiAzMjM1DQo+IA0KPiBZZWdvcg0K

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: wl18xx: wlconf kernel compatibility
  2015-06-07  7:30     ` Machani, Yaniv
@ 2015-06-08  8:15       ` Yegor Yefremov
  0 siblings, 0 replies; 5+ messages in thread
From: Yegor Yefremov @ 2015-06-08  8:15 UTC (permalink / raw)
  To: Machani, Yaniv
  Cc: Kalle Valo, linux-wireless, Eliad Peller, Marc Kleine-Budde, Luca Coelho

Hi Yaniv,

On Sun, Jun 7, 2015 at 9:30 AM, Machani, Yaniv <yanivma@ti.com> wrote:
> Hi,
> As the configuration file is HW depended it should be created per platform,
> we have set this wiki page and script to help with initial setup :
> http://processors.wiki.ti.com/index.php/Open_Source_Wireless_Connectivity_wlconf
>
> We have also pushed a patch that makes sure the driver will not crash if there is a file size mismatch,
> and will fall back to default.

What about following proposal. I'm learning libxmlrpc now. It has
following struct *xmlrpc_server_abyss_parms*
(http://xmlrpc-c.sourceforge.net/doc/libxmlrpc_server_abyss.html#server_abyss_parameters).
If new parameter will be added, it is done via appending this to the
bottom of the structure. This way old structure is still preserved.

The user of this library must specify till what parameter this
structure should be used (parmSize parameter):

oid
xmlrpc_server_abyss(xmlrpc_env *                const envP,
                    xmlrpc_server_abyss_parms * const parmP,
                    unsigned int const parmSize);

This will be achieved via XMLRPC_APSIZE(log_file_name), i.e. macro
with structure field name. This way old programs still can work with
newer library.

This approach could be taken for wl18xx-conf.bin. Driver calculates
the size of known parameters and conf file size and as long as the
size of wl18xx-conf.bin is not smaller than known size, the driver can
use it.

What do you think about it?

Yegor

>> -----Original Message-----
>> From: Yegor Yefremov [mailto:yegorslists@googlemail.com]
>> Sent: Saturday, June 06, 2015 6:19 PM
>> To: Kalle Valo
>> Cc: linux-wireless@vger.kernel.org; Machani, Yaniv; Eliad Peller; Marc Kleine-
>> Budde
>> Subject: Re: wl18xx: wlconf kernel compatibility
>>
>> Hi Kalle,
>>
>> On Sat, Jun 6, 2015 at 3:27 PM, Kalle Valo <kvalo@codeaurora.org> wrote:
>> > Yegor Yefremov <yegorslists@googlemail.com> writes:
>> >
>> >> How do I know, which wlconf version is compatible with which kernel
>> >> version? I have following problem:
>> >>
>> >> I have *.INI file for my particular WLAN chip. This file will be used
>> >> to produce wl18xx-conf.bin. The size of this file will be check
>> >> during device initialization. Depending on which kernel version is
>> >> used the size of the required file differs. For example kernel 3.18
>> >> requires wl18xx-conf.bin to have 1221 bytes, 4.1 expects 1226 bytes.
>> >> Recent wlconf (git://git.ti.com/wilink8-wlan/18xx-ti-utils.git)
>> >> produces 1229 bytes files.
>> >>
>> >> How should I determine correct wlconf version?
>> >
>> > I also complained about something along these lines earlier, this is
>> > not how upstream drivers are supposed to work. Users should not be
>> > forced to find correct files from somewhere, instead everything should
>> > just work out of box.
>> >
>> > Can anyone help Yegor to solve his problem? But in the long run wl18xx
>> > really should manage this better.
>>
>> I could solve the problem, though for the future it should be clear, what wlconf
>> version to use.
>>
>> See my post here:
>> http://e2e.ti.com/support/wireless_connectivity/f/307/p/426229/1523235#152
>> 3235
>>
>> Yegor

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-08  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-26 10:09 wl18xx: wlconf kernel compatibility Yegor Yefremov
2015-06-06 13:27 ` Kalle Valo
2015-06-06 15:19   ` Yegor Yefremov
2015-06-07  7:30     ` Machani, Yaniv
2015-06-08  8:15       ` Yegor Yefremov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).