public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* cfg80211_wext_siwmode() strange behaviour
@ 2009-02-15 13:43 Kevin Wilson
  2009-02-15 16:14 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wilson @ 2009-02-15 13:43 UTC (permalink / raw)
  To: linux-wireless

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cfg80211_wext_siwmode() strange behaviour
  2009-02-15 13:43 cfg80211_wext_siwmode() strange behaviour Kevin Wilson
@ 2009-02-15 16:14 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2009-02-15 16:14 UTC (permalink / raw)
  To: Kevin Wilson; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

On Sun, 2009-02-15 at 15:43 +0200, Kevin Wilson wrote:
> 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.

This is intentional, since you need hostapd.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-15 16:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-15 13:43 cfg80211_wext_siwmode() strange behaviour Kevin Wilson
2009-02-15 16:14 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox