Subject: Re: wi broken on macppc
To: Charles M. Hannum <abuse@spamalicious.com>
From: Thomas Klausner <wiz@NetBSD.org>
List: port-macppc
Date: 07/31/2004 23:17:49
On Sat, Jul 31, 2004 at 02:44:15PM +0000, Charles M. Hannum wrote:
> On Saturday 31 July 2004 14:19, Thomas Klausner wrote:
> > I have the problem that after I configure the nwid with ifconfig,
> > I have to manually set the media-type to something other than the
> > default. Then I can usually use it without problems.

This problem seems to be gone in the latest 2.0G sources. Cool!
Thanks David and Charles!

> > That has never worked for me. It's supposedly a big-endian bug somewhere.
> 
> What's the autoconfig output from your card?  One thing that looks like an 
> obvious endian bug is in wi_scan_ap():
> 
>         case WI_SYMBOL:
>                 /*
>                  * XXX only supported on 3.x ?
>                  */
>                 val[0] = BSCAN_BCAST | BSCAN_ONETIME;
> 
> That should probably use htole16().

When I add htole16() there, it finds the one access point I have.
Please commit, or I will :)

Thank you,
 Thomas