prism54 Fix initialization with older firmware
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
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_commithas 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
Jeff Garzik
Appliedapplied