* Re: Bug#645055: realtek 8188CE ad-hoc mode not supported
[not found] ` <20111012160135.GK3366@decadent.org.uk>
@ 2011-10-12 23:24 ` Ben Hutchings
2011-10-13 1:46 ` Antoine Beaupré
2011-10-13 2:10 ` Larry Finger
0 siblings, 2 replies; 5+ messages in thread
From: Ben Hutchings @ 2011-10-12 23:24 UTC (permalink / raw)
To: linux-wireless; +Cc: 645055, Antoine Beaupré
[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]
On Wed, 2011-10-12 at 17:01 +0100, Ben Hutchings wrote:
> On Wed, Oct 12, 2011 at 11:20:31AM -0400, Antoine Beaupré wrote:
> > On Wed, 12 Oct 2011 14:08:32 +0100, Ben Hutchings <ben@decadent.org.uk> wrote:
> > > Can you create an ad-hoc interface like this:
> > >
> > > iw dev wlan0 interface add wlan1 type adhoc
> > >
> > > (you'll need the iw package).
> >
> > Interesting - this works. Didn't know of the iw tool. But this creates a
> > separate interface, kind of odd!
> >
> > The adhoc mode works like that. I am not sure I understand why it
> > doesn't work with iwconfig, can you enlighten me?
>
> iwconfig uses the original WEXT (wireless extensions) configuration
> interface. This interface was never very well specified and was
> implemented in inconsistent ways by different drivers.
>
> The newer configuration interface used by iw, Network Manager and
> other tools is nl80211 (netlink for IEEE 802.11).
[...]
I looked a little further and saw that nl80211 does support changing
interface type (mode). But this driver (rtl8192ce) only supports
creating new interfaces, not changing their type.
Should mac80211 drivers generally support changing interface type
(change_interface operation)?
Ben.
--
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug#645055: realtek 8188CE ad-hoc mode not supported
2011-10-12 23:24 ` Bug#645055: realtek 8188CE ad-hoc mode not supported Ben Hutchings
@ 2011-10-13 1:46 ` Antoine Beaupré
2011-10-13 2:10 ` Larry Finger
1 sibling, 0 replies; 5+ messages in thread
From: Antoine Beaupré @ 2011-10-13 1:46 UTC (permalink / raw)
To: Ben Hutchings, linux-wireless; +Cc: 645055
[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]
On Thu, 13 Oct 2011 00:24:12 +0100, Ben Hutchings <ben@decadent.org.uk> wrote:
> I looked a little further and saw that nl80211 does support changing
> interface type (mode). But this driver (rtl8192ce) only supports
> creating new interfaces, not changing their type.
>
> Should mac80211 drivers generally support changing interface type
> (change_interface operation)?
Seems to me really counter-intuitive that it didn't work. It was the
first time I ever see such a problem.
I have seen numerous drivers not support "Master" or "Monitor" mode,
because of limitations of the implementation or the hardware, but if
this is purely a API problem, it seems like a problem that should be
fixed...
Is this the right place though?
A.
--
The idea that Bill Gates has appeared like a knight in shining armour to
lead all customers out of a mire of technological chaos neatly ignores
the fact that it was he who, by peddling second-rate technology, led
them into it in the first place. - Douglas Adams (1952-2001)
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug#645055: realtek 8188CE ad-hoc mode not supported
2011-10-12 23:24 ` Bug#645055: realtek 8188CE ad-hoc mode not supported Ben Hutchings
2011-10-13 1:46 ` Antoine Beaupré
@ 2011-10-13 2:10 ` Larry Finger
2011-10-13 2:25 ` Ben Hutchings
1 sibling, 1 reply; 5+ messages in thread
From: Larry Finger @ 2011-10-13 2:10 UTC (permalink / raw)
To: Ben Hutchings; +Cc: linux-wireless, 645055, Antoine Beaupré
On 10/12/2011 06:24 PM, Ben Hutchings wrote:
> I looked a little further and saw that nl80211 does support changing
> interface type (mode). But this driver (rtl8192ce) only supports
> creating new interfaces, not changing their type.
>
> Should mac80211 drivers generally support changing interface type
> (change_interface operation)?
I don't think that implementation of the WEXT interface is necessary. As to
using iw, the following sequence worked:
iw dev wlan14 interface add wlan15 type adhoc
iw dev set rename5 type managed
iw dev set rename5 type adhoc
Why it was called "rename5" when I asked for "wlan15" is not understood, but the
iw interface changes the mode for an existing interface when using rtl8192ce.
BTW, I added a new iface because I did not want to interrupt my internat connection.
Larry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug#645055: realtek 8188CE ad-hoc mode not supported
2011-10-13 2:10 ` Larry Finger
@ 2011-10-13 2:25 ` Ben Hutchings
2011-10-13 2:31 ` Antoine Beaupré
0 siblings, 1 reply; 5+ messages in thread
From: Ben Hutchings @ 2011-10-13 2:25 UTC (permalink / raw)
To: Larry Finger, Antoine Beaupré; +Cc: linux-wireless, 645055
[-- Attachment #1: Type: text/plain, Size: 1557 bytes --]
On Wed, 2011-10-12 at 21:10 -0500, Larry Finger wrote:
> On 10/12/2011 06:24 PM, Ben Hutchings wrote:
> > I looked a little further and saw that nl80211 does support changing
> > interface type (mode). But this driver (rtl8192ce) only supports
> > creating new interfaces, not changing their type.
> >
> > Should mac80211 drivers generally support changing interface type
> > (change_interface operation)?
>
> I don't think that implementation of the WEXT interface is necessary.
The change_interface operation appears to be used in implementation of
nl80211 too.
> As to using iw, the following sequence worked:
>
> iw dev wlan14 interface add wlan15 type adhoc
> iw dev set rename5 type managed
> iw dev set rename5 type adhoc
>
> Why it was called "rename5" when I asked for "wlan15" is not understood,
udev's persistent name generator isn't able to distinguish the two
interfaces by MAC address, so it decides the new interface should also
be named 'wlan14'. udev does renaming in two steps for some reason, and
the second step obviously fails.
> but the
> iw interface changes the mode for an existing interface when using rtl8192ce.
>
> BTW, I added a new iface because I did not want to interrupt my
> internat connection.
Hmm. Maybe the change_interface operation is only needed to change
type/mode while the interface is up.
Antoine, did you bring the interface down before setting its mode?
Ben.
--
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug#645055: realtek 8188CE ad-hoc mode not supported
2011-10-13 2:25 ` Ben Hutchings
@ 2011-10-13 2:31 ` Antoine Beaupré
0 siblings, 0 replies; 5+ messages in thread
From: Antoine Beaupré @ 2011-10-13 2:31 UTC (permalink / raw)
To: Ben Hutchings, Larry Finger; +Cc: linux-wireless, 645055
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]
On Thu, 13 Oct 2011 03:25:17 +0100, Ben Hutchings <ben@decadent.org.uk> wrote:
> > but the
> > iw interface changes the mode for an existing interface when using rtl8192ce.
> >
> > BTW, I added a new iface because I did not want to interrupt my
> > internat connection.
>
> Hmm. Maybe the change_interface operation is only needed to change
> type/mode while the interface is up.
>
> Antoine, did you bring the interface down before setting its mode?
Crap. No, I didn't. And now it works if I bring it down first. Oh well,
I guess I just made a lot of noise for nothing, this bug can be closed,
thank you!
A.
--
Travail, du latin Tri Palium trois pieux, instrument de torture.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-13 2:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20111012052940.17383.59248.reportbug@localhost>
[not found] ` <1318424918.4024.180.camel@deadeye>
[not found] ` <87pqi2s0cg.fsf@marcos.anarcat.ath.cx>
[not found] ` <20111012160135.GK3366@decadent.org.uk>
2011-10-12 23:24 ` Bug#645055: realtek 8188CE ad-hoc mode not supported Ben Hutchings
2011-10-13 1:46 ` Antoine Beaupré
2011-10-13 2:10 ` Larry Finger
2011-10-13 2:25 ` Ben Hutchings
2011-10-13 2:31 ` Antoine Beaupré
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox