All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Sandro Bonazzola <sandro.bonazzola@gmail.com>,
	kernel list <linux-kernel@vger.kernel.org>,
	Greg KH <greg@kroah.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Subject: [PATCH] w35und: fix registration with wlan stack
Date: Fri, 30 Jan 2009 10:05:25 +0100	[thread overview]
Message-ID: <20090130090525.GA1997@elf.ucw.cz> (raw)
In-Reply-To: <4980DB5D.6010906@gmail.com>

Initialize few more fields in wireless device structure so that
wireless core actually accepts our registration.

Signed-off-by: Pavel Machek <pavel@suse.cz>

---
commit 87290671d60a4f0e734f389a266b13d71c275ce4
tree c8e312a3ef0b0d250c1e605ce86bff94c0254847
parent e6de9be58f118cba6ccfef28830db701b8cc9f46
author Pavel <pavel@suse.cz> Fri, 30 Jan 2009 09:08:36 +0100
committer Pavel <pavel@suse.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);
 
 	dev->channel_change_time = 1000;
+	dev->max_signal = 100;
 	dev->queues = 1;
 
 	dev->wiphy->bands[IEEE80211_BAND_2GHZ] = &wbsoft_band_2GHz;

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

       reply	other threads:[~2009-01-30  9:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <497E1F3A.1060604@cs.helsinki.fi>
     [not found] ` <497E2EC4.5030302@gmail.com>
     [not found]   ` <497E35A1.8080301@cs.helsinki.fi>
     [not found]     ` <497F5FEA.7020203@gmail.com>
     [not found]       ` <20090127200602.GA16444@elf.ucw.cz>
     [not found]         ` <4980B2DD.307@gmail.com>
     [not found]           ` <4980BB9A.2020309@cs.helsinki.fi>
     [not found]             ` <4980C028.2030709@gmail.com>
     [not found]               ` <4980C035.4070105@cs.helsinki.fi>
     [not found]                 ` <4980DB5D.6010906@gmail.com>
2009-01-30  9:05                   ` Pavel Machek [this message]
2009-01-30  9:13                     ` [PATCH] w35und: fix registration with wlan stack Pekka Enberg
2009-01-30  9:16                       ` Johannes Berg
2009-01-30  9:38                         ` Pavel Machek
2009-01-30  9:41                           ` Johannes Berg

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=20090130090525.GA1997@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=penberg@cs.helsinki.fi \
    --cc=sandro.bonazzola@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.