linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mutli vif in mesh mode
@ 2013-04-19 15:04 Cedric VONCKEN
  2013-04-19 16:14 ` Thomas Pedersen
  0 siblings, 1 reply; 5+ messages in thread
From: Cedric VONCKEN @ 2013-04-19 15:04 UTC (permalink / raw)
  To: linux-wireless

I try to setup 2 mesh node on the same wireless card.
I am using the ath9k driver from Compat 2013-02-22 (openwrt package).

The command line sequence is
Create mesh node 1
	iw phy0 interface add wlan0 type mp
	iw wlan0 set channel 44 HT20
	ifconfig wlan0 up
	iw wlan0 mesh join test

Create mesh node 2
iw phy0 interface add wlan1 type mp
iw wlan1 set channel 44 HT20
ifconfig wlan1 hw ether 00:09:90:aa:11:22 up
iw wlan1 mesh join test2

With wireshark and air pcap adapter, I cannot see the beacon for the
second mesh node.
If I  execute each mesh node separately, it works correctly (I see the
beacon on wireshark)

Is it possible to execute 2 mesh node on one ath9k wireless card?

Cedric Voncken 


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

* Re: Mutli vif in mesh mode
  2013-04-19 15:04 Mutli vif in mesh mode Cedric VONCKEN
@ 2013-04-19 16:14 ` Thomas Pedersen
  2013-04-22  8:07   ` voncken
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Pedersen @ 2013-04-19 16:14 UTC (permalink / raw)
  To: Cedric VONCKEN; +Cc: linux-wireless

On Fri, Apr 19, 2013 at 5:04 PM, Cedric VONCKEN
<cedric.voncken@acksys.fr> wrote:
> I try to setup 2 mesh node on the same wireless card.
> I am using the ath9k driver from Compat 2013-02-22 (openwrt package).
>
> The command line sequence is
> Create mesh node 1
>         iw phy0 interface add wlan0 type mp
>         iw wlan0 set channel 44 HT20
>         ifconfig wlan0 up
>         iw wlan0 mesh join test
>
> Create mesh node 2
> iw phy0 interface add wlan1 type mp
> iw wlan1 set channel 44 HT20
> ifconfig wlan1 hw ether 00:09:90:aa:11:22 up
> iw wlan1 mesh join test2
>
> With wireshark and air pcap adapter, I cannot see the beacon for the
> second mesh node.
> If I  execute each mesh node separately, it works correctly (I see the
> beacon on wireshark)
>
> Is it possible to execute 2 mesh node on one ath9k wireless card?

This is because ath9k currently uses the hardware's adhoc beaconing
mode for mesh. See ath9k_hw_beaconinit() in
drivers/net/wireless/ath/ath9k/hw.c. This is probably wrong, and we
have a patch to beacon with AP mode, but I'll have to dig it up.

--
Thomas

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

* RE: Mutli vif in mesh mode
  2013-04-19 16:14 ` Thomas Pedersen
@ 2013-04-22  8:07   ` voncken
  2013-04-26 16:07     ` Thomas Pedersen
  0 siblings, 1 reply; 5+ messages in thread
From: voncken @ 2013-04-22  8:07 UTC (permalink / raw)
  To: 'Thomas Pedersen'; +Cc: 'linux-wireless'

	Thanks Thomas for your answer, 

	In ath9k_hw_beaconinit() the mesh mode use the hadhoc beacon mode. I
try to change it, and  ath9k_set_beacon in
driver/net/Wireless/ath/ath9k/beacon.c, but after these modifications, no
beacon are sent (I think my change are wrong).

	Could you give me the old patch, I can try to update it with the
latest compat, and I will send to you an updated patch. 

	Thanks for your help.

Cedric Voncken 

-----Message d'origine-----
De : Thomas Pedersen [mailto:thomas@cozybit.com] 
Envoyé : vendredi 19 avril 2013 18:14
À : Cedric VONCKEN
Cc : linux-wireless
Objet : Re: Mutli vif in mesh mode

