From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 2 Jul 2005 15:29:02 +0400 From: Sergey Vlasov To: devel@altlinux.ru Subject: Re: [devel] wpa_supplicant is broken Message-ID: <20050702112902.GA15509@procyon.home> Mail-Followup-To: devel@altlinux.ru References: <20050702075943.GA10845@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <20050702075943.GA10845@altlinux.org> X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2005 11:29:20 -0000 Archived-At: List-Archive: List-Post: --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 02, 2005 at 11:59:43AM +0400, Alexander Bokovoy wrote: > --- driver_ipw.c.orig 2005-05-24 09:44:25 +0400 > +++ driver_ipw.c 2005-07-02 11:31:40 +0400 > @@ -73,19 +73,18 @@ > } wpa_param; > struct { > u32 len; > - u8 reserved[32]; > - u8 data[0]; > + u8 *data; > } wpa_ie; > struct{ > - u32 command; > - u32 reason_code; > + int command; > + int reason_code; > } mlme; > struct { > u8 alg[IPW_CRYPT_ALG_NAME_LEN]; > u8 set_tx; > u32 err; > u8 idx; > - u8 seq[8]; > + u8 seq[8]; /* sequence counter (set: RX, get: TX) */ > u16 key_len; > u8 key[0]; > } crypt; > @@ -161,6 +160,7 @@ > memset(param, 0, blen); > param->cmd =3D IPW_CMD_SET_WPA_IE; > param->u.wpa_ie.len =3D wpa_ie_len; > + param->u.wpa_ie.data =3D (u8 *) malloc(wpa_ie_len); =E1 free =CB=D4=CF =C2=D5=C4=C5=D4 =C4=C5=CC=C1=D4=D8? > memcpy(param->u.wpa_ie.data, wpa_ie, wpa_ie_len); > =09 > ret =3D ipw_ioctl(drv, param, blen, 1); --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCxnp9W82GfkQfsqIRAmeMAKCKra8c37Vput1kpBdLnfIisGi1NgCeNsE8 5AyUFCvwgKWquYXjBhvvGeA= =/fi1 -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--