Skip to contentSkip to conversation

prism54 Fix initialization with older firmware

PATCH Applied Luis R. Rodriguez 2 participants 2 messages Jul 22, 2004 – Jul 27, 2004 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · Margit Schubert-While

2004-07-22 Margit Schubert-While <[email protected]>

* In the card initialization routine, we try to set the output power. For firmware < 1.0.4.3, this leads to a worrying "mgt_commit has failed .." in the log although the device continues to react normally.
Fix is simple, do not try to configure output power. (which I believe we should not be doing anyway as it is
probably against local country regulations)

Margit

Margit, I think we should rather detect the version of the firmware and depending on this decide what to do.

A quick test proves you can obtain firmware verion from

[OID_INL_VERSION] = {0xFF020005, 0, 8, OID_TYPE_RAW},

Then somewhere,

union oid_res_t r;
char *ver;

mgt_get_request(priv, OID_INL_VERSION, 0, NULL, &r); ver = (char *) r.ptr;
printk(KERN_DEBUG "Version: %s\n", ver);

This will either be 1.0.4.3.arm or 1.0.3.0.arm. You can then strcmp and do the right thing. I'd finish this work up but I'm busy with WPA.

Luis

Signature · 1 line
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84  A34A 6ADD 4937 E20A 525E