lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 30 Jan 2009 11:13:44 +0200
From:	Pekka Enberg <penberg@...helsinki.fi>
To:	Pavel Machek <pavel@...e.cz>
Cc:	Sandro Bonazzola <sandro.bonazzola@...il.com>,
	kernel list <linux-kernel@...r.kernel.org>,
	Greg KH <greg@...ah.com>,
	Johannes Berg <johannes@...solutions.net>,
	Bruno Randolf <br1@...fach.org>
Subject: Re: [PATCH] w35und: fix registration with wlan stack

On Fri, 2009-01-30 at 10:05 +0100, Pavel Machek wrote:
> Initialize few more fields in wireless device structure so that
> wireless core actually accepts our registration.
> 
> Signed-off-by: Pavel Machek <pavel@...e.cz>

Acked-by: Pekka Enberg <penberg@...helsinki.fi>

Looking at the changes, lets see if we can get some more review on this:

> ---
> commit 87290671d60a4f0e734f389a266b13d71c275ce4
> tree c8e312a3ef0b0d250c1e605ce86bff94c0254847
> parent e6de9be58f118cba6ccfef28830db701b8cc9f46
> author Pavel <pavel@...e.cz> Fri, 30 Jan 2009 09:08:36 +0100
> committer Pavel <pavel@...e.cz> Fri, 30 Jan 2009 09:08:36 +0100
> 
>  drivers/staging/winbond/wbusb.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/staging/winbond/wbusb.c b/drivers/staging/winbond/wbusb.c
> index b003f9a..49f1bf0 100644
> --- a/drivers/staging/winbond/wbusb.c
> +++ b/drivers/staging/winbond/wbusb.c
> @@ -369,9 +369,11 @@ static int wb35_probe(struct usb_interface *intf, const struct usb_device_id *id
>  	}
>  
>  	dev->extra_tx_headroom = 12;	/* FIXME */
> -	dev->flags = 0;
> +	dev->flags = IEEE80211_HW_SIGNAL_UNSPEC;
> +	dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);

The wiphy->interface_modes thing is probably fall-out from commit
8dffff216fcac4f79078478085e86d68db64922e ("mac80211: only create default
STA interface if supported"). I'm cc'ing Johannes.

>  
>  	dev->channel_change_time = 1000;
> +	dev->max_signal = 100;

And the IEEE80211_HW_SIGNAL_UNSPEC and ->max_signal from commit
566bfe5a8bcde13188a356f77666f8115813cf31 ("mac80211: use hardware flags
for signal/noise units"). Lets cc Bruno.

>  	dev->queues = 1;
>  
>  	dev->wiphy->bands[IEEE80211_BAND_2GHZ] = &wbsoft_band_2GHz;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