Search Linux Wireless

cfg80211_wext_siwmode() strange behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux