From: Greg Kroah-Hartman <gregkh@suse.de>
To: linux-kernel@vger.kernel.org
Cc: Pavel Machek <pavel@suse.cz>, Greg Kroah-Hartman <gregkh@suse.de>
Subject: [PATCH 4/5] Staging: w35und: fix registration with wlan stack
Date: Fri, 27 Feb 2009 14:49:21 -0800 [thread overview]
Message-ID: <1235774963-19732-4-git-send-email-gregkh@suse.de> (raw)
In-Reply-To: <20090227224555.GB19545@kroah.com>
From: Pavel Machek <pavel@suse.cz>
Initialize few more fields in wireless device structure so that
wireless core actually accepts our registration.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
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;
--
1.6.0.2
next prev parent reply other threads:[~2009-02-27 22:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-27 22:45 [GIT PATCH] STAGING patches for 2.6-git Greg KH
2009-02-27 22:49 ` [PATCH 1/5] Staging: rtl8187se: fix Kconfig dependencies Greg Kroah-Hartman
2009-02-27 22:49 ` [PATCH 2/5] Staging: rtl8187se: Fix oops and memory poison caused by builtin ieee80211 Greg Kroah-Hartman
2009-02-27 22:49 ` [PATCH 3/5] Staging: panel: fix oops on panel_cleanup_module Greg Kroah-Hartman
2009-02-27 22:49 ` Greg Kroah-Hartman [this message]
2009-02-27 22:49 ` [PATCH 5/5] Staging: w35und: fix usb_control_msg() error handling in wb35_probe() Greg Kroah-Hartman
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=1235774963-19732-4-git-send-email-gregkh@suse.de \
--to=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@suse.cz \
/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
Powered by JetHome