From: Ivo van Doorn <ivdoorn@gmail.com>
To: John Linville <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org,
rt2400-devel@lists.sourceforge.net,
Stephen Blackheath <tramp.enshrine.stephen@blacksapphire.com>
Subject: [PATCH 5/5] rt2x00: Need to set wiphy->interface_modes
Date: Fri, 15 Aug 2008 14:49:18 +0200 [thread overview]
Message-ID: <200808151449.18412.IvDoorn@gmail.com> (raw)
In-Reply-To: <200808151446.34060.IvDoorn@gmail.com>
From: Stephen Blackheath <tramp.enshrine.stephen@blacksapphire.com>
One day I will understand the patching process. This patch is needed to
meet a requirement of Linux 2.6.27 drivers. Without it, userspace fails
to set the device to AP mode.
Signed-off-by: Stephen Blackheath <tramp.enshrine.stephen@blacksapphire.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
---
John, this one is for 2.6.28
---
drivers/net/wireless/rt2x00/rt2x00dev.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index 5278ae2..b363fad 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -1052,6 +1052,11 @@ int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev)
*/
rt2x00dev->hw->vif_data_size = sizeof(struct rt2x00_intf);
+ rt2x00dev->hw->wiphy->interface_modes =
+ BIT(NL80211_IFTYPE_AP) |
+ BIT(NL80211_IFTYPE_STATION) |
+ BIT(NL80211_IFTYPE_ADHOC);
+
/*
* Let the driver probe the device to detect the capabilities.
*/
--
1.5.6.1
prev parent reply other threads:[~2008-08-15 12:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200808151445.07795.IvDoorn@gmail.com>
2008-08-15 12:48 ` [PATCH 2/5] rt2x00: Fix race conditions in flag handling Ivo van Doorn
[not found] ` <200808151445.31803.IvDoorn@gmail.com>
2008-08-15 12:48 ` [PATCH 3/5] rt2x00: Map extra_tx_headroom to DMA Ivo van Doorn
[not found] ` <200808151446.01043.IvDoorn@gmail.com>
2008-08-15 12:48 ` [PATCH 4/5] rt2x00: Only configure hardware when radio is enabled Ivo van Doorn
[not found] ` <200808151446.34060.IvDoorn@gmail.com>
2008-08-15 12:49 ` Ivo van Doorn [this message]
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=200808151449.18412.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=rt2400-devel@lists.sourceforge.net \
--cc=tramp.enshrine.stephen@blacksapphire.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).