public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wilson <wkevils@gmail.com>
To: linux-wireless@vger.kernel.org
Subject: cfg80211_wext_siwmode() strange behaviour
Date: Sun, 15 Feb 2009 15:43:25 +0200	[thread overview]
Message-ID: <55c333c0902150543m6bc92789n3d299cf26e65236@mail.gmail.com> (raw)

Hello,

I had tried to set an rt73usb-based nic to work in secondary mode
(NL80211_IFTYPE_AP_VLAN)
by "iwconfig wlan3 mode secondary". (according to "man iwconfig", this
operation is supported).

I get:

Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan3 ; Invalid argument.

I traced the problem to cfg80211_wext_siwmode() method; (wext-compat.c)
I see that when IW_MODE_SECOND is passed, it returns -EINVAL;
according to this, you cannot set up a nic to IW_MODE_SECOND
(NL80211_IFTYPE_AP_VLAN).

Nevertheless, in 		
		

		cfg80211_wext_giwmode() there is
		...
		case NL80211_IFTYPE_AP_VLAN:
			*mode = IW_MODE_SECOND;		/* FIXME */

So, maybe this should be removed at all ? or is there a different way to set
a nic to work in NL80211_IFTYPE_AP_VLAN mode ?
So, is there something wrong here? Or am I missing something ?

(I had tested it with latest wireless-testing git tree).

Regards,
Kevin

             reply	other threads:[~2009-02-15 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-15 13:43 Kevin Wilson [this message]
2009-02-15 16:14 ` cfg80211_wext_siwmode() strange behaviour 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=55c333c0902150543m6bc92789n3d299cf26e65236@mail.gmail.com \
    --to=wkevils@gmail.com \
    --cc=linux-wireless@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