[Prism54-users] Output power patch

kaleda gadeanta@soften.ktu.lt
Fri, 09 Jan 2004 14:41:13 +0200


--=-U4kDKwU5dtclqGWhg1e8
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

As promissed, I made the output power patch against todays latest cvs 
tarball.
This patch uses standart wireless extentions output power ioctl, and is
controlled with iwconfig txpower.

I made no limitation (like 30dBm max or something) - I leave the
firmware to limit it. I think it's honest way.

Kaleda

--=-U4kDKwU5dtclqGWhg1e8
Content-Disposition: attachment; filename=outputpower.diff
Content-Type: text/x-patch; name=outputpower.diff; charset=UTF-8
Content-Transfer-Encoding: base64

ZGlmZiAtdU5yIHByaXNtNTQub3JpZy9rc3JjL2lzbF9pb2N0bC5jIHByaXNtNTQva3NyYy9pc2xf
aW9jdGwuYw0KLS0tIHByaXNtNTQub3JpZy9rc3JjL2lzbF9pb2N0bC5jCTIwMDQtMDEtMDkgMDM6
MDA6NDIuMDAwMDAwMDAwICswMjAwDQorKysgcHJpc201NC9rc3JjL2lzbF9pb2N0bC5jCTIwMDQt
MDEtMDkgMTM6NTc6MDYuMDAwMDAwMDAwICswMjAwDQpAQCAtOTE1LDYgKzkxNSw5IEBADQogCXJh
bmdlLT5taW5fcl90aW1lID0gMTAyNDsNCiAJcmFuZ2UtPm1heF9yX3RpbWUgPSA2NTUzNSAqIDEw
MjQ7DQogDQorCS8qIHR4cG93ZXIgaXMgc3VwcG9ydGVkIGluIGRCbSdzICovDQorCXJhbmdlLT50
eHBvd2VyX2NhcGEgPSBJV19UWFBPV19EQk07DQorDQogCWlmIChpc2xwY2lfZ2V0X3N0YXRlKHBy
aXYpIDwgUFJWX1NUQVRFX0lOSVQpDQogCQlyZXR1cm4gMDsNCiANCkBAIC0xNjAxLDYgKzE2MDQs
NTAgQEANCiAJcmV0dXJuIDA7DQogfQ0KIA0KKw0KKw0KK3N0YXRpYyBpbnQNCitwcmlzbTU0X2dl
dF90eHBvd2VyKHN0cnVjdCBuZXRfZGV2aWNlICpuZGV2LCBzdHJ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