[Prism54-users] Output power regulation - SMC2802W
Jens Maurer
Jens.Maurer@gmx.net
Tue, 06 Jan 2004 23:39:06 +0100
This is a multi-part message in MIME format.
--------------010305070209000803000006
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Martin Viteznik wrote:
> Hi,
> can anyone tell me how to regulate output power of SMC2802W?
> In old p54 forum I found this:
>
> OID_INL_OUTPUTPOWER FF02000F
>
>> Output power in units of 0.25 dBm.
>> The highest maximum output power is restricted to the value at which
>> the card was calibrated to. And also the regulatory restrictions of
>> the country domain. Looks like the OID is readable and writeable and
>> not latched.
Here's a patch that allows to set outputpower in 0.25 dBm units.
My card says 127 when queried and allowed me to set it to 30.
YMMV.
Probably needs some documenting regarding the 0.25 dBm units
business.
Jens Maurer
--------------010305070209000803000006
Content-Type: text/plain;
name="outputpower.patch"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="outputpower.patch"
SW5kZXg6IGlzbHBjaV9kZXYuaAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvdmFyL2xpYi9j
dnMvcHJpc201NC1uZy9rc3JjL2lzbHBjaV9kZXYuaCx2CnJldHJpZXZpbmcgcmV2aXNpb24g
MS4zNApkaWZmIC11IC1yMS4zNCBpc2xwY2lfZGV2LmgKLS0tIGlzbHBjaV9kZXYuaAkyNiBE
ZWMgMjAwMyAxNjozMjozMSAtMDAwMAkxLjM0CisrKyBpc2xwY2lfZGV2LmgJNiBKYW4gMjAw
NCAyMjoyNjo1MiAtMDAwMApAQCAtODQsNiArODQsNyBAQAogCXZvbGF0aWxlIHUzMiBzaG9y
dHJldHJpZXM7CiAJdm9sYXRpbGUgdTMyIGxvbmdyZXRyaWVzOwogCXZvbGF0aWxlIHUzMiBt
YXh0eGxpZmV0aW1lOworCXZvbGF0aWxlIHUzMiBvdXRwdXRwb3dlcjsKIAogCXN0cnVjdCBz
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