Return-path: Received: from szxga01-in.huawei.com ([119.145.14.64]:30317 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752180AbaBKDzW (ORCPT ); Mon, 10 Feb 2014 22:55:22 -0500 Message-ID: <52F99ED7.3090304@huawei.com> (sfid-20140211_045541_321219_95568E2D) Date: Tue, 11 Feb 2014 11:53:59 +0800 From: Zhao Hongjiang MIME-Version: 1.0 To: Ben Greear CC: , , Subject: Re: Get multiple ip addresses by dhcp for wireless card References: <52F84DFD.4030602@huawei.com> <52F87608.808@candelatech.com> <52F88FEA.3000102@huawei.com> <52F92696.3030003@candelatech.com> In-Reply-To: <52F92696.3030003@candelatech.com> Content-Type: text/plain; charset="ISO-8859-1" Sender: linux-wireless-owner@vger.kernel.org List-ID: On 2014/2/11 3:20, Ben Greear wrote: > On 02/10/2014 12:38 AM, Zhao Hongjiang wrote: >> On 2014/2/10 14:47, Ben Greear wrote: >>> On 02/09/2014 07:56 PM, Zhao Hongjiang wrote: >>>> Hello, >>>> >>>> Is it possible for one station to get multiple ip addresses from AP/Wireless >>>> router by dhcp? I had tried to add one or more virtual interface for >>>> phy0 (wlan0, wlan1, wlan2,etc), but only wlan0 can get ip address from AP. >>>> the following is the steps: >>>> >>>> /bin/wpa_supplicant -ddd -iwlan0 -Dnl80211 -c/wifi/wpa_supplicant.conf -B >>>> /bin/wpa_cli -i wlan0 -p /wlan0 >>>>> add_network >>>>> set_network 0 ssid "APabc" >>>>> set_network 0 psk "1111111" >>>>> enable_network 0 >>>> >>>> iw wlan0 interface add wlan1 type station 4addr on >>>> ip link set wlan1 up >>>> dhcpcd -ABKL wlan0 #works, can get ip >>>> dhcpcd -ABKL wlan1 #cannot work >>> >>> Virtual stations work just fine for me, though I don't use that '4addr' thing. >>> ...maybe sniff your wlan1 and see if it is sending >>> out proper DHCP requests (and they are being received by the AP)? >>> >>> You have to create a new supplicant config for each virtual station, >>> or run a unique supplicant instance for each station. >> >> I try to follow the instruction which you give and do the following command, but wlan1 >> cannot associate with AP. > > What driver are you using? I'm not sure anything other than ath9k > can do this feature. Ath5k probably works, and definitely worked > at one time. Ath10k supports this to some degree, and will have more > support in the future. > > You typically have to disable hardware crypt to make this work. > I use bcm4329 chipset and it don't have "Disable HW encryption" options. any suggestion for this is appreciated, thanks very much. > Thanks, > Ben >