On Fri, Apr 19, 2013 at 5:04 PM, Cedric VONCKEN <cedric.voncken@acksys.fr>
wrote:
> I try to setup 2 mesh node on the same wireless card.
> I am using the ath9k driver from Compat 2013-02-22 (openwrt package).
>
> The command line sequence is
> Create mesh node 1
>         iw phy0 interface add wlan0 type mp
>         iw wlan0 set channel 44 HT20
>         ifconfig wlan0 up
>         iw wlan0 mesh join test
>
> Create mesh node 2
> iw phy0 interface add wlan1 type mp
> iw wlan1 set channel 44 HT20
> ifconfig wlan1 hw ether 00:09:90:aa:11:22 up iw wlan1 mesh join test2
>
> With wireshark and air pcap adapter, I cannot see the beacon for the 
> second mesh node.
> If I  execute each mesh node separately, it works correctly (I see the 
> beacon on wireshark)
>
> Is it possible to execute 2 mesh node on one ath9k wireless card?

This is because ath9k currently uses the hardware's adhoc beaconing mode for
mesh. See ath9k_hw_beaconinit() in drivers/net/wireless/ath/ath9k/hw.c. This
is probably wrong, and we have a patch to beacon with AP mode, but I'll have
to dig it up.

--
Thomas


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

* Re: Mutli vif in mesh mode
  2013-04-22  8:07   ` voncken
@ 2013-04-26 16:07     ` Thomas Pedersen
  2013-04-29  9:41       ` voncken
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Pedersen @ 2013-04-26 16:07 UTC (permalink / raw)
  To: voncken; +Cc: linux-wireless

Hi Cedric,

On Mon, Apr 22, 2013 at 1:07 AM, voncken <cedric.voncken@acksys.fr> wrote:
>         Thanks Thomas for your answer,
>
>         In ath9k_hw_beaconinit() the mesh mode use the hadhoc beacon mode. I
> try to change it, and  ath9k_set_beacon in
> driver/net/Wireless/ath/ath9k/beacon.c, but after these modifications, no
> beacon are sent (I think my change are wrong).
>
>         Could you give me the old patch, I can try to update it with the
> latest compat, and I will send to you an updated patch.

Sorry for the late response.

You need to change the hardware operating mode in
ath9k_hw_set_operating_mode() to AP as well. See [1] and please let me
know if that helps.

[1] https://github.com/cozybit/open80211s/commit/380bf3ad4c2ccd92658943e978f8d942611a3d6d

--
Thomas

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

* RE: Mutli vif in mesh mode
  2013-04-26 16:07     ` Thomas Pedersen
@ 2013-04-29  9:41       ` voncken
  0 siblings, 0 replies; 5+ messages in thread
From: voncken @ 2013-04-29  9:41 UTC (permalink / raw)
  To: 'Thomas Pedersen'; +Cc: 'linux-wireless'

	Hi Thomas, 

	I do not know if I will have a time this week to test it. 

	I come back to you when I have tested this modification.

	Thanks for your help.

Cedric Voncken | R&d Engineer
----------------------------------------------------------------------------
------------------------------
T : +33 1 30 56 46 52 
cedric.voncken@acksys.fr | www.acksys.fr
----------------------------------------------------------------------------
------------------------------

           
ZA Val Joyeux - 10 rue des Entrepreneurs - 78450 VILLEPREUX - France
----------------------------------------------------------------------------
----------


-----Message d'origine-----
De : linux-wireless-owner@vger.kernel.org
[mailto:linux-wireless-owner@vger.kernel.org] De la part de Thomas Pedersen
Envoyé : vendredi 26 avril 2013 18:07
À : voncken
Cc : linux-wireless
Objet : Re: Mutli vif in mesh mode

Hi Cedric,

On Mon, Apr 22, 2013 at 1:07 AM, voncken <cedric.voncken@acksys.fr> wrote:
>         Thanks Thomas for your answer,
>
>         In ath9k_hw_beaconinit() the mesh mode use the hadhoc beacon 
> mode. I try to change it, and  ath9k_set_beacon in 
> driver/net/Wireless/ath/ath9k/beacon.c, but after these modifications, 
> no beacon are sent (I think my change are wrong).
>
>         Could you give me the old patch, I can try to update it with 
> the latest compat, and I will send to you an updated patch.

Sorry for the late response.

You need to change the hardware operating mode in
ath9k_hw_set_operating_mode() to AP as well. See [1] and please let me know
if that helps.

[1]
https://github.com/cozybit/open80211s/commit/380bf3ad4c2ccd92658943e978f8d94
2611a3d6d

--
Thomas
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html


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

end of thread, other threads:[~2013-04-29  9:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19 15:04 Mutli vif in mesh mode Cedric VONCKEN
2013-04-19 16:14 ` Thomas Pedersen
2013-04-22  8:07   ` voncken
2013-04-26 16:07     ` Thomas Pedersen
2013-04-29  9:41       ` voncken

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).