[ap-utils] Patch to make ap-config able to set ESSID on powerpc linux

Roman Festchook roma at polesye.net
Tue Feb 24 23:51:02 EET 2004


=F0=CF=CE 23 =EC=C0=D4 2004 05:54, Daniel E. Eisenbud =F7=C9 =CE=C1=D0=C9=
=D3=C1=CC=C9:
> There's an endianness issue in wlan.c that makes ap-config always set
> the ESSID to an empty string on powerpc linux.  (This is with a Netgear
> ME102, but that's irrelevant.)  The SNMP packet setting the ESSID
> specifies that the length of the string is 0, and also sends the
> correct string.  I used snmpset to send the same packet with the correc=
t
> length, and it worked.
>
> A quick inspection of wlan.c revealed that this was the result of
> casting an int pointer to a char pointer.  The attached patch fixes the
> problem, but I haven't checked that there aren't other such problems in
> the source.  I presume that this is an issue MacOS X and some other
> platforms as well.
Thank you for detailed bugreport with analyz and fix - its will be the gr=
eat=20
if all bugsreports be like yours!
:))

--=20
Roman Festchook
Network Engineer
RF2-UANIC FRA11-RIPE




More information about the ap-utils mailing list