From: Jouni Malinen Date: Thu, 28 Oct 2010 11:03:47 +0300 Subject: [ath9k-devel] ath9k: Virtual interface as AP In-Reply-To: <20101028074721.191890@gmx.net> References: <20101028074721.191890@gmx.net> Message-ID: <1288253027.23270.9.camel@jm-desktop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Thu, 2010-10-28 at 00:47 -0700, "Lorna Gonz?lez" wrote: > 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. > But no other stations are able to see this Virtual AP and no more frames are sent from the VAP. How did you set the MAC addresses on the interfaces? Based on a quick test, I was able to get hostapd running on the interface created with the command above at least when not changing the address on the created interface. A station was able to see the AP and associate. Then I changed the MAC address of the original interface by setting locally administered bit (02:) and I was able to associate it as a station to an AP that was running on the same channel. The ping from the virtual AP interface was still going through. Just keep in mind that not all combinations will work as far as key setup is concerned. In other words, you may be able to get associated with multiple interfaces, but the data frames may not get through if the driver is not yet ready to the setup you tested. These will be eventually addressed for most cases, but for now, you may also want to experiment with nohwcrypt=1 if you see something that could be caused by this. - Jouni