From: David Kimdon <david.kimdon@devicescape.com>
To: netdev@vger.kernel.org
Cc: "John W. Linville" <linville@tuxdriver.com>,
Jiri Benc <jbenc@suse.cz>,
David Kimdon <david.kimdon@devicescape.com>
Subject: [patch 3/5] d80211: fix interface removal
Date: Tue, 22 Aug 2006 10:33:53 -0700 [thread overview]
Message-ID: <20060822173353.GD12500@devicescape.com> (raw)
In-Reply-To: 20060822173241.313859000@devicescape.com
[-- Attachment #1: remove-if-type.patch --]
[-- Type: text/plain, Size: 1382 bytes --]
Calls to ieee80211_if_remove() should use the ieee80211 interface types.
Convert interface type from hostapd to ieee80211 format.
Signed-off-by: David Kimdon <david.kimdon@devicescape.com>
Index: wireless-dev/net/d80211/ieee80211_ioctl.c
===================================================================
--- wireless-dev.orig/net/d80211/ieee80211_ioctl.c
+++ wireless-dev/net/d80211/ieee80211_ioctl.c
@@ -1076,14 +1076,21 @@ static int ieee80211_ioctl_add_if(struct
static int ieee80211_ioctl_remove_if(struct net_device *dev,
struct prism2_hostapd_param *param)
{
- if (param->u.if_info.type != HOSTAP_IF_WDS &&
- param->u.if_info.type != HOSTAP_IF_VLAN &&
- param->u.if_info.type != HOSTAP_IF_BSS &&
- param->u.if_info.type != HOSTAP_IF_STA) {
- return -EINVAL;
+ unsigned int type;
+
+ if (param->u.if_info.type == HOSTAP_IF_WDS) {
+ type = IEEE80211_IF_TYPE_WDS;
+ } else if (param->u.if_info.type == HOSTAP_IF_VLAN) {
+ type = IEEE80211_IF_TYPE_VLAN;
+ } else if (param->u.if_info.type == HOSTAP_IF_BSS) {
+ type = IEEE80211_IF_TYPE_AP;
+ } else if (param->u.if_info.type == HOSTAP_IF_STA) {
+ type = IEEE80211_IF_TYPE_STA;
+ } else {
+ return -EINVAL;
}
- return ieee80211_if_remove(dev, param->u.if_info.name,
- param->u.if_info.type);
+
+ return ieee80211_if_remove(dev, param->u.if_info.name, type);
}
--
next prev parent reply other threads:[~2006-08-22 17:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060822173241.313859000@devicescape.com>
2006-08-22 17:33 ` [patch 1/5] d80211: allow for large scan results David Kimdon
2006-08-22 17:33 ` [patch 2/5] d80211: fix multiple device support David Kimdon
2006-08-22 17:33 ` David Kimdon [this message]
2006-08-23 7:20 ` [patch 3/5] d80211: fix interface removal Johannes Berg
2006-08-23 16:05 ` Jiri Benc
2006-08-22 17:34 ` [patch 4/5] d80211/bcm43xx: fix build for ARM David Kimdon
2006-08-22 18:58 ` Michael Buesch
2006-08-22 17:34 ` [patch 5/5] d80211: add ioctl to stop data frame tx David Kimdon
2006-08-23 7:25 ` Johannes Berg
2006-08-23 16:09 ` Jiri Benc
2006-08-28 18:34 ` Elliot Schwartz
2006-08-23 19:20 ` Simon Barber
2006-08-28 18:29 ` Elliot Schwartz
2006-08-29 7:30 ` Johannes Berg
2006-08-29 11:45 ` John W. Linville
2006-08-29 18:39 ` Jouni Malinen
2006-08-30 7:26 ` Johannes Berg
2006-08-30 16:01 ` Jouni Malinen
2006-08-31 7:23 ` Johannes Berg
2006-09-22 12:13 ` Jiri Benc
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=20060822173353.GD12500@devicescape.com \
--to=david.kimdon@devicescape.com \
--cc=jbenc@suse.cz \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/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).