Linux wireless drivers development
 help / color / mirror / Atom feed
From: Jean Tourrilhes <jt@hpl.hp.com>
To: Johannes Berg <johannes@sipsolutions.net>,
	Jouni Malinen <jkmaline@cc.hut.fi>
Cc: Masakazu Mokuno <mokuno@sm.sony.co.jp>,
	linux-wireless@vger.kernel.org,
	Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>,
	geoffrey.levand@am.sony.com
Subject: Re: alignment issue between 32bit userland and 64bit kernel
Date: Mon, 9 Jul 2007 09:46:32 -0700	[thread overview]
Message-ID: <20070709164632.GA32350@bougret.hpl.hp.com> (raw)
In-Reply-To: <1183982603.18986.6.camel@johannes.berg>

On Mon, Jul 09, 2007 at 02:03:23PM +0200, Johannes Berg wrote:
> Hi,
> 
> > While developing the wireless support for PS3, I'd noticed there were alignment
> > issues if we issued some wireless ioctl from 32bit userland to 64bit
> > kernel (ppc64 PS3 does have). 
> > 
> >  - IW_EV_LCP_LEN in 32bit userland and 64bit kernel differ
> >  - offsetof(struct iw_point, length) differ
> 
> Yeah, we're aware of them.
> 
> > The former issue could be fixed if we added 'packed' attribute to
> > iw_event structure, but it would break existing 64bit userland.  I have
> > no idea to resolve latter issue because the first member of struct
> > iw_point is a pointer.
> > 
> > Does anyone have idea to fix these issues?
> > (except compiling all userland apps in 64bit mode...)
> 
> Jean wants to fix them in userspace. In fact, if you upgrade your
> userspace to the really latest version it *should* work. wpa_supplicant
> still doesn't work, nor do most distribution's versions of network
> manager because the fixes haven't been backported.

	You need :
		Wireless Tools 29-pre20 or later
		network manager 0.6.5 or later
	Distro that have those versions :
		Gentoo 2007.0
		Debian unstable
		Ubuntu Gutsy
		OpenSuSE 10.3a5
	We are getting there...
	The situation with wpa_supplicant is most unfortunate,
fortunately x-supplicant should work properly, as it uses libiw.

> johannes

	Thanks...

	Jean


  reply	other threads:[~2007-07-09 16:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-09 12:00 alignment issue between 32bit userland and 64bit kernel Masakazu Mokuno
2007-07-09 12:03 ` Johannes Berg
2007-07-09 16:46   ` Jean Tourrilhes [this message]
2007-07-10  7:13     ` Masakazu Mokuno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070709164632.GA32350@bougret.hpl.hp.com \
    --to=jt@hpl.hp.com \
    --cc=Geert.Uytterhoeven@sonycom.com \
    --cc=geoffrey.levand@am.sony.com \
    --cc=jkmaline@cc.hut.fi \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mokuno@sm.sony.co.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox