From: Chaoxing <clin@3eti.com>
To: linux-wireless@vger.kernel.org
Subject: Help: Guidance on "AP/VLAN" mode
Date: Thu, 21 Oct 2010 15:54:30 +0000 (UTC) [thread overview]
Message-ID: <loom.20101021T172706-705@post.gmane.org> (raw)
1. Can any one here help me understand what mac80211 "AP/VLAN" mode is and how
it's used? I googled and could not find a good document on this.
2. If it's meant for VLAN interface for multiple-SSID, how is the VLAN ID
configured?
3. In my AP with proprietary driver, there's multiple-SSID over the same BSSID.
(Meaning they share the same MAC address.) Each SSID is mapped to one VLAN.
Broadcasting SSID is disabled.
On receiving packet from clients, AP adds VLAN tag per SSID client associates.
On transmitting packet to clients, AP remove VLAN tag.
Is it possible to achieve the above functionality through existing open source
software(mac80211, iw, hostapd, radio driver, etc)?
Thanks in advance.
The following is my experiment on AP/VLAN interface.
On "iw list" command, my system shows that it supports AP/VLAN type interface
=========iw list screen shot, (part) begin ============================
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* mesh point
========iw list screen shot, (part) end =========================
And it does allow me to add such kind of interface by command "iw phy phy0
interface add vlan2 type __ap_vlan"
===========================screen shot begin =============================
root@mini-dell:~/hostapd-conf# iw phy phy0 interface add vlan2 type __ap_vlan
root@mini-dell:~/hostapd-conf# iw vlan2 info
Interface vlan2
ifindex 10
type AP/VLAN
root@mini-dell:~/hostapd-conf# iwconfig vlan2
vlan2 IEEE 802.11abgn Mode:Secondary Tx-Power=17 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
===========================screen shot ends =============================
Now, how do I use this vlan interface "vlan2"? I tried to run hostapd over vlan2
interface with no success. Here is my hostapd.conf and screenshot.
===========================screen shot begin =============================
root@mini-dell:~/hostapd-conf# hostapd -dd hostapd.conf
Configuration file: hostapd.conf
ctrl_interface_group=0
nl80211: Register Action command failed: ret=-95 (Operation not supported)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 10
nl80211: Failed to set interface 10 to mode 3: -95 (Operation not supported)
nl80211: Failed to set interface 10 to mode 3: -95 (Operation not supported)
Could not set interface vlan2 flags: Link has been severed
nl80211: Interface mode change to 3 from 0 failed
nl80211: Failed to set interface vlan2 into AP mode
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=4 eloop_data=0x80a7870 user_data=0x80a94f8
handler=0x8072070
ELOOP: remaining socket: sock=6 eloop_data=0x80aaf38 user_data=(nil)
handler=0x807ab20
root@mini-dell:~/hostapd-conf#
===========================screen shot ends =============================
------------------hostapd.conf begin ------------------
interface=vlan2
#bridge=brg0
driver=nl80211
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
##### IEEE 802.11 related configuration #######################################
ssid=bypass
country_code=US
ieee80211d=1
hw_mode=a
channel=36
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
------------------hostapd.conf end------------------
next reply other threads:[~2010-10-21 16:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-21 15:54 Chaoxing [this message]
2010-10-22 11:45 ` Help: Guidance on "AP/VLAN" mode jpo234
2010-10-25 8:50 ` Johannes Berg
2010-10-22 15:27 ` Help: Guidance on "AP/VLAN" mode Jouni Malinen
2010-10-22 17:43 ` Chaoxing Lin
2010-10-22 18:27 ` Jouni Malinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20101021T172706-705@post.gmane.org \
--to=clin@3eti.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).