From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.jelmoni.net ([78.47.55.82]:60808 "EHLO mail.jelmoni.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751498AbbAPXnk (ORCPT ); Fri, 16 Jan 2015 18:43:40 -0500 Message-ID: <54B9A225.1080307@swiss-wireless.com.ar> (sfid-20150117_004343_691743_090FC51E) Date: Fri, 16 Jan 2015 20:43:33 -0300 From: Beat Meier MIME-Version: 1.0 To: Pat Erley , "linux-wireless@vger.kernel.org >> Linux Wireless List" Subject: Re: Cannot use ap and sta mode on same interface with ath9k and kernel 3.8.13 :-( References: <54B990BC.1060604@swiss-wireless.com.ar> <54B99BEA.9080103@erley.org> In-Reply-To: <54B99BEA.9080103@erley.org> Content-Type: text/plain; charset=utf-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 01/16/2015 08:16 PM, Pat Erley wrote: > On 01/16/2015 04:29 PM, Beat Meier wrote: >> Hi >> >> I'm using an WLM200NX card in master mode ath1 and want to do scanning >> on the same interface. >> I'm using ath9k on 3.8.13 kernel (voyage-linux) >> >> So I setup an additional interface in sta mode with >> iw phy phy1 interface add ath2 type managed >> This works but the interface is not coming up. >> I tried several things like >> auto ath2 >> iface ath2 inet static >> address 10.58.1.1 >> netmask 255.255.255.0 >> wireless-mode Managed >> wpa-conf /etc/wpa_supplicant.conf.WPA-PSK >> >> But wpa_spplicant comes with error: >> wpa_supplicant: /sbin/wpa_supplicant daemon failed to start >> run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return >> code 1 >> RTNETLINK answers: Name not unique on network >> Failed to bring up ath2. >> >> I can setup monitor mode but I want to scan to see what other equipment >> is on which channel ... >> >> What's the problem? With ath9k I cannot use ap and sta mode together??? >> > > You need to assign a different mac address to the new interface. > > [Resend, accidentally dropped mailing list] > This solved the problem. Would be nice to add a comment in http://wireless.kernel.org/en/users/Documentation/iw/vif#station Thanks a lot Beat