ath9k: Virtual interface as AP
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.
Signature · 2 lines
GRATIS! Movie-FLAT mit ?ber 300 Videos. Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome
2010/10/27 "Lorna Gonz?lez" <[email protected]>:
Quoted 9 lines
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
Hi have you checked whether the interface-wlan1 is not correct may be wlan0 or something else ?
Quoted 41 lines
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:adIf 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.12.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
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Hi Mr. Shafi,
I am using wlan0 as a station interface but yes, I already tried to use it as AP and wlan1 as station but acording to
# hostapd will generate BSSID mask based on the BSSIDs that are # configured. hostapd will verify that dev_addr & MASK == dev_addr.
hostapd changed the BSSID without succesfull.
So it does not work either.
Thanks
-------- Original-Nachricht --------
Quoted 63 lines
Datum: Wed, 27 Oct 2010 19:54:39 +0530
Von: Mohammed Shafi <[email protected]>
An: "Lorna Gonz?lez" <[email protected]>
CC: ath9k-devel-request at lists.ath9k.org, ath9k-devel at lists.ath9k.org
Betreff: Re: [ath9k-devel] ath9k: Virtual interface as AP2010/10/27 "Lorna Gonz?lez" <[email protected]>:
Quoted 2 lines
Thanks Mr. Malinen for your reply. I tried to add my interface using
hostapd but I get following:
Quoted 7 lines
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 faultHi have you checked whether the interface-wlan1 is not correct may be wlan0 or something else ?
Quoted 13 lines
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:adQuoted 1 line
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 :
Quoted 9 lines
1.Assign IP
sudo ifconfig wlan1 192.168.1.12.Enable forwarding
3.Eenable masquerading
By using wiphys this is normally not a problem since I add a wiphy
before initiating hostapd.
Quoted 18 lines
Thanks for your response
Lorna Glenz.
--
GRATIS! Movie-FLAT mit ?ber 300 Videos.
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Signature · 2 lines
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
2010/10/27 "Lorna Gonz?lez" <[email protected]>:
Quoted 4 lines
Hi Mr. Shafi,
I am using wlan0 as a station interface but yes, I already tried to use it as AP and wlan1 as station but acording to
Quoted 8 lines
# hostapd will generate BSSID mask based on the BSSIDs that are # configured. hostapd will verify that dev_addr & MASK == dev_addr.hostapd changed the BSSID without succesfull.
So it does not work either.
Thanks
got no idea why its not working.
Quoted 71 lines
-------- Original-Nachricht --------
Quoted 39 lines
Datum: Wed, 27 Oct 2010 19:54:39 +0530
Von: Mohammed Shafi <[email protected]>
An: "Lorna Gonz?lez" <[email protected]>
CC: ath9k-devel-request at lists.ath9k.org, ath9k-devel at lists.ath9k.org
Betreff: Re: [ath9k-devel] ath9k: Virtual interface as AP2010/10/27 "Lorna Gonz?lez" <[email protected]>:
Quoted 2 lines
Thanks Mr. Malinen for your reply. I tried to add my interface using
hostapd but I get following:
Quoted 7 lines
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 faultHi have you checked whether ?the interface-wlan1 is not correct may be wlan0 or something else ?
Quoted 13 lines
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:adQuoted 1 line
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 :
Quoted 4 lines
1.Assign IP
sudo ifconfig wlan1 192.168.1.1Quoted 24 lines
Quoted 5 lines
2.Enable forwarding
3.Eenable masquerading
By using wiphys this is normally not a problem since I add a wiphy
before initiating hostapd.
Quoted 18 lines
Thanks for your response
Lorna Glenz.
--
GRATIS! Movie-FLAT mit ?ber 300 Videos.
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel--
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
Quoted 4 lines · Lorna Gonz?lez
I tried to add my interface using hostapd but I get following:
Configuration file: hostapd.conf
ioctl[SIOCGIFFLAGS]: No such device
What is the output from:
iw dev
or in case you do not have the iw tool, then from:
iwconfig
//Peter
Quoted 4 lines · Lorna Gonz?lez
Configuration file: hostapd.conf
ioctl[SIOCGIFFLAGS]: No such device
Could not read interface flags (wlan1)
nl80211 driver initialization failed.
That sounds like you did not have wlan1 when starting hostapd..
Quoted 2 lines
interface=wlan1
bss=wlan1
This is not a valid configuration. interface defines the main AP interface and bss is a virtual, secondary interface that will be created. As such, it must have a different interface name. I was assuming that you are trying to use multiple AP interfaces, but that may not be the case.
Quoted 1 line
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 :
hostapd does not create the main interface; it only configures the secondary ones (bss=). What you seem to be trying to do (station + AP) is not really supported that well currently. In theory, you would need to create a new vif manually (e.g., with iw) and then run hostapd on one of the interfaces. However, I would not give any guarantees on that working correctly in all (or well, even most) cases.
- Jouni
Hallo Jouni,
Quoted 20 lines
Quoted 4 lines
Configuration file: hostapd.conf
ioctl[SIOCGIFFLAGS]: No such device
Could not read interface flags (wlan1)
nl80211 driver initialization failed.That sounds like you did not have wlan1 when starting hostapd..
Quoted 2 lines
interface=wlan1
bss=wlan1This is not a valid configuration. interface defines the main AP interface and bss is a virtual, secondary interface that will be created. As such, it must have a different interface name. I was assuming that you are trying to use multiple AP interfaces, but that may not be the case.
Quoted 1 line
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 :
Quoted 9 lines
hostapd does not create the main interface; it only configures the secondary ones (bss=). What you seem to be trying to do (station + AP) is not really supported that well currently. In theory, you would need to create a new vif manually (e.g., with iw) and then run hostapd on one of the interfaces. However, I would not give any guarantees on that working correctly in all (or well, even most) cases.
- Jouni
Your last comment explains exactly what I am trying to do: STA + AP interfaces on the same radio. That?s why I was setting first a second interface in master mode using iw, which works ok. But after initiated hostapd, other stations are not able to sense this virtual AP. I will try again, otherwise I will keep testing using wiphys.
thanks again!!
Lorna
Signature · 2 lines
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
Le 27/10/2010 18:32, "Lorna Gonz?lez" a ?crit :
Quoted 28 lines
Hallo Jouni,
Quoted 25 lines
Quoted 4 lines
Configuration file: hostapd.conf
ioctl[SIOCGIFFLAGS]: No such device
Could not read interface flags (wlan1)
nl80211 driver initialization failed.That sounds like you did not have wlan1 when starting hostapd..
Quoted 2 lines
interface=wlan1
bss=wlan1This is not a valid configuration. interface defines the main AP interface and bss is a virtual, secondary interface that will be created. As such, it must have a different interface name. I was assuming that you are trying to use multiple AP interfaces, but that may not be the case.
Quoted 1 line
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 :
hostapd does not create the main interface; it only configures the secondary ones (bss=). What you seem to be trying to do (station + AP) is not really supported that well currently. In theory, you would need to create a new vif manually (e.g., with iw) and then run hostapd on one of the interfaces. However, I would not give any guarantees on that working correctly in all (or well, even most) cases.
Quoted 9 lines
Quoted 2 lines
- Jouni
Your last comment explains exactly what I am trying to do: STA + AP interfaces on the same radio. That?s why I was setting first a second interface in master mode using iw, which works ok. But after initiated hostapd, other stations are not able to sense this virtual AP. I will try again, otherwise I will keep testing using wiphys.
thanks again!!
Lorna
Hi Lorna,
Try starting hostapd before the client side i.e. wpa_supplicant.
Regards.