All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] ath9k: Virtual interface as AP
@ 2010-10-27 11:11 "Lorna González"
  2010-10-27 12:03 ` Jouni Malinen
  0 siblings, 1 reply; 17+ messages in thread
From: "Lorna González" @ 2010-10-27 11:11 UTC (permalink / raw)
  To: ath9k-devel


Hello, 

I am trying to build a virtual interface (not wiphy) operating in master mode using hostapd. Using wiphys (echo > add ...wiphy) I am able to configurate a wiphy as station and another one as AP. It works perfectly but by setting the AP creating a new interface as:

iw phy phy0 interface add wlan1 type master 

and changing its MAC Adress, it does not work. Other stations can not find this virtual AP. 

Can anyone tell me if I need extra configurations?

Thanks in advanced

Lorna Glez.  
-- 
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [ath9k-devel] ath9k: Virtual interface as AP
@ 2010-10-27 14:11 "Lorna González"
  2010-10-27 14:24 ` Mohammed Shafi
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: "Lorna González" @ 2010-10-27 14:11 UTC (permalink / raw)
  To: ath9k-devel


Thanks Mr. Malinen for your reply. I tried to add my interface using hostapd but I get following:

Configuration file: hostapd.conf
ioctl[SIOCGIFFLAGS]: No such device
Could not read interface flags (wlan1)
nl80211 driver initialization failed.
wlan1: Unable to setup interface.
Segmentation fault

My hostapd.conf looks like:

interface=wlan1
driver=nl80211
bridge=br0
hw_mode=g
channel=5
ssid=VirtualAP
auth_algs=1
bss=wlan1
#bssid=00:22:43:21:82:ad

If I don?t add a new interface using iw, I wonder how the hostapd creates it. And, in order to function as an AP I also need to configurate the following a priori :

1.Assign IP
sudo ifconfig wlan1 192.168.1.1

2.Enable forwarding

3.Eenable masquerading

By using wiphys this is normally not a problem since I add a wiphy before initiating hostapd. 



Thanks for your response

Lorna Glenz. 




-- 
GRATIS! Movie-FLAT mit ?ber 300 Videos. 
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [ath9k-devel] ath9k: Virtual interface as AP
@ 2010-10-28  7:47 "Lorna González"
  2010-10-28  8:03 ` Jouni Malinen
  0 siblings, 1 reply; 17+ messages in thread
From: "Lorna González" @ 2010-10-28  7:47 UTC (permalink / raw)
  To: ath9k-devel


Hello,

After trying to build two virtual interfaces, one as a STA and another one as AP on mac80211 with an AR928X, creating a new interface with:

iw phy phy0 interface add wlan1 type __ap

I got a new interface called wlan1_rename, the one I used to build the AP interface.

Running hostapd I finally got following: 

Configuration file: hostapd.conf
Opening raw packet socket for ifindex -1215975436
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
RATE[2] rate=55 flags=0x6
RATE[3] rate=110 flags=0x6
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Passive scanning not supported
Flushing old station entries
Deauthenticate all stations
Mode: IEEE 802.11g  Channel: 5  Frequency: 2432 MHz
Using interface wlan1_rename with hwaddr 00:22:43:21:82:ad and ssid 'VirtualAP'
wlan1_rename: Setup of interface done.
MGMT (TX callback) ACK


But no other stations are able to see this Virtual AP and no more frames are sent from the VAP. 

If someone ever try something similar please let me know. 

Thanks 

Lorna  




-- 
GRATIS! Movie-FLAT mit ?ber 300 Videos. 
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [ath9k-devel] ath9k: Virtual interface as AP
@ 2010-10-31 21:48 "Lorna González"
  0 siblings, 0 replies; 17+ messages in thread
From: "Lorna González" @ 2010-10-31 21:48 UTC (permalink / raw)
  To: ath9k-devel


Hallo Jouni,

Thanks for taking the time to test my question. I made what you said and it also works, why is it that the VAP should be initialize at first? 
I will try its performance, if someone is interested in results let me know

Regards

Lorna  
-- 
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl

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

end of thread, other threads:[~2010-11-12 17:22 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27 11:11 [ath9k-devel] ath9k: Virtual interface as AP "Lorna González"
2010-10-27 12:03 ` Jouni Malinen
  -- strict thread matches above, loose matches on Subject: below --
2010-10-27 14:11 "Lorna González"
2010-10-27 14:24 ` Mohammed Shafi
2010-10-27 14:29   ` "Lorna González"
2010-10-27 14:42     ` Mohammed Shafi
2010-10-27 14:56 ` Peter Stuge
2010-10-27 15:02 ` Jouni Malinen
2010-10-27 16:32   ` "Lorna González"
2010-10-28  7:36     ` jean-pierre cartal
2010-10-28  7:47 "Lorna González"
2010-10-28  8:03 ` Jouni Malinen
2010-11-11 15:06   ` "Lorna González"
2010-11-11 17:00     ` Ben Greear
2010-11-12  9:21       ` "Lorna González"
2010-11-12 17:22         ` Ben Greear
2010-10-31 21:48 "Lorna González"

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.